aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--test/Makefile27
-rwxr-xr-xtest/lib/test2
2 files changed, 28 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..02c60a3
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,27 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
+#
+# Tests makefile
+#
+# Copyright Red Hat
+# Author: David Gibson <david@gibson.dropbear.id.au>
+
+DOWNLOAD_ASSETS =
+LOCAL_ASSETS =
+
+ASSETS = $(DOWNLOAD_ASSETS) $(LOCAL_ASSETS)
+
+assets: $(ASSETS)
+
+check: assets
+ ./run
+
+debug: assets
+ DEBUG=1 ./run
+
+clean:
+ rm -f perf.js *~
+ rm -f $(LOCAL_ASSETS)
+ rm -rf test_logs
+
+realclean: clean
+ rm -rf $(DOWNLOAD_ASSETS)
diff --git a/test/lib/test b/test/lib/test
index 09e8340..96dab2b 100755
--- a/test/lib/test
+++ b/test/lib/test
@@ -393,7 +393,7 @@ test_one() {
[ ${CI} -eq 1 ] && video_link "${1}"
- TEST_ONE_subs=
+ TEST_ONE_subs="$(list_add_pair "" "__BASEPATH__" "${BASEPATH}")"
TEST_ONE_nok=-1
TEST_ONE_perf_nok=0
TEST_ONE_skip=0