source: tester.c @ 56d0189

debianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 56d0189 was 3381399, checked in by Nelson Elhage <nelhage@mit.edu>, 16 years ago
Fix the regression tester so it builds again.
  • Property mode set to 100644
File size: 853 bytes
RevLine 
[7d4fbcd]1#include "owl.h"
2#include <unistd.h>
3#include <stdlib.h>
4
[1aee7d9]5static const char fileIdent[] = "$Id$";
6
[b2b0773]7owl_global g;
8
[1cf3f8d3]9#define OWL_DICT_NTESTS  20
10#define OWL_UTIL_NTESTS  9
11#define OWL_OBARRAY_NTESTS  5
12#define OWL_VARIABLE_NTESTS  52
13#define OWL_FILTER_NTESTS  23
14
[094009a]15int 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.