aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+