diff options
Diffstat (limited to 'src/usr/expaccess/test')
| -rw-r--r-- | src/usr/expaccess/test/expscomtest.H | 13 | ||||
| -rw-r--r-- | src/usr/expaccess/test/makefile | 2 | ||||
| -rw-r--r-- | src/usr/expaccess/test/test.mk | 7 |
3 files changed, 17 insertions, 5 deletions
diff --git a/src/usr/expaccess/test/expscomtest.H b/src/usr/expaccess/test/expscomtest.H index 6da7d53b1..274ce0bb7 100644 --- a/src/usr/expaccess/test/expscomtest.H +++ b/src/usr/expaccess/test/expscomtest.H @@ -42,8 +42,8 @@ #include <fapi2/hw_access.H> #include <lib/shared/exp_consts.H> #include "exptest_utils.H" +#include "../expscom_trace.H" -extern trace_desc_t* g_trac_expscom; using namespace TARGETING; using namespace ERRORLOG; @@ -120,6 +120,8 @@ public: */ void testExpscomI2c(void) { +// Only MMIO supported at runtime +#ifndef __HOSTBOOT_RUNTIME TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2c"); // Keep trace of pass/fails uint32_t l_tests = 0; @@ -272,8 +274,8 @@ public: // << atomic section mutex_unlock(iv_serializeTestMutex); }while(0); - TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2c"); +#endif return; } @@ -282,6 +284,8 @@ public: */ void testExpscomI2cPlatform(void) { +// Only mmio supported at runtime +#ifndef __HOSTBOOT_RUNTIME TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2cPlatform"); // Keep trace of pass/fails uint32_t l_tests = 0; @@ -434,6 +438,7 @@ public: }while(0); TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2cPlatform"); +#endif return; } @@ -620,6 +625,8 @@ public: */ void testExpscomCombined(void) { +// Only MMIO scoms supported at runtime, i2c not supported +#ifndef __HOSTBOOT_RUNTIME TargetHandleList l_explorerList; uint32_t l_tests = 0; uint32_t l_fails = 0; @@ -796,7 +803,7 @@ public: }while(0); TRACFCOMP(g_trac_expscom, "<< Exit testExpscomCombined"); - +#endif return; } diff --git a/src/usr/expaccess/test/makefile b/src/usr/expaccess/test/makefile index 41706b719..0e4f0e2e5 100644 --- a/src/usr/expaccess/test/makefile +++ b/src/usr/expaccess/test/makefile @@ -28,8 +28,6 @@ MODULE = testexpaccess include test.mk -OBJS += exptest_utils.o - TESTS = *.H include ${ROOTPATH}/config.mk diff --git a/src/usr/expaccess/test/test.mk b/src/usr/expaccess/test/test.mk index 059efe27d..5aaeeda66 100644 --- a/src/usr/expaccess/test/test.mk +++ b/src/usr/expaccess/test/test.mk @@ -30,6 +30,13 @@ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/procedures/hwp/memory/ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/procedures/hwp/memory/ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/common/include EXTRAINCDIR += ${ROOTPATH}/src/import +EXTRAINCDIR += ${ROOTPATH}/src/usr/expaccess/ +EXTRAINCDIR += ${ROOTPATH}/src/usr/expaccess/test/ + +VPATH += ${ROOTPATH}/src/usr/expaccess/test/ +VPATH += ${ROOTPATH}/src/usr/expaccess/ + +OBJS += exptest_utils.o include ${ROOTPATH}/config.mk |

