aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Beesley <paul.beesley@arm.com>2019-02-08 11:32:05 +0000
committerPaul Beesley <paul.beesley@arm.com>2019-03-18 14:23:35 +0000
commit960906b2d8fc2596f257b55606c69505d2bf1130 (patch)
tree4954a1fe21024c8f407e0a74964f64119fe76788
parentbf8f1b887d2f03757ca6d06ce21e455e4fd5e71c (diff)
downloadtf-a-tests-960906b2d8fc2596f257b55606c69505d2bf1130.tar.gz
Check arguments when building manual tests
Manual tests require setting USE_NVM=1 and NEW_TEST_SESSION=0 otherwise they will not function properly (as test results will not be preserved across reboots). We should check that these variables have the required values during the build. Change-Id: I72fc8a4badf107fe2ebd6bfb88631828e14a77b3 Signed-off-by: Paul Beesley <paul.beesley@arm.com>
-rw-r--r--tftf/tests/tests-manual.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/tftf/tests/tests-manual.mk b/tftf/tests/tests-manual.mk
index fea81a13..bd8132bb 100644
--- a/tftf/tests/tests-manual.mk
+++ b/tftf/tests/tests-manual.mk
@@ -11,3 +11,11 @@ TESTS_SOURCES += \
reset2/reset2.c \
system_off/test_system_off.c \
)
+
+ifeq (${USE_NVM},0)
+$(error Manual tests require USE_NVM=1 to persist test results across reboots)
+endif
+
+ifeq (${NEW_TEST_SESSION},1)
+$(error Manual tests require NEW_TEST_SESSION=0 to persist test results across reboots)
+endif \ No newline at end of file