Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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();
    //debug_enable(D_BOOT);
    load_contexts(G_sem);
    //debug_disable(D_BOOT);

    //**** 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;
}
Exemplo n.º 3
0
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;
}