3 #include "tct-dali-core.h"
5 int main(int argc, const char *argv[])
11 printf("Usage: %s <testcase name>\n", argv[0]);
15 for (i = 0; tc_array[i].name; i++) {
16 if (!strcmp(argv[1], tc_array[i].name)) {
17 if (tc_array[i].startup)
18 tc_array[i].startup();
20 result = tc_array[i].function();
22 if (tc_array[i].cleanup)
23 tc_array[i].cleanup();
29 printf("Unknown testcase name: \"%s\"\n", argv[1]);