aboutsummaryrefslogtreecommitdiffstats
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-01-16 20:13:59 +0200
commit1a13823947009021ed2a1909894db914fea9d794 (patch)
treec90d4a0bc353826874cc945ff4810c12a3b8777e
parentExactness: add --enable-exactness-check configure flag (diff)
downloadefl-devs/jackdanielz/exactness.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.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)
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
+