OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [test_suite0/] [main.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Main function for all tests
3
 *
4
 * Copyright (C) 2009 B Labs Ltd.
5
 */
6
#include <l4lib/macros.h>
7
#include L4LIB_INC_ARCH(syslib.h)
8
#include L4LIB_INC_ARCH(syscalls.h)
9
#include <tests.h>
10
#include <thread.h>
11
#include <container.h>
12
#include <l4/api/space.h>
13
#include <l4/api/errno.h>
14
 
15
 
16
void run_tests(void)
17
{
18
        /* Performance tests */
19
        //if (test_performance() < 0)
20
        //      printf("Performance tests failed.\n");
21
 
22
        if (test_smp() < 0)
23
                printf("SMP tests failed.\n");
24
 
25
        /* API Tests */
26
        if (test_api() < 0)
27
                printf("API tests failed.\n");
28
 
29
        /* Container client/server setup test */
30
        if (test_cli_serv() < 0)
31
                printf("Client/server tests failed.\n");
32
 
33
        /* Container multithreaded/standalone setup test */
34
        if (test_mthread() < 0)
35
                printf("Multi-threaded tests failed.\n");
36
}
37
 
38
int main(void)
39
{
40
        printf("%s: Container %s started\n",
41
               __CONTAINER__, __CONTAINER_NAME__);
42
 
43
        run_tests();
44
 
45
        return 0;
46
}
47
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.