Lines Matching refs:g_param
71 static struct TestsuitesParam g_param;
176 const char *unittestRun = g_param.testsuitesBin;
223 if (memcpy_s(g_param.testsuitesDir, TEST_PATH_MAX, testDir, len + 1) != EOK) {
228 char *end = g_param.testsuitesDir + len;
235 g_param.testsuitesDirLen = len;
251 if (memcpy_s(g_param.testsuitesBin, TEST_PATH_MAX, end, strlen(end)) != EOK) {
267 if (g_param.testCaseNum >= TEST_DEFAULT_CASE_MAX) {
271 g_param.testCase[g_param.testCaseNum] = (struct TestCase *)malloc(sizeof(struct TestCase));
272 if (g_param.testCase[g_param.testCaseNum] == nullptr) {
276 (void)memset_s(g_param.testCase[g_param.testCaseNum], sizeof(struct TestCase), 0, sizeof(struct TestCase));
277 struct TestCase *testCase = g_param.testCase[g_param.testCaseNum];
290 g_param.testCaseNum++;
301 g_param.testMode = TEST_CASE_MODE_FULL;
302 g_param.repeat = 1;
316 g_param.testMode = TEST_CASE_MODE_SMOKE;
318 g_param.testMode = TEST_CASE_MODE_FULL;
333 g_param.repeat = atoi(argv[i]);
334 if ((g_param.repeat <= 0) || (g_param.repeat > 1000)) { /* 1000: repeat limit */
366 g_param.testCaseNum++;
375 int count = g_param.testCaseNum;
376 g_param.testCaseNum = 0;
379 IsCase(files, g_param.testCase[i]);
382 if (g_param.testCaseNum == 0) {
391 for (int index = 0; index < g_param.testCaseNum; index++) {
392 free(g_param.testCase[index]);
393 g_param.testCase[index] = nullptr;
429 (void)memset_s(&g_param, sizeof(struct TestsuitesParam), 0, sizeof(struct TestsuitesParam));
443 vector<string> files = GetAllTestsuites(g_param.testsuitesDir);
445 if (g_param.testCaseNum != 0) {
454 while (count < g_param.repeat) {
455 if (g_param.testCaseNum == 0) {
456 RunAllTestCase(files, &g_param);
458 for (int index = 0; index < g_param.testCaseNum; index++) {
459 RunCase(g_param.testCase[index]->bin, g_param.testCase[index]->param);