File: test_setget.c

package info (click to toggle)
xnee 3.06-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,324 kB
  • ctags: 2,429
  • sloc: ansic: 21,992; sh: 12,427; makefile: 563
file content (52 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "test_setget.h"
#include "libxnee/xnee.h"

int fails;
int total;
int verbose;

int orig;
int ret;
int new;

char *orig_str;
char *ret_str;
char *new_str;

FILE *orig_fd;
FILE *ret_fd;
FILE *new_fd;


int main(int argc, char **argv)
{
  xnee_data *xdl;
  fails = 0 ;
  total = 0;
  verbose = 0;

  if (argc>1) verbose = 1;

  printf ("Starting tests :) :) \n");

  /*  Get a new xnee_data structure  */
  /* call to xnee_init */

  xdl = xnee_new_xnee_data();
/*   xnee_init(xdl); */

  /* Set the program name */
  xnee_set_program_name (xdl, "testsetget");

  /* Set the cli parameters */
  xnee_set_application_parameters (xdl, NULL);
  xnee_set_recorder (xdl);
  test_all(xdl);

  fprintf (stdout, "\tSucesss:  %d\n", total);
  fprintf (stdout, "\tFailures: %d\n", fails);

  xnee_close_down(xdl);

  return 0;
}