Fixed my network drivers to work with ABIv1 (apart from prism2.device, which
[AROS.git] / test / clib / all-tests.c
blob6d325f8e54d9cff45ea37568463b2c11840a49a6
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",
16 NULL
19 int main()
21 int total = 0, failed = 0;
22 int i, rc;
23 char buffer[128];
25 mkdir( "T:TestOutput", 0777 );
27 for( i = 0; tests[i] != NULL; i++ )
29 total++;
30 sprintf( buffer, "%s >T:TestOutput/test-%d.log", tests[i], i );
32 rc = system( buffer );
34 if( rc == OK )
36 printf( "." );
37 fflush( stdout );
39 else
41 failed++;
42 printf( "F" );
43 fflush( stdout );
48 printf( "\n\nA total of %d tests run: %d succeded, %d failed.\n", total, total - failed, failed );
50 if( failed > 0 )
52 printf( "\nError messages:\n" );
53 system( "join T:TestOutput/test-#? as T:TestOutput/all-tests.log" );
54 system( "type T:TestOutput/all-tests.log" );
57 system( "delete T:TestOutput ALL QUIET" );
59 return 0;