diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2012-12-07 13:50:31 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-12-11 23:57:43 -0500 |
commit | 2163565dbe1939dceead0ada1e52eac46032dc64 (patch) | |
tree | 0b086ae5e619191e2714142e7db690bec0ad24eb | |
parent | 7ecfe868c731aad32669b972f0d71294ebb2d503 (diff) | |
download | weston-2163565dbe1939dceead0ada1e52eac46032dc64.tar.gz |
tests: Allow weston-tests-env to process different test types
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@intel.com>
-rwxr-xr-x[-rw-r--r--] | tests/weston-tests-env | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/weston-tests-env b/tests/weston-tests-env index 27b40de2..1f8281fc 100644..100755 --- 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 |