Change-Id: I2bac7c16fa4087edf1930e1cde14971af9fe149f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
TPLTestBase::config = tpl_test_parse_arguments(argc, argv);
// Initialize backend
- TPLTestBase::backend = new TPLWayland();
+ switch(TPLTestBase::config.backend) {
+ case TPL_BACKEND_WAYLAND:
+ case TPL_BACKEND_WAYLAND_THREAD:
+ TPLTestBase::backend = new TPLWayland();
+ break;
+ case TPL_BACKEND_TBM:
+ // TODO
+ break;
+ default:
+ printf("config is not set correctly.\n");
+ printf("Exit program now.\n");
+ return -1;
+ }
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();