[PATCH weston] tests: print the command line to log

Pekka Paalanen ppaalanen at gmail.com
Mon Jun 13 11:18:56 UTC 2016


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

weston-tests-env is a beast to handle, when you would like to start
weston manually for a test you wan to start inside gdb. This patch
causes the full command line to be printed to the automake test logs, so
you can copy it from there and run it by hand.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 tests/weston-tests-env | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index ab2d6c0..8a6447e 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -40,6 +40,7 @@ case $TEST_FILE in
 	ivi-*.la|ivi-*.so)
 		SHELL_PLUGIN=$MODDIR/ivi-shell.so
 
+		set -x
 		WESTON_BUILD_DIR=$abs_builddir \
 		WESTON_TEST_REFERENCE_PATH=$abs_top_srcdir/tests/reference \
 		$WESTON --backend=$MODDIR/$BACKEND \
@@ -52,6 +53,7 @@ case $TEST_FILE in
 			&> "$OUTLOG"
 		;;
 	*.la|*.so)
+		set -x
 		WESTON_BUILD_DIR=$abs_builddir \
 		WESTON_TEST_REFERENCE_PATH=$abs_top_srcdir/tests/reference \
 		$WESTON --backend=$MODDIR/$BACKEND \
@@ -65,6 +67,7 @@ case $TEST_FILE in
 	ivi-*.weston)
 		SHELL_PLUGIN=$MODDIR/ivi-shell.so
 
+		set -x
 		WESTON_BUILD_DIR=$abs_builddir \
 		WESTON_TEST_REFERENCE_PATH=$abs_top_srcdir/tests/reference \
 		WESTON_TEST_CLIENT_PATH=$abs_builddir/$TEST_FILE \
@@ -78,6 +81,7 @@ case $TEST_FILE in
 			&> "$OUTLOG"
 		;;
 	*)
+		set -x
 		WESTON_BUILD_DIR=$abs_builddir \
 		WESTON_TEST_REFERENCE_PATH=$abs_top_srcdir/tests/reference \
 		WESTON_TEST_CLIENT_PATH=$abs_builddir/$TEST_FILE \
-- 
2.7.3



More information about the wayland-devel mailing list