Example #1
0
int main(int argc, char *argv[])
{
    printf("Borodin stress tests\n");

    if (argc > 1 && strcmp(argv[1], "-b") == 0)
        _do_benchmarks = 1;

    if (verbose)
        printf("\nIn-memory trees---------------------\n");

    test_basic(NULL);

    if (verbose)
        printf("\nFile-backed trees------------------------\n");

    test_basic("qq.qq");

    test_rest();

#if 0
    boroidx_stree_tests();
#endif

    if (_do_benchmarks) {
        printf("\nIn-memory trees---------------------\n");
        brtr_benchmark(NULL);
        printf("\nFile-backed trees------------------------\n");
        brtr_benchmark("qq.qq");
    }
    else
        printf("(Run with -b to do benchmarks)\n");

    return test_summary();
}
Example #2
0
//uruchamiaj wszystkie testy po kolei
void Tester::run(){
	cout<< "Test-start" <<endl;

	test_rest();
	test_hex();
	test_divide();
	test_multpily();
	test_bigger();
	test_smaller();
	test_add();
	test_substract();

	cout<< "Test-koniec" <<endl;
}