~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to testsuite/geis1/check_geis1_api.c

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file check_geis1_api.c
 
3
 * @brief Unit testing driver for GEIS v1 API.
 
4
 *
 
5
 * Copyright 2011 Canonical Ltd.
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or modify it under
 
8
 * the terms of the GNU Lesser General Public License as published by the Free
 
9
 * Software Foundation; either version 3 of the License, or (at your option) any
 
10
 * later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
14
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
15
 * details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 
19
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
20
 */
 
21
#include <check.h>
 
22
 
 
23
extern Suite *geis1_instance_suite_new();
 
24
extern Suite *geis1_gesture_types_new();
 
25
extern Suite *geis1_gesture_attrs_new();
 
26
extern Suite *geis1_subscription_new();
 
27
 
 
28
int
 
29
main(int argc CK_ATTRIBUTE_UNUSED, char* argv[] CK_ATTRIBUTE_UNUSED)
 
30
{
 
31
  int num_failed = 0;
 
32
 
 
33
  Suite *s = suite_create("GEIS v1.0 API");
 
34
  SRunner *sr = srunner_create(s);
 
35
  srunner_add_suite(sr, geis1_instance_suite_new());
 
36
  srunner_add_suite(sr, geis1_gesture_types_new());
 
37
  srunner_add_suite(sr, geis1_gesture_attrs_new());
 
38
  srunner_add_suite(sr, geis1_subscription_new());
 
39
 
 
40
  srunner_set_log(sr, "geis1_api.log");
 
41
  srunner_set_xml(sr, "geis1_api.xml");
 
42
  srunner_run_all(sr, CK_NORMAL);
 
43
  num_failed = srunner_ntests_failed(sr);
 
44
 
 
45
  srunner_free(sr);
 
46
  return !(num_failed == 0);
 
47
}