X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-styling%2Ftct-dali-toolkit-styling-core.cpp;h=16b61c2a18c475967561afeedc21be9d3059c5a4;hp=6e99684e16c0cb80d23e7fff0a8df063441c8b17;hb=HEAD;hpb=24d1c5037a28d3b8e9094dbb65630687e079705a;ds=sidebyside diff --git a/automated-tests/src/dali-toolkit-styling/tct-dali-toolkit-styling-core.cpp b/automated-tests/src/dali-toolkit-styling/tct-dali-toolkit-styling-core.cpp index 6e99684..16b61c2 100644 --- a/automated-tests/src/dali-toolkit-styling/tct-dali-toolkit-styling-core.cpp +++ b/automated-tests/src/dali-toolkit-styling/tct-dali-toolkit-styling-core.cpp @@ -1,51 +1,7 @@ -#include -#include -#include #include #include "tct-dali-toolkit-styling-core.h" int main(int argc, char * const argv[]) { - int result = TestHarness::EXIT_STATUS_BAD_ARGUMENT; - - const char* optString = "rs"; - bool optRerunFailed(true); - bool optRunSerially(false); - - int nextOpt = 0; - do - { - nextOpt = getopt( argc, argv, optString ); - switch(nextOpt) - { - case 'r': - optRerunFailed = true; - break; - case 's': - optRunSerially = true; - break; - case '?': - TestHarness::Usage(argv[0]); - exit(TestHarness::EXIT_STATUS_BAD_ARGUMENT); - break; - } - } while( nextOpt != -1 ); - - if( optind == argc ) // no testcase name in argument list - { - if( optRunSerially ) - { - result = TestHarness::RunAll( argv[0], tc_array ); - } - else - { - result = TestHarness::RunAllInParallel( argv[0], tc_array, optRerunFailed ); - } - } - else - { - // optind is index of next argument - interpret as testcase name - result = TestHarness::FindAndRunTestCase(tc_array, argv[optind]); - } - return result; + return TestHarness::RunTests(argc, argv, tc_array); }