Add support for CRIU testing
Change-Id: I8945a078ee8ae491245da6091e64b118584a48ab
This commit is contained in:
committed by
Felix Kuehling
parent
45fad29752
commit
75428364a7
@@ -53,6 +53,7 @@ unsigned int g_TestTimeOut;
|
||||
int g_TestNodeId;
|
||||
int g_TestDstNodeId;
|
||||
bool g_IsChildProcess;
|
||||
unsigned int g_SleepTime;
|
||||
unsigned int g_TestGPUFamilyId;
|
||||
class KFDBaseComponentTest *g_baseTest;
|
||||
|
||||
@@ -80,12 +81,20 @@ GTEST_API_ int main(int argc, char **argv) {
|
||||
if ( args.TimeOut > 0 )
|
||||
g_TestTimeOut = args.TimeOut;
|
||||
|
||||
g_SleepTime = 0x00;
|
||||
if (args.SleepTime > 0) {
|
||||
g_SleepTime = args.SleepTime;
|
||||
}
|
||||
|
||||
// If --node is not specified, then args.NodeId == -1
|
||||
g_TestNodeId = args.NodeId;
|
||||
g_TestDstNodeId = args.DstNodeId;
|
||||
|
||||
LOG() << "Profile: " << (TESTPROFILE)g_TestRunProfile << std::endl;
|
||||
LOG() << "HW capabilities: 0x" << std::hex << g_TestENVCaps << std::endl;
|
||||
if (g_SleepTime > 0) {
|
||||
LOG() << "Sleep time in seconds as specified by user: " << std::dec << g_SleepTime << std::endl;
|
||||
}
|
||||
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user