source: tester.c @ fa4562c

release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since fa4562c was d43edd2, checked in by Anders Kaseorg <andersk@mit.edu>, 15 years ago
Death to RCS keywords. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 812 bytes
Line 
1#include "owl.h"
2#include <unistd.h>
3#include <stdlib.h>
4
5owl_global g;
6
7#define OWL_UTIL_NTESTS  9
8#define OWL_DICT_NTESTS  19
9#define OWL_OBARRAY_NTESTS  6
10#define OWL_VARIABLE_NTESTS  36
11#define OWL_FILTER_NTESTS  24
12
13int main(int argc, char **argv, char **env)
14{
15  owl_errqueue_init(owl_global_get_errqueue(&g));
16  owl_obarray_init(&(g.obarray));
17
18  int numfailures=0;
19  printf("1..%d\n", OWL_UTIL_NTESTS+OWL_DICT_NTESTS+OWL_VARIABLE_NTESTS
20         +OWL_FILTER_NTESTS+OWL_OBARRAY_NTESTS);
21  numfailures += owl_util_regtest();
22  numfailures += owl_dict_regtest();
23  numfailures += owl_variable_regtest();
24  numfailures += owl_filter_regtest();
25  numfailures += owl_obarray_regtest();
26  if (numfailures) {
27      fprintf(stderr, "# *** WARNING: %d failures total\n", numfailures);
28  }
29  return(numfailures);
30}
Note: See TracBrowser for help on using the repository browser.