Files
codezero/conts/baremetal/test_suite/main.c
Bahadir Balban 6fa4884a5a Changes since April
Clean up of build directories.
Simplifications to capability model.
2010-06-01 15:08:13 +03:00

53 lines
993 B
C

/*
* Main function for all tests
*
* Copyright (C) 2009 B Labs Ltd.
*/
#include <l4lib/macros.h>
#include L4LIB_INC_ARCH(syslib.h)
#include L4LIB_INC_ARCH(syscalls.h)
#include <tests.h>
#include <thread.h>
#include <container.h>
#include <l4/api/space.h>
#include <l4/api/errno.h>
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;
}