aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-11-09 16:04:18 +0100
committerregnat <rg@regnat.ovh>2021-03-01 11:08:01 +0100
commit259d6778efd865ccd3b5fbf4f3a29002a7d58d93 (patch)
tree1829c735f47b7148113aa6096118c41d63c9a0c5 /mk
parent73b3e6cd46cf8f10b4c35043d7c0708b22ffebd6 (diff)
Move the CA tests to a sub-directory
Requires a slight update to the test infra to work properly, but having the possibility to group tests that way makes the whole thing quite cleaner imho
Diffstat (limited to 'mk')
-rwxr-xr-xmk/run_test.sh2
-rw-r--r--mk/tests.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/mk/run_test.sh b/mk/run_test.sh
index 6af5b070a..3783d3bf7 100755
--- a/mk/run_test.sh
+++ b/mk/run_test.sh
@@ -14,7 +14,7 @@ if [ -t 1 ]; then
yellow=""
normal=""
fi
-(cd $(dirname $1) && env ${TESTS_ENVIRONMENT} init.sh 2>/dev/null > /dev/null)
+(cd tests && env ${TESTS_ENVIRONMENT} init.sh 2>/dev/null > /dev/null)
log="$(cd $(dirname $1) && env ${TESTS_ENVIRONMENT} $(basename $1) 2>&1)"
status=$?
if [ $status -eq 0 ]; then
diff --git a/mk/tests.mk b/mk/tests.mk
index c1e140bac..21bdc5748 100644
--- a/mk/tests.mk
+++ b/mk/tests.mk
@@ -8,7 +8,7 @@ define run-install-test
.PHONY: $1.test
$1.test: $1 $(test-deps)
- @env TEST_NAME=$(notdir $(basename $1)) TESTS_ENVIRONMENT="$(tests-environment)" mk/run_test.sh $1 < /dev/null
+ @env TEST_NAME=$(basename $1) TESTS_ENVIRONMENT="$(tests-environment)" mk/run_test.sh $1 < /dev/null
endef