/* * Main function for all tests * * Copyright (C) 2009 B Labs Ltd. */ #include #include L4LIB_INC_ARCH(syslib.h) #include L4LIB_INC_ARCH(syscalls.h) #include #include #include #include #include void run_tests(void) { #if 0 /* Performance tests */ if (test_performance() < 0) printf("Performance tests failed.\n"); #endif if (test_smp() < 0) printf("SMP tests failed.\n"); /* API Tests */ if (test_api() < 0) printf("API tests failed.\n"); /* Container client/server setup test */ if (test_cli_serv() < 0) printf("Client/server tests failed.\n"); /* Container multithreaded/standalone setup test */ if (test_mthread() < 0) printf("Multi-threaded tests failed.\n"); /* Parent quits */ printf("Test parent thread exiting...\n"); thread_exit(0); } int main(void) { printf("%s: Container %s started\n", __CONTAINER__, __CONTAINER_NAME__); run_tests(); return 0; }