File: check_complearn.c

package info (click to toggle)
libcomplearn 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,768 kB
  • ctags: 1,976
  • sloc: sh: 10,756; ansic: 2,839; makefile: 304
file content (33 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
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
#include <stdio.h>
#include <stdlib.h>
#include <check.h>
#include "../src/complearn/complearn.h"

#include "suite.h"

Suite *
complearn_suite (void)
{
  Suite *s = suite_create ("master");
  complearn_init();
  complearn_init();
  return s;
}

int
main (void)
{
  int number_failed;
  g_type_init();
  complearn_init();
  Suite *s = complearn_suite ();
  SRunner *sr = srunner_create (s);
  srunner_add_suite (sr, environment_suite ());
  srunner_add_suite (sr, ncd_suite ());
  srunner_add_suite (sr, util_suite ());
  srunner_add_suite (sr, cloutput_suite ());
  srunner_run_all (sr, CK_NORMAL);
  number_failed = srunner_ntests_failed (sr);
  srunner_free (sr);
  return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}