efl: use autotools testsuite for running tests
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 15 Jan 2013 20:51:04 +0000 (20:51 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 15 Jan 2013 20:51:04 +0000 (20:51 +0000)
Instead of just making our own "check-local" and calling the binaries
ourselves, just append them into "TESTS" variable. Then they run after
all check_PROGRAMS are compiled.

The reasons for changing are:
  1) If we change the test and call "make check" the test is not
  compiled again -- and the only way to compile it is to "make clean".
  2) There's no need to reinvent the wheel here.

With a recent version of Automake, the test output is redirected to log
files. This is good but unexpected for whom was used to the previous
way. So, be warned.

SVN revision: 82841

.gitignore
Makefile.am
configure.ac
src/Makefile.am
src/Makefile_Ecore.am
src/Makefile_Eet.am
src/Makefile_Eina.am
src/Makefile_Eo.am
src/Makefile_Evas.am

index 5e6f07ea652cc80b53869e94eea33d12a555d8b1..5006a1613a348bcbaea9d5ff944efcc18dd2eb10 100644 (file)
@@ -31,6 +31,7 @@ Makefile.in
 /libtool
 /ltmain.sh
 /compile
+/test-driver
 /m4/libtool.m4
 /m4/ltoptions.m4
 /m4/ltsugar.m4
@@ -262,6 +263,10 @@ Makefile.in
 /src/examples/evas/evas_smart_object
 /src/examples/evas/evas_stacking
 /src/examples/evas/evas_text
+/src/tests/ecore/ecore_suite.log
+/src/tests/ecore/ecore_suite.trs
+/src/tests/eet/eet_suite.log
+/src/tests/eet/eet_suite.trs
 /src/tests/efreet/compare/efreet_alloc
 /src/tests/efreet/compare/efreet_menu_alloc
 /src/tests/efreet/efreet_cache_test
@@ -271,6 +276,7 @@ Makefile.in
 /src/tests/efreet/efreet_user_dir
 /src/tests/emotion/emotion_test
 /src/tests/ecore/ecore_suite
+/src/tests/edbus/edbus_suite
 /src/tests/edje/edje_suite
 /src/tests/eet/eet_suite
 /src/tests/eeze/eeze_suite
@@ -278,6 +284,8 @@ Makefile.in
 /src/tests/eina/cxx_compile_test
 /src/tests/eina/eina_suite
 /src/tests/eo/eo_suite
+/src/tests/eo/eo_suite.log
+/src/tests/eo/eo_suite.trs
 /src/tests/eo/test_access
 /src/tests/eo/test_composite_objects
 /src/tests/eo/test_constructors
@@ -286,3 +294,6 @@ Makefile.in
 /src/tests/eo/test_mixin
 /src/tests/eo/test_signals
 /src/tests/evas/evas_suite
+/src/tests/evas/evas_suite.log
+/src/tests/evas/evas_suite.trs
+/src/test-suite.log
index 712de985ea43006886a5725a12bfed3eb5257877..25b72996e212604196c8738af9c10938dd6d4bb2 100644 (file)
@@ -255,19 +255,14 @@ endif
 
 if EFL_ENABLE_TESTS
 
-check-local:
+lcov-check:
 if EFL_ENABLE_COVERAGE
        @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
 endif
-#      @./src/tests/eina/eina_suite$(EXEEXT)
-       @./src/tests/eet/eet_suite$(EXEEXT)
-       @./src/tests/eo/eo_suite$(EXEEXT)
-       @./src/tests/evas/evas_suite$(EXEEXT)
-       @./src/tests/ecore/ecore_suite$(EXEEXT)
+       @$(MAKE) $(AM_MAKEFLAGS) check
 if EFL_ENABLE_COVERAGE
        @$(MAKE) $(AM_MAKEFLAGS) lcov-report
 endif
-
 endif
 
 # benchmark
index 1a8ae6c82f5bb1272547a9e32cf860574d2c9abe..47823150ae3c08ec11aa50cdc0f060ba3e8e08ee 100644 (file)
@@ -37,7 +37,7 @@ AH_BOTTOM([
 
 AC_USE_SYSTEM_EXTENSIONS
 
-AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall])
+AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
index 865cad96adafdb551a88e295f54617546f3749cb..8600eaca5688f686db502509ef6e97366351cf80 100644 (file)
@@ -11,6 +11,7 @@ bin_PROGRAMS =
 bin_SCRIPTS =
 noinst_PROGRAMS =
 check_PROGRAMS =
+TESTS =
 EXTRA_DIST =
 
 include Makefile_Evil.am
index 97bb2355191e8bf176d3782c89ca5631c9c31bfd..e901c7f2058bc4219cd8b67c8eaf17b5e52b4181 100644 (file)
@@ -58,6 +58,7 @@ lib_ecore_libecore_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
 if EFL_ENABLE_TESTS
 
 check_PROGRAMS += tests/ecore/ecore_suite
+TESTS += tests/ecore/ecore_suite
 
 tests_ecore_ecore_suite_SOURCES = \
 tests/ecore/ecore_suite.c \
index 63142dc366bb7ecffc6616edc2c0b0e0c7b3d026..7646f0f88076b3044a2013e6c2eb0decc40592dc 100644 (file)
@@ -54,6 +54,7 @@ bin_eet_eet_DEPENDENCIES = @USE_EET_INTERNAL_LIBS@
 if EFL_ENABLE_TESTS
 
 check_PROGRAMS += tests/eet/eet_suite
+TESTS += tests/eet/eet_suite
 
 tests_eet_eet_suite_SOURCES = \
 tests/eet/eet_suite.c \
index 80af55f93f016977c7869d6e1f85379c72f7fc04..08899d3150c4b331f9ef9f22debe524e40dc5da8 100644 (file)
@@ -220,6 +220,7 @@ bin_SCRIPTS += scripts/eina/eina-bench-cmp
 if EFL_ENABLE_TESTS
 
 check_PROGRAMS += tests/eina/eina_suite tests/eina/cxx_compile_test
+#TESTS += tests/eina/eina_suite
 
 tests_eina_eina_suite_SOURCES = \
 tests/eina/eina_suite.c \
index f2dd3c4eb1cb3b4de5940cc0d78433c665bf5bd5..4c055d4c5a495538a7255db428668e19c8827f52 100644 (file)
@@ -29,6 +29,7 @@ tests/eo/test_signals
 
 if EFL_ENABLE_TESTS
 check_PROGRAMS += tests/eo/eo_suite
+TESTS += tests/eo/eo_suite
 endif
 
 tests_eo_test_access_SOURCES = \
index 82f792f6113c238b7b4cceaee51b629fe652d60f..6accb398f10acfd17f22c7031144893eb93374cb 100644 (file)
@@ -1546,6 +1546,7 @@ endif
 if EFL_ENABLE_TESTS
 
 check_PROGRAMS += tests/evas/evas_suite
+TESTS += tests/evas/evas_suite
 
 tests_evas_evas_suite_SOURCES = \
 tests/evas/evas_suite.c \