From 7c0b8df175832b8ffb7510977283c0c390be9c8c Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Mon, 11 Feb 2019 11:47:13 -0600 Subject: Method to execute testcases early in the boot A new CONFIG variable has been created that will trigger the istep dispatcher to start the CXX unit test execution at some point during the boot rather than waiting until the end. This is useful for quick targeted testing and also for early bringup of new platforms. CONFIG_EARLY_TESTCASES is the new flag, and it uses ATTR_EARLY_TESTCASES_ISTEP to determine where in the boot to stop. Changes were required in several testcases to either skip the test completely (typically due to not having enough memory) or to add additional logic to load new support libraries on demand. The Axone platform has this flag enabled by default to execute testcases at the end of istep 6.9 (host_gard). Change-Id: I1da9479e2147d68102f44d60e064c3b79cc41bb6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71693 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes Reviewed-by: Roland Veloz Reviewed-by: Matt Derksen Reviewed-by: William G. Hoffa --- src/usr/cxxtest/HBconfig | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/usr/cxxtest/HBconfig (limited to 'src/usr/cxxtest') diff --git a/src/usr/cxxtest/HBconfig b/src/usr/cxxtest/HBconfig new file mode 100644 index 000000000..aa2fd1b24 --- /dev/null +++ b/src/usr/cxxtest/HBconfig @@ -0,0 +1,6 @@ +config EARLY_TESTCASES + default n + help + Execute unit tests at the end of the istep specified in + EARLY_TESTCASES_ISTEP and then shut down. + -- cgit v1.2.1