testCLTree();
int main(int argc, char **argv){  char *testpath;  char *srcpath;  testfile = gmalloc(1024);  if (argc > 1)    testpath = argv[1];  else    testpath = findDir("test");  srcpath = findDir("src");  sprintf(testfile, "%s/runtests.c", srcpath);  testbzfile = (char *)gmalloc(strlen(testpath)+20);  testgzfile = (char *)gmalloc(strlen(testpath)+20);  testzlibfile = (char *)gmalloc(strlen(testpath)+20);  testpg4dir = (char *)gmalloc(strlen(testpath)+20);  sprintf(testbzfile,"%s/pg4/hello.txt.bz2",testpath);  sprintf(testgzfile,"%s/pg4/hello.txt.gz",testpath);  sprintf(testzlibfile,"%s/pg4/hello.txt.z",testpath);  sprintf(testpg4dir,"%s/pg4",testpath);  gconf = loadNCDEnvironment();//  if (gconf->fVerbose)//    printf("Running tests...\n");  testSS();  testEM();  testDataBlock();  testBlockSortCA();#if BZIP2_RDY  testBZipCA();//  testTransformBZ(); //FIXME: creating memory leak seemingly caused by bzip#endif#if ZLIB_RDY  testZlibCA();//  testTransformZLIB(); //TODO: investigate memory leaks//  testTransformGZ();   //TODO: investigate memory leaks#endif#if CSOAP_RDY//  testSOAPComp();      //TODO: investigate massive memory leaks here//  testGoogle();        //TODO: more memory leaks left here#endif//  testYamlParser();    //FIXME: convert to new parser or fix Syck  testRealComp();  testVirtComp();//  testDL();   //TODO: investigate mem leaks which may be caused by dlopen//  testDL2();  //TODO: investigate mem leaks which may be caused by dlopen  testArrayDBE();  testDirectoryDBE();#if GSL_RDY  testMarshalling();  testSpringBall();//  testCLTree();  testQuartet();  testALTagFile();  testSmoothing();//  testReadTextDM();#endif  testSingletonDBE();  testWindowedDBE();/*  testFileListDBE(); *//*  testTAStack(); */  testNCDPair();  testDateTime();  testDoubleDoubler();  testAdjMatrix();  testAdjList();  testAdjAdaptor();  assert(gconf);  testLabelPerm();  testPerimPairs();  testTreeMolder();#if 0#endif  freeDefaultEnvironment(gconf);  gconf = NULL;  if (testpath) {    gfreeandclear(testpath);    gfreeandclear(testbzfile);    gfreeandclear(testgzfile);    gfreeandclear(testzlibfile);  }  if (srcpath) {    gfreeandclear(srcpath);  }  return 0;}