source: tester.c @ 22b54a7

release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 22b54a7 was eab5aa1, checked in by Nelson Elhage <nelhage@mit.edu>, 16 years ago
tester: Correct test counts.
  • Property mode set to 100644
File size: 853 bytes
Line 
1#include "owl.h"
2#include <unistd.h>
3#include <stdlib.h>
4
5static const char fileIdent[] = "$Id$";
6
7owl_global g;
8
9#define OWL_UTIL_NTESTS  6
10#define OWL_DICT_NTESTS  19
11#define OWL_OBARRAY_NTESTS  6
12#define OWL_VARIABLE_NTESTS  36
13#define OWL_FILTER_NTESTS  24
14
15int main(int argc, char **argv, char **env)
16{
17  owl_errqueue_init(owl_global_get_errqueue(&g));
18  owl_obarray_init(&(g.obarray));
19
20  int numfailures=0;
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) {
29      fprintf(stderr, "# *** WARNING: %d failures total\n", numfailures);
30  }
31  return(numfailures);
32}
Note: See TracBrowser for help on using the repository browser.