cleanup composer/compositing/composition -> compositor
[AROS.git] / test / clib / all-tests.c
bloba218476e74ee1233e5095c62581f9c53e15a95ce
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <sys/stat.h>
4 #include "test.h"
6 char *tests[] =
8 "chdir",
9 "strchr",
10 "stpblk",
11 "tmpfile",
12 "ctype",
13 "sscanf",
14 "mnt_names",
15 "execl2",
16 "execl2_vfork",
17 "argv0_test1",
18 "argv0_test2",
19 "argv0_test3",
20 "argv0_test4",
22 NULL
25 int main()
27 int total = 0, failed = 0;
28 int i, rc;
29 char buffer[128];
31 mkdir( "T:TestOutput", 0777 );
33 for( i = 0; tests[i] != NULL; i++ )
35 total++;
36 sprintf( buffer, "%s >T:TestOutput/test-%d.log", tests[i], i );
38 rc = system( buffer );
40 if( rc == OK )
42 printf( "." );
43 fflush( stdout );
45 else
47 failed++;
48 printf( "F" );
49 fflush( stdout );
54 printf( "\n\nA total of %d tests run: %d succeded, %d failed.\n", total, total - failed, failed );
56 if( failed > 0 )
58 printf( "\nError messages:\n" );
59 system( "join T:TestOutput/test-#? as T:TestOutput/all-tests.log" );
60 system( "type T:TestOutput/all-tests.log" );
63 system( "delete T:TestOutput ALL QUIET" );
65 return 0;