source:
tester.c
@
2be605a
Last change on this file since 2be605a was 3e8ff1e, checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago | |
---|---|
|
|
File size: 853 bytes |
Rev | Line | |
---|---|---|
[7d4fbcd] | 1 | #include "owl.h" |
2 | #include <unistd.h> | |
3 | #include <stdlib.h> | |
4 | ||
[1aee7d9] | 5 | static const char fileIdent[] = "$Id$"; |
6 | ||
[b2b0773] | 7 | owl_global g; |
8 | ||
[3e8ff1e] | 9 | #define OWL_UTIL_NTESTS 9 |
[eab5aa1] | 10 | #define OWL_DICT_NTESTS 19 |
11 | #define OWL_OBARRAY_NTESTS 6 | |
12 | #define OWL_VARIABLE_NTESTS 36 | |
13 | #define OWL_FILTER_NTESTS 24 | |
[1cf3f8d3] | 14 | |
[094009a] | 15 | int main(int argc, char **argv, char **env) |
16 | { | |
[124aebc] | 17 | owl_errqueue_init(owl_global_get_errqueue(&g)); |
[e7dc035] | 18 | owl_obarray_init(&(g.obarray)); |
[124aebc] | 19 | |
[7d4fbcd] | 20 | int numfailures=0; |
[3381399] | 21 | printf("1..%d\n", OWL_UTIL_NTESTS+OWL_DICT_NTESTS+OWL_VARIABLE_NTESTS |
22 | +OWL_FILTER_NTESTS+OWL_OBARRAY_NTESTS); | |
23 | numfailures += owl_util_regtest(); | |
24 | numfailures += owl_dict_regtest(); | |
25 | numfailures += owl_variable_regtest(); | |
26 | numfailures += owl_filter_regtest(); | |
27 | numfailures += owl_obarray_regtest(); | |
28 | if (numfailures) { | |
[1cf3f8d3] | 29 | fprintf(stderr, "# *** WARNING: %d failures total\n", numfailures); |
[7d4fbcd] | 30 | } |
[3381399] | 31 | return(numfailures); |
[7d4fbcd] | 32 | } |
Note: See TracBrowser
for help on using the repository browser.