コード例 #1
0
ファイル: ceptr_specs.c プロジェクト: gitter-badger/ceptr
int main(int argc, const char **argv) {
    printf("Running all tests...\n\n");

    int err;
    if ((err = setjmp(G_err))) {
    printf("ERROR: %d\n",err);
    }
    else {
    def_sys();
    //**** core tests
    testDef();
    testTree();
    testMTree();
    testStream();
    testLabel();
    testSemtrex();
    testReceptor();
    testProcess();
    testScape();
    testVMHost();
    testAccumulator();

    //***** examples
    testProfileExample();
    testHTTPExample();

    sys_free();
    report_tests();
    }
    pthread_exit(NULL);
    //    return 0;
}
コード例 #2
0
ファイル: main.c プロジェクト: DichromaticLB/filter
void test(){
	 testQueue(50000);
	 test_serialization(500);
	 testRule(50000);
	 testTree(5000);
	 testqbm(5000);

}
コード例 #3
0
int main()
{
	//testLinearListSq();
	//testLinearListLk();
	//testStackSq();
	//testStackLk();
	//testQueueSq();
	//testQueueLk();
	testTree();
    return 0;
}
コード例 #4
0
ファイル: ceptr_specs.c プロジェクト: ChunHungLiu/ceptr
int main(int argc, const char **argv) {
    printf("Running all tests...\n\n");

    //**** core tests
    testTree();
    testParse();
    testDef();
    testWord();
    testFlow();
    testVM();


    testStack();
    testInit();
    testCommand();
    testConversation();
    testScape();


//    testThreads();

    //**** builtins tests
    testNoun();
    testPattern();
    //testArray();
    //    testStream();
    testInt();
    testStr255();
    testCfunc();
    testReceptorUtil();
    //    testReceptor();
    //testVmHost();

    //**** examples test
    testPoint();
    //    testLine();


    report_tests();
    return 0;
}
コード例 #5
0
ファイル: ceptr_specs.c プロジェクト: nwperrin/ceptr
int main(int argc, const char **argv) {
    printf("Running all tests...\n\n");

    int err;
    if ((err = setjmp(G_err))) {
        printf("ERROR: %d\n",err);
    }
    else {
    G_sem = def_sys();
    load_contexts(G_sem);

    //**** core tests
    testSemTable();
    testDef();
    testTree();
    testMTree();
    testStream();
    testLabel();
    testSemtrex();
    testProcess();
    testReceptor();
    testScape();
    testVMHost();
    testAccumulator();
    testProtocol();

    /**** receptor tests */
    /* /\* testGroup(); *\/ */
    testHTTP();

    /****** examples */
    /* testProfileExample(); */

    sys_free(G_sem);
    report_tests();
    }
    pthread_exit(NULL);
    //    return 0;
}