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 15:30:05 -0500 |
commit | 617f478df3216d3e851b94fbae99ac3e4c264667 (patch) | |
tree | 1e534b72e7329fb17693b4d21038cadd56737276 /tests | |
parent | e491b13d0aca0ce21056fcca85d4338a5fc1a41a (diff) |
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>
Diffstat (limited to 'tests')
-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 |