summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-03-12 09:47:28 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2013-03-12 09:59:06 +0000
commit85810dac8ccb94a1f46c17387e08bb75e16be08b (patch)
tree037020860ce2c6051eaa62342a36d1a192801cb8 /src
parent05ba2f98f76a8dc55967eebf954ebad05cc075e8 (diff)
tests: Add xml output file for check runs for the use with jenkins.
We can do pretty graphs with jenkins about our unit tests. But we need the check xml output for that. Enabling it in all suites.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/Makefile_EDBus.am4
-rw-r--r--src/Makefile_Ecore.am1
-rw-r--r--src/Makefile_Edje.am1
-rw-r--r--src/Makefile_Eeze.am2
-rw-r--r--src/Makefile_Efreet.am3
-rw-r--r--src/Makefile_Eo.am1
-rw-r--r--src/tests/ecore/ecore_suite.c2
-rw-r--r--src/tests/edbus/edbus_suite.c2
-rw-r--r--src/tests/edje/edje_suite.c2
-rw-r--r--src/tests/eet/eet_suite.c1
-rw-r--r--src/tests/eeze/eeze_suite.c1
-rw-r--r--src/tests/efreet/efreet_suite.c2
-rw-r--r--src/tests/eina/eina_suite.c2
-rw-r--r--src/tests/eo/suite/eo_suite.c2
-rw-r--r--src/tests/evas/evas_suite.c2
16 files changed, 26 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d0e176db1a..a903eed962 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -96,3 +96,4 @@ install-examples:
96clean-local: 96clean-local:
97 find . -type f -name '*.gcno' -delete 97 find . -type f -name '*.gcno' -delete
98 find . -type f -name '*.gcda' -delete 98 find . -type f -name '*.gcda' -delete
99 find . -type f -name check-results.xml -delete
diff --git a/src/Makefile_EDBus.am b/src/Makefile_EDBus.am
index 98f30696ff..99f0c63c2e 100644
--- a/src/Makefile_EDBus.am
+++ b/src/Makefile_EDBus.am
@@ -71,7 +71,9 @@ tests/edbus/edbus_suite.c \
71tests/edbus/edbus_test_edbus_init.c \ 71tests/edbus/edbus_test_edbus_init.c \
72tests/edbus/edbus_suite.h 72tests/edbus/edbus_suite.h
73 73
74tests_edbus_edbus_suite_CPPFLAGS = @CHECK_CFLAGS@ @EDBUS_CFLAGS@ 74tests_edbus_edbus_suite_CPPFLAGS = @CHECK_CFLAGS@ @EDBUS_CFLAGS@ \
75-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edbus\"
76
75tests_edbus_edbus_suite_LDADD = @CHECK_LIBS@ @USE_EDBUS_LIBS@ 77tests_edbus_edbus_suite_LDADD = @CHECK_LIBS@ @USE_EDBUS_LIBS@
76tests_edbus_edbus_suite_DEPENDENCIES = @USE_EDBUS_INTERNAL_LIBS@ 78tests_edbus_edbus_suite_DEPENDENCIES = @USE_EDBUS_INTERNAL_LIBS@
77 79
diff --git a/src/Makefile_Ecore.am b/src/Makefile_Ecore.am
index b4096158d0..3cc047ef91 100644
--- a/src/Makefile_Ecore.am
+++ b/src/Makefile_Ecore.am
@@ -72,6 +72,7 @@ tests/ecore/ecore_suite.h
72 72
73tests_ecore_ecore_suite_CPPFLAGS = \ 73tests_ecore_ecore_suite_CPPFLAGS = \
74-DTESTS_SRC_DIR=\"`pwd`/$(top_srcdir)\" \ 74-DTESTS_SRC_DIR=\"`pwd`/$(top_srcdir)\" \
75-DCHECK_SRC_DIR=\"$(top_srcdir)/src/tests/ecore\" \
75@CHECK_CFLAGS@ \ 76@CHECK_CFLAGS@ \
76@ECORE_CFLAGS@ \ 77@ECORE_CFLAGS@ \
77@ECORE_AUDIO_CFLAGS@ \ 78@ECORE_AUDIO_CFLAGS@ \
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index 4a4d46c2bc..0b20f8b8f6 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -210,6 +210,7 @@ tests/edje/edje_suite.h
210 210
211tests_edje_edje_suite_CPPFLAGS = \ 211tests_edje_edje_suite_CPPFLAGS = \
212$(EDJE_COMMON_CPPFLAGS) \ 212$(EDJE_COMMON_CPPFLAGS) \
213-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edje\" \
213@CHECK_CFLAGS@ 214@CHECK_CFLAGS@
214tests_edje_edje_suite_LDADD = @CHECK_LIBS@ @USE_EDJE_LIBS@ 215tests_edje_edje_suite_LDADD = @CHECK_LIBS@ @USE_EDJE_LIBS@
215tests_edje_edje_suite_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@ 216tests_edje_edje_suite_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@
diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am
index fad2bc91cb..7bbe383811 100644
--- a/src/Makefile_Eeze.am
+++ b/src/Makefile_Eeze.am
@@ -137,8 +137,8 @@ TESTS += tests/eeze/eeze_suite
137 137
138tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c 138tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c
139tests_eeze_eeze_suite_CPPFLAGS = \ 139tests_eeze_eeze_suite_CPPFLAGS = \
140-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
141@EEZE_CFLAGS@ \ 140@EEZE_CFLAGS@ \
141-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
142@CHECK_CFLAGS@ 142@CHECK_CFLAGS@
143tests_eeze_eeze_suite_LDADD = @CHECK_LIBS@ @USE_EEZE_LIBS@ 143tests_eeze_eeze_suite_LDADD = @CHECK_LIBS@ @USE_EEZE_LIBS@
144tests_eeze_eeze_suite_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@ 144tests_eeze_eeze_suite_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
diff --git a/src/Makefile_Efreet.am b/src/Makefile_Efreet.am
index 953d34998d..48ae4bea10 100644
--- a/src/Makefile_Efreet.am
+++ b/src/Makefile_Efreet.am
@@ -197,7 +197,8 @@ tests/efreet/efreet_suite.h \
197tests/efreet/efreet_test_efreet.c \ 197tests/efreet/efreet_test_efreet.c \
198tests/efreet/efreet_test_efreet_cache.c 198tests/efreet/efreet_test_efreet_cache.c
199 199
200tests_efreet_efreet_suite_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS) @CHECK_CFLAGS@ 200tests_efreet_efreet_suite_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS) @CHECK_CFLAGS@ \
201-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/efreet\"
201tests_efreet_efreet_suite_LDADD = @CHECK_LIBS@ @USE_EFREET_LIBS@ 202tests_efreet_efreet_suite_LDADD = @CHECK_LIBS@ @USE_EFREET_LIBS@
202tests_efreet_efreet_suite_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@ 203tests_efreet_efreet_suite_DEPENDENCIES = @USE_EFREET_INTERNAL_LIBS@
203 204
diff --git a/src/Makefile_Eo.am b/src/Makefile_Eo.am
index 873ffac406..201b5b9747 100644
--- a/src/Makefile_Eo.am
+++ b/src/Makefile_Eo.am
@@ -84,6 +84,7 @@ tests/eo/suite/eo_test_class_errors.c \
84tests/eo/suite/eo_test_general.c \ 84tests/eo/suite/eo_test_general.c \
85tests/eo/suite/eo_test_init.c 85tests/eo/suite/eo_test_init.c
86tests_eo_eo_suite_CPPFLAGS = \ 86tests_eo_eo_suite_CPPFLAGS = \
87-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eo\" \
87@CHECK_CFLAGS@ \ 88@CHECK_CFLAGS@ \
88@EO_CFLAGS@ 89@EO_CFLAGS@
89TESTS += tests/eo/eo_suite 90TESTS += tests/eo/eo_suite
diff --git a/src/tests/ecore/ecore_suite.c b/src/tests/ecore/ecore_suite.c
index 090a1e41e8..5cb676b12d 100644
--- a/src/tests/ecore/ecore_suite.c
+++ b/src/tests/ecore/ecore_suite.c
@@ -102,6 +102,8 @@ main(int argc, char **argv)
102 s = ecore_suite_build(argc - 1, (const char **)argv + 1); 102 s = ecore_suite_build(argc - 1, (const char **)argv + 1);
103 sr = srunner_create(s); 103 sr = srunner_create(s);
104 104
105 srunner_set_xml (sr, CHECK_SRC_DIR "/check-results.xml");
106
105 srunner_run_all(sr, CK_ENV); 107 srunner_run_all(sr, CK_ENV);
106 failed_count = srunner_ntests_failed(sr); 108 failed_count = srunner_ntests_failed(sr);
107 srunner_free(sr); 109 srunner_free(sr);
diff --git a/src/tests/edbus/edbus_suite.c b/src/tests/edbus/edbus_suite.c
index ecd8d4c6b0..8ffe45c1cb 100644
--- a/src/tests/edbus/edbus_suite.c
+++ b/src/tests/edbus/edbus_suite.c
@@ -98,6 +98,8 @@ main(int argc, char **argv)
98 s = edbus_suite_build(argc - 1, (const char **)argv + 1); 98 s = edbus_suite_build(argc - 1, (const char **)argv + 1);
99 sr = srunner_create(s); 99 sr = srunner_create(s);
100 100
101 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
102
101 srunner_run_all(sr, CK_ENV); 103 srunner_run_all(sr, CK_ENV);
102 failed_count = srunner_ntests_failed(sr); 104 failed_count = srunner_ntests_failed(sr);
103 srunner_free(sr); 105 srunner_free(sr);
diff --git a/src/tests/edje/edje_suite.c b/src/tests/edje/edje_suite.c
index dab966f511..8cdabeb5b3 100644
--- a/src/tests/edje/edje_suite.c
+++ b/src/tests/edje/edje_suite.c
@@ -95,6 +95,8 @@ main(int argc, char **argv)
95 s = edje_suite_build(argc - 1, (const char **)argv + 1); 95 s = edje_suite_build(argc - 1, (const char **)argv + 1);
96 sr = srunner_create(s); 96 sr = srunner_create(s);
97 97
98 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
99
98 srunner_run_all(sr, CK_ENV); 100 srunner_run_all(sr, CK_ENV);
99 failed_count = srunner_ntests_failed(sr); 101 failed_count = srunner_ntests_failed(sr);
100 srunner_free(sr); 102 srunner_free(sr);
diff --git a/src/tests/eet/eet_suite.c b/src/tests/eet/eet_suite.c
index f578d4eb80..351809ba61 100644
--- a/src/tests/eet/eet_suite.c
+++ b/src/tests/eet/eet_suite.c
@@ -2762,6 +2762,7 @@ main(int argc EINA_UNUSED, char *argv[])
2762 2762
2763 s = eet_suite(); 2763 s = eet_suite();
2764 sr = srunner_create(s); 2764 sr = srunner_create(s);
2765 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
2765 srunner_run_all(sr, CK_ENV); 2766 srunner_run_all(sr, CK_ENV);
2766 failed_count = srunner_ntests_failed(sr); 2767 failed_count = srunner_ntests_failed(sr);
2767 srunner_free(sr); 2768 srunner_free(sr);
diff --git a/src/tests/eeze/eeze_suite.c b/src/tests/eeze/eeze_suite.c
index 3e30d1dba6..3f887eb45a 100644
--- a/src/tests/eeze/eeze_suite.c
+++ b/src/tests/eeze/eeze_suite.c
@@ -677,6 +677,7 @@ main(void)
677 677
678 s = eeze_suite(); 678 s = eeze_suite();
679 sr = srunner_create(s); 679 sr = srunner_create(s);
680 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
680 srunner_run_all(sr, CK_ENV); 681 srunner_run_all(sr, CK_ENV);
681 failed_count = srunner_ntests_failed(sr); 682 failed_count = srunner_ntests_failed(sr);
682 srunner_free(sr); 683 srunner_free(sr);
diff --git a/src/tests/efreet/efreet_suite.c b/src/tests/efreet/efreet_suite.c
index ed1d82fad7..4455848af8 100644
--- a/src/tests/efreet/efreet_suite.c
+++ b/src/tests/efreet/efreet_suite.c
@@ -97,6 +97,8 @@ main(int argc, char **argv)
97 s = efreet_suite_build(argc - 1, (const char **)argv + 1); 97 s = efreet_suite_build(argc - 1, (const char **)argv + 1);
98 sr = srunner_create(s); 98 sr = srunner_create(s);
99 99
100 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
101
100 srunner_run_all(sr, CK_NORMAL); 102 srunner_run_all(sr, CK_NORMAL);
101 failed_count = srunner_ntests_failed(sr); 103 failed_count = srunner_ntests_failed(sr);
102 srunner_free(sr); 104 srunner_free(sr);
diff --git a/src/tests/eina/eina_suite.c b/src/tests/eina/eina_suite.c
index 310e9826c0..1cc317f49c 100644
--- a/src/tests/eina/eina_suite.c
+++ b/src/tests/eina/eina_suite.c
@@ -175,6 +175,8 @@ main(int argc, char **argv)
175 s = eina_build_suite(argc - 1, (const char **)argv + 1); 175 s = eina_build_suite(argc - 1, (const char **)argv + 1);
176 sr = srunner_create(s); 176 sr = srunner_create(s);
177 177
178 srunner_set_xml (sr, PACKAGE_BUILD_DIR "/check-results.xml");
179
178 _mempool_init(); 180 _mempool_init();
179 181
180 srunner_run_all(sr, CK_ENV); 182 srunner_run_all(sr, CK_ENV);
diff --git a/src/tests/eo/suite/eo_suite.c b/src/tests/eo/suite/eo_suite.c
index ea5c1c5813..b0828f0bc7 100644
--- a/src/tests/eo/suite/eo_suite.c
+++ b/src/tests/eo/suite/eo_suite.c
@@ -98,6 +98,8 @@ main(int argc, char **argv)
98 s = eo_suite_build(argc - 1, (const char **)argv + 1); 98 s = eo_suite_build(argc - 1, (const char **)argv + 1);
99 sr = srunner_create(s); 99 sr = srunner_create(s);
100 100
101 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
102
101 srunner_run_all(sr, CK_ENV); 103 srunner_run_all(sr, CK_ENV);
102 failed_count = srunner_ntests_failed(sr); 104 failed_count = srunner_ntests_failed(sr);
103 srunner_free(sr); 105 srunner_free(sr);
diff --git a/src/tests/evas/evas_suite.c b/src/tests/evas/evas_suite.c
index 7848b3d0da..77ea22dc1e 100644
--- a/src/tests/evas/evas_suite.c
+++ b/src/tests/evas/evas_suite.c
@@ -100,6 +100,8 @@ main(int argc, char **argv)
100 s = evas_suite_build(argc - 1, (const char **)argv + 1); 100 s = evas_suite_build(argc - 1, (const char **)argv + 1);
101 sr = srunner_create(s); 101 sr = srunner_create(s);
102 102
103 srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
104
103 srunner_run_all(sr, CK_ENV); 105 srunner_run_all(sr, CK_ENV);
104 failed_count = srunner_ntests_failed(sr); 106 failed_count = srunner_ntests_failed(sr);
105 srunner_free(sr); 107 srunner_free(sr);