summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-05-26 01:39:41 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2019-02-12 19:47:15 +0200
commit395fa5bd082365393fca0d296e5821daffa4c97f (patch)
tree7956bf74ac1b2fed2e17798155927890a42733c7
parente65a2919e4cf4008f73cfeccab511077e671c079 (diff)
Tests: add Exactness tests suite to make checkdevs/jackdanielz/exactness
It is available only if --enable-exactness-check is set during the configuration. The number of jobs set in the make command is given in the exactness invocation. The suite can be checked without running make check. From the src directory, run "make check-exactness"
-rw-r--r--src/Makefile_Exactness.am13
-rwxr-xr-xsrc/tests/exactness/check_exactness.sh11
2 files changed, 24 insertions, 0 deletions
diff --git a/src/Makefile_Exactness.am b/src/Makefile_Exactness.am
index 4db5cee70a..9fb8534bd6 100644
--- a/src/Makefile_Exactness.am
+++ b/src/Makefile_Exactness.am
@@ -60,3 +60,16 @@ CLEANFILES += $(share_DATA)
60exactness_play.edj: bin/exactness/player_entry.edc bin/edje/edje_cc${EXEEXT} 60exactness_play.edj: bin/exactness/player_entry.edc bin/edje/edje_cc${EXEEXT}
61 $(AM_V_EDJ) \ 61 $(AM_V_EDJ) \
62 $(EDJE_CC) $(EDJE_CC_FLAGS) -sd $(top_srcdir)/data/elementary/themes/snd -id $(top_srcdir)/data/elementary/themes/img $< $@ 62 $(EDJE_CC) $(EDJE_CC_FLAGS) -sd $(top_srcdir)/data/elementary/themes/snd -id $(top_srcdir)/data/elementary/themes/img $< $@
63
64### Tests"
65if HAVE_EXACTNESS_CHECK
66
67AM_TESTS_ENVIRONMENT += EXACTNESS_DATA_PATH='$(top_srcdir)'/data/exactness/elm/default-profile
68AM_TESTS_ENVIRONMENT += MAKEFLAGS='${MAKEFLAGS}'
69
70check-exactness:
71 $(AM_TESTS_ENVIRONMENT) tests/exactness/check_exactness.sh
72
73TESTS += tests/exactness/check_exactness.sh
74
75endif
diff --git a/src/tests/exactness/check_exactness.sh b/src/tests/exactness/check_exactness.sh
new file mode 100755
index 0000000000..479bec582f
--- /dev/null
+++ b/src/tests/exactness/check_exactness.sh
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3cd $EXACTNESS_DATA_PATH
4if [[ "$MAKEFLAGS" =~ -j([0-9]+) ]]
5then
6 JOBS=${BASH_REMATCH[1]}
7else
8 JOBS=1
9fi
10exactness -f fonts -j $JOBS -p -b recordings tests.txt
11