2
* @file check_geis1_api.c
3
* @brief Unit testing driver for GEIS v1 API.
5
* Copyright 2011 Canonical Ltd.
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
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
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
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();
29
main(int argc CK_ATTRIBUTE_UNUSED, char* argv[] CK_ATTRIBUTE_UNUSED)
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());
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);
46
return !(num_failed == 0);