diff options
author | Daniel Zaoui <daniel.zaoui@yahoo.com> | 2018-05-26 01:39:41 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@yahoo.com> | 2019-02-12 19:47:15 +0200 |
commit | 395fa5bd082365393fca0d296e5821daffa4c97f (patch) | |
tree | 7956bf74ac1b2fed2e17798155927890a42733c7 | |
parent | e65a2919e4cf4008f73cfeccab511077e671c079 (diff) | |
download | efl-395fa5bd082365393fca0d296e5821daffa4c97f.tar.gz |
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.am | 13 | ||||
-rwxr-xr-x | src/tests/exactness/check_exactness.sh | 11 |
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) exactness_play.edj: bin/exactness/player_entry.edc bin/edje/edje_cc${EXEEXT} $(AM_V_EDJ) \ $(EDJE_CC) $(EDJE_CC_FLAGS) -sd $(top_srcdir)/data/elementary/themes/snd -id $(top_srcdir)/data/elementary/themes/img $< $@ + +### Tests" +if HAVE_EXACTNESS_CHECK + +AM_TESTS_ENVIRONMENT += EXACTNESS_DATA_PATH='$(top_srcdir)'/data/exactness/elm/default-profile +AM_TESTS_ENVIRONMENT += MAKEFLAGS='${MAKEFLAGS}' + +check-exactness: + $(AM_TESTS_ENVIRONMENT) tests/exactness/check_exactness.sh + +TESTS += tests/exactness/check_exactness.sh + +endif 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 @@ +#!/bin/sh + +cd $EXACTNESS_DATA_PATH +if [[ "$MAKEFLAGS" =~ -j([0-9]+) ]] +then + JOBS=${BASH_REMATCH[1]} +else + JOBS=1 +fi +exactness -f fonts -j $JOBS -p -b recordings tests.txt + |