[PATCH weston v2 3/6] tests: Allow weston-tests-env to process different test types

U. Artie Eoff ullysses.a.eoff at intel.com
Fri Dec 7 13:50:31 PST 2012


From: "U. Artie Eoff" <ullysses.a.eoff at intel.com>

The weston-tests-env script needs to be able to handle weston
test extension style tests as well as module style tests.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
 tests/weston-tests-env | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
 mode change 100644 => 100755 tests/weston-tests-env

diff --git a/tests/weston-tests-env b/tests/weston-tests-env
old mode 100644
new mode 100755
index 27b40de..1f8281f
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -1,4 +1,12 @@
 #!/bin/sh
 
-../src/weston --modules=$abs_builddir/.libs/${1/.la/.so}
+WESTON=$abs_builddir/../src/weston
 
+case $1 in
+	*.la|*.so)
+		$WESTON --modules=$abs_builddir/.libs/${1/.la/.so}
+		;;
+	*)
+		WESTON_TEST_CLIENT_PATH=$abs_builddir/$1 $WESTON \
+			--modules=$abs_builddir/.libs/weston-test.so
+esac
-- 
1.7.11.7



More information about the wayland-devel mailing list