Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
RESULT_LOG=${1}.xml
-$WLD/install/bin/weston &
+rm -rf ${RESULT_LOG}
-sleep 2 # allow time for weston to initialize
+$WLD/install/bin/weston & sleep 2 # allow time for weston to initialize
${1} --log_level=all --log_format=xml --report_level=detailed > ${RESULT_LOG}
-kill -15 %1
+RESULT=$?
-xmllint ${RESULT_LOG} --format -o ${RESULT_LOG}
+kill -15 %1
-echo "See full results in `readlink -f ${RESULT_LOG}`"
+if [ -f ${RESULT_LOG} ]
+then
+ xmllint ${RESULT_LOG} --format -o ${RESULT_LOG}
+ echo "See full results in `readlink -f ${RESULT_LOG}`"
+fi
+exit ${RESULT}
\ No newline at end of file
{
BOOST_REQUIRE(display);
}
-
+
void bind()
{
wl_display_add_global_listener(display, &BindInterface::callback, this);
bind(); \
BOOST_CHECK(object != NULL); \
}
-
-BIND_TEST(wl_compositor)
-BIND_TEST(wl_display)
-BIND_TEST(wl_shm)
-BIND_TEST(wl_output)
-BIND_TEST(wl_input_device)
-BIND_TEST(wl_shell)
+BOOST_AUTO_TEST_SUITE(Bind_Interface_Suite)
+ BIND_TEST(wl_compositor)
+ BIND_TEST(wl_display)
+ BIND_TEST(wl_shm)
+ BIND_TEST(wl_output)
+ BIND_TEST(wl_input_device)
+ BIND_TEST(wl_shell)
+BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file