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=ef04d462042972e3f0ed134b9edea1ec4c916c76;hb=HEAD;hpb=f5e86ed8fd10a19aaeac4be8703887ffa24fcf7f 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 ef04d46..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 = "sf"; - bool optRerunFailed(true); - bool optRunSerially(false); - - int nextOpt = 0; - do - { - nextOpt = getopt( argc, argv, optString ); - switch(nextOpt) - { - case 'f': - optRerunFailed = false; - 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); }