utests: use TDM_CONFIG_KEY_DEBUG_DUMP to dump all tc's buffer 11/174311/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 30 Mar 2018 01:54:22 +0000 (10:54 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 30 Mar 2018 03:48:51 +0000 (12:48 +0900)
All tcs do tdm_display_init/deinit repeatly. "tdm-monitor -dump" can't be used.
So we'd better use env.

Change-Id: If518b97cc45e4d8620e89c2e513ad8056be1b8f9

utests/src/ut_tdm_env.cpp

index 47144ab..25915aa 100644 (file)
@@ -62,6 +62,10 @@ void TDMEnv::SetUp(void)
        const char *debug = getenv("TDM_UT_DEBUG_MODULE");
        if (debug && strstr(debug, "1"))
                tdm_config_set_string(TDM_CONFIG_KEY_DEBUG_MODULE, "buffer,vblank,commit,pp,capture");
+
+       debug = getenv("TDM_UT_DEBUG_DUMP");
+       if (debug && (debug[0] == '1'))
+               tdm_config_set_string(TDM_CONFIG_KEY_DEBUG_DUMP, "all");
 }
 
 void TDMEnv::TearDown(void)