diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-06-13 22:01:59 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-06-14 00:43:44 -0500 |
commit | 49c2bc29d68d941fdc24fef2eaf1b6d86d461051 (patch) | |
tree | 1ccea9adedd49c157fa85746b86a27639a83b577 /src/usr/cxxtest/cxxtestexec.C | |
parent | 08c8311fc4ec8cdefa09ccc448716d19faaf07db (diff) | |
download | talos-hostboot-49c2bc29d68d941fdc24fef2eaf1b6d86d461051.tar.gz talos-hostboot-49c2bc29d68d941fdc24fef2eaf1b6d86d461051.zip |
Changes to CxxTest to allow CI testing through Jenkins.
Change-Id: Iab9f19214d1d820936cab159bd509478972913cd
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/146
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/cxxtest/cxxtestexec.C')
-rw-r--r-- | src/usr/cxxtest/cxxtestexec.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/cxxtest/cxxtestexec.C b/src/usr/cxxtest/cxxtestexec.C index 274f386ef..b4785cbc5 100644 --- a/src/usr/cxxtest/cxxtestexec.C +++ b/src/usr/cxxtest/cxxtestexec.C @@ -3,6 +3,12 @@ #include <string.h> #include <kernel/console.H> +namespace CxxTest +{ + uint64_t g_ModulesStarted = 0; + uint64_t g_ModulesCompleted = 0; +} + /* Iterate through all modules in the VFS named "libtest*" and create children * tasks to execute them. */ @@ -12,6 +18,7 @@ void _start(void*) VfsSystemModule* vfsItr = &VFS_MODULES[0]; printk( "Executing CxxTestExec module.\n"); + __sync_add_and_fetch(&CxxTest::g_ModulesStarted, 1); while(vfsItr->module[0] != '\0') { @@ -19,11 +26,14 @@ void _start(void*) { if (NULL != vfsItr->start) { + __sync_add_and_fetch(&CxxTest::g_ModulesStarted, 1); task_exec(vfsItr->module, NULL); } } vfsItr++; } + __sync_add_and_fetch(&CxxTest::g_ModulesCompleted, 1); + task_end(); } |