refine results
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Sat, 28 Apr 2012 19:06:10 +0000 (12:06 -0700)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Sat, 28 Apr 2012 19:06:10 +0000 (12:06 -0700)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/test-harness
src/test_bind_interface.cpp

index 6cd2510..f7096ea 100644 (file)
@@ -2,15 +2,20 @@
 
 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
index e34943f..24c2d18 100644 (file)
@@ -10,7 +10,7 @@ struct BindInterface {
        {
                BOOST_REQUIRE(display);
        }
-
+       
        void bind()
        {
                wl_display_add_global_listener(display, &BindInterface::callback, this);
@@ -43,10 +43,11 @@ BOOST_FIXTURE_TEST_CASE(bind_##name, bind_##name##_interface) \
        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