4 #include <test-harness.h>
5 #include "tct-dali-platform-abstraction-core.h"
7 int main(int argc, char * const argv[])
9 int result = TestHarness::EXIT_STATUS_BAD_ARGUMENT;
11 const char* optString = "rs";
12 bool optRerunFailed(true);
13 bool optRunSerially(false);
18 nextOpt = getopt( argc, argv, optString );
22 optRerunFailed = true;
25 optRunSerially = true;
28 TestHarness::Usage(argv[0]);
29 exit(TestHarness::EXIT_STATUS_BAD_ARGUMENT);
32 } while( nextOpt != -1 );
34 if( optind == argc ) // no testcase name in argument list
38 result = TestHarness::RunAll( argv[0], tc_array );
42 result = TestHarness::RunAllInParallel( argv[0], tc_array, optRerunFailed );
47 // optind is index of next argument - interpret as testcase name
48 result = TestHarness::FindAndRunTestCase(tc_array, argv[optind]);