diff options
| author | J.T. Conklin <jtc@FreeBSD.org> | 1993-07-30 20:16:53 +0000 |
|---|---|---|
| committer | J.T. Conklin <jtc@FreeBSD.org> | 1993-07-30 20:16:53 +0000 |
| commit | 6eefa612a977ece8f5e118392b27413260cb6996 (patch) | |
| tree | e01cf2a5cc6062467dbb628a7beef06eaa39845d /gnu/lib/libregex/test/main.c | |
| parent | ff5c17099b72eefef1c4274236e4c3e1f344437f (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libregex/test/main.c')
| -rw-r--r-- | gnu/lib/libregex/test/main.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/lib/libregex/test/main.c b/gnu/lib/libregex/test/main.c new file mode 100644 index 000000000000..28ae31528579 --- /dev/null +++ b/gnu/lib/libregex/test/main.c @@ -0,0 +1,49 @@ +/* Main routine for running various tests. Meant only to be linked with + all the auxiliary test source files, with `test' undefined. */ + +#include "test.h" + +test_type t = all_test; + + +/* Use this to run the tests we've thought of. */ + +int +main () +{ + switch (t) + { + case all_test: + test_regress (); + test_others (); + test_posix_basic (); + test_posix_extended (); + test_posix_interface (); + break; + + case other_test: + test_others (); + break; + + case posix_basic_test: + test_posix_basic (); + break; + + case posix_extended_test: + test_posix_extended (); + break; + + case posix_interface_test: + test_posix_interface (); + break; + + case regress_test: + test_regress (); + break; + + default: + fprintf (stderr, "Unknown test %d.\n", t); + } + + return 0; +} |
