summaryrefslogtreecommitdiffstats
path: root/src/usr/util/test
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2019-02-11 11:47:13 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2019-02-28 09:51:50 -0600
commit7c0b8df175832b8ffb7510977283c0c390be9c8c (patch)
tree643df1eae00336f48392d36e2a7e40250831ad4c /src/usr/util/test
parentcbea08dbf1b3609db30637d554f5cb47897f034f (diff)
downloadtalos-hostboot-7c0b8df175832b8ffb7510977283c0c390be9c8c.tar.gz
talos-hostboot-7c0b8df175832b8ffb7510977283c0c390be9c8c.zip
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 <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/util/test')
-rw-r--r--src/usr/util/test/makefile9
-rw-r--r--src/usr/util/test/testlidmgr.H6
-rw-r--r--src/usr/util/test/testmclmgr.H3
3 files changed, 14 insertions, 4 deletions
diff --git a/src/usr/util/test/makefile b/src/usr/util/test/makefile
index e6c4c69f8..43242d9dc 100644
--- a/src/usr/util/test/makefile
+++ b/src/usr/util/test/makefile
@@ -5,7 +5,9 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2012,2014
+# Contributors Listed Below - COPYRIGHT 2012,2019
+# [+] International Business Machines Corp.
+#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -24,7 +26,10 @@ ROOTPATH = ../../../..
MODULE = testutil
-TESTS = *.H
+TESTS += $(if $(CONFIG_EARLY_TESTCASES),,testmclmgr.H)
+TESTS += $(if $(CONFIG_EARLY_TESTCASES),,testtcemgr.H)
+TESTS += $(if $(CONFIG_EARLY_TESTCASES),,testlidmgr.H)
+TESTS += threadpool.H
include ${ROOTPATH}/config.mk
diff --git a/src/usr/util/test/testlidmgr.H b/src/usr/util/test/testlidmgr.H
index 1644b1432..74342824c 100644
--- a/src/usr/util/test/testlidmgr.H
+++ b/src/usr/util/test/testlidmgr.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2017 */
+/* Contributors Listed Below - COPYRIGHT 2014,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -47,6 +47,7 @@ public:
*/
void testLidInPnorTest(void)
{
+ UTIL_FT(INFO_MRK"testLidInPnorTest> Begin");
errlHndl_t l_errl = NULL;
size_t l_lidSize = 0;
UtilLidMgr l_lidMgr(Util::TEST_LIDID);
@@ -129,6 +130,7 @@ public:
}
delete[] l_ptrTest;
}while(0);
+ UTIL_FT(INFO_MRK"testLidInPnorTest> End");
}
/**
@@ -137,6 +139,7 @@ public:
*/
void testLidInPnorOcc(void)
{
+ UTIL_FT(INFO_MRK"testLidInPnorOcc> Begin");
errlHndl_t l_errl = NULL;
do
@@ -217,6 +220,7 @@ public:
TS_FAIL("testLidInPnorOcc: failed to release lid from PNOR");
}
}while(0);
+ UTIL_FT(INFO_MRK"testLidInPnorOcc> End");
}
};
diff --git a/src/usr/util/test/testmclmgr.H b/src/usr/util/test/testmclmgr.H
index 97c606a9d..b3398e165 100644
--- a/src/usr/util/test/testmclmgr.H
+++ b/src/usr/util/test/testmclmgr.H
@@ -33,6 +33,7 @@
#include <usr/vmmconst.h>
#include <runtime/preverifiedlidmgr.H>
#include <util/util_reasoncodes.H>
+#include <util/utillidmgr.H>
namespace MCL
{
@@ -389,4 +390,4 @@ public:
}
};
-#endif \ No newline at end of file
+#endif
OpenPOWER on IntegriCloud