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>
This commit is contained in:
U. Artie Eoff 2012-12-07 13:50:31 -08:00 committed by Kristian Høgsberg
parent e491b13d0a
commit 617f478df3

10
tests/weston-tests-env Normal file → Executable file
View file

@ -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