// Include definition of T1 test suite #include "t1.h" // This struct contains all test suites TEST_SUITES { TEST_SUITE_ADD(T1), // add T1 test suite TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { // Set up directory where are stored files with outputs from test // suites CU_SET_OUT_PREFIX("regressions/"); // Run all test suites CU_RUN(argc, argv); return 0; }
TEST_ADD(swap_works_correctly_with_different_indices), TEST_ADD(split_does_not_work_on_empty_list), TEST_ADD(split_does_not_work_on_illegal_pos), TEST_ADD(split_on_head_works_on_full_list), TEST_ADD(split_on_rest_works_on_full_list), TEST_ADD(join_does_not_work_on_different_element_sizes), TEST_ADD(join_works_on_empty_lists), TEST_ADD(join_works_on_full_lists), TEST_ADD(copy_works_on_empty_list), TEST_ADD(copy_works_on_full_list), TEST_SUITE_CLOSURE }; /* test suites */ TEST_SUITES { TEST_SUITE_ADD(basic_data_access), TEST_SUITE_ADD(creation_destruction), TEST_SUITE_ADD(insertion), TEST_SUITE_ADD(removal), TEST_SUITE_ADD(accessing), TEST_SUITE_ADD(manipulation), TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { CU_SET_NAME("slist"); CU_SET_OUT_PREFIX("output/"); CU_RUN(argc, argv); // set return value according to whether // there were any failures
#ifndef IgnoreTest #define IgnoreTest 1 #endif #include "input/inputbufferTest.h" #include "ui/menuTest.h" void *dummy(void); // This struct contains all test suites TEST_SUITES { TEST_SUITE_ADD(INPUTBUFFER_TEST), TEST_SUITE_ADD(UI_MENUTEST), TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { // Set up directory where are stored files with outputs from test // suites CU_SET_OUT_PREFIX("regressions/"); // Run all test suites CU_RUN(argc, argv); return 0; }
#include <global.h> #include <config.h> #ifdef MPI #include <mpi.h> #endif #include "test_buffers_gauge.h" TEST_SUITES { TEST_SUITE_ADD(BUFFERS_GAUGE), TEST_SUITES_CLOSURE }; int main(int argc,char *argv[]){ #ifdef MPI MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &g_proc_id); #else g_proc_id = 0; #endif CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc,argv); #ifdef MPI MPI_Finalize(); #endif return 0;
#include "../global.h" #include "test_clover_six_invert.h" TEST_SUITES { TEST_SUITE_ADD(CLOVER), TEST_SUITES_CLOSURE }; int main(int argc,char *argv[]){ CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc,argv); return 0; }
#include "vec3.h" #include "polytope.h" #include "boxbox.h" #include "spheresphere.h" #include "cylcyl.h" #include "boxcyl.h" #include "mpr_boxbox.h" #include "mpr_cylcyl.h" #include "mpr_boxcyl.h" TEST_SUITES { TEST_SUITE_ADD(TSVec3), TEST_SUITE_ADD(TSPt), TEST_SUITE_ADD(TSBoxBox), TEST_SUITE_ADD(TSSphereSphere), TEST_SUITE_ADD(TSCylCyl), TEST_SUITE_ADD(TSBoxCyl), TEST_SUITE_ADD(TSMPRBoxBox), TEST_SUITE_ADD(TSMPRCylCyl), TEST_SUITE_ADD(TSMPRBoxCyl), TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc, argv); return 0;
#define MAIN_PROGRAM #include "test_su3_algebra.h" TEST_SUITES { TEST_SUITE_ADD(SU3_ALGEBRA), TEST_SUITES_CLOSURE }; int main(int argc,char *argv[]){ CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc,argv); return 0; } #undef MAIN_PROGRAM
#ifndef IN_TEST_MODE #define IN_TEST_MODE 1 #endif #include "mem/cpy.h" #include "mem/structcpy.h" void *dummy(void); // This struct contains all test suites TEST_SUITES { TEST_SUITE_ADD(IOBUFFER_TEST), TEST_SUITE_ADD(STRUCTCPY_TEST), TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { // Set up directory where are stored files with outputs from test // suites CU_SET_OUT_PREFIX("regressions/"); // Run all test suites CU_RUN(argc, argv); return 0; }
#include "cu/cu.h" #include "diff.hpp" #include "hunk.hpp" #include "levenshtein.hpp" #include "text.hpp" TEST_SUITES{ TEST_SUITE_ADD(TSDiff), TEST_SUITE_ADD(TSHunk), TEST_SUITE_ADD(TSLevenshtein), TEST_SUITE_ADD(TSText), TEST_SUITES_CLOSURE }; int main(int argc, char *argv[]) { CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc, argv); return 0; }
#define MAIN_PROGRAM #if HAVE_CONFIG_H #include<config.h> #endif #include "../global.h" #include "test_rat_init.h" TEST_SUITES { TEST_SUITE_ADD(RAT), TEST_SUITES_CLOSURE }; int main(int argc,char *argv[]){ CU_SET_OUT_PREFIX("regressions/"); CU_RUN(argc,argv); return 0; } #undef MAIN_PROGRAM