4 #include <test-harness.h>
6 #include "tct-dali-core.h"
8 int main(int argc, char* const argv[])
10 int result = TestHarness::EXIT_STATUS_BAD_ARGUMENT;
12 const char* optString = "sf";
13 bool optRerunFailed(true);
14 bool optRunSerially(false);
19 nextOpt = getopt(argc, argv, optString);
23 optRerunFailed = false;
26 optRunSerially = true;
29 TestHarness::Usage(argv[0]);
30 exit(TestHarness::EXIT_STATUS_BAD_ARGUMENT);
33 } while(nextOpt != -1);
35 if(optind == argc) // no testcase name in argument list
39 result = TestHarness::RunAll(argv[0], tc_array);
43 result = TestHarness::RunAllInParallel(argv[0], tc_array, optRerunFailed);
48 // optind is index of next argument - interpret as testcase name
49 result = TestHarness::FindAndRunTestCase(tc_array, argv[optind]);