2012-12-12 16:26:38 +04:00
|
|
|
#!/bin/bash
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:31 +04:00
|
|
|
WESTON=$abs_builddir/../src/weston
|
2012-12-12 16:26:38 +04:00
|
|
|
LOGDIR=$abs_builddir/logs
|
|
|
|
|
|
|
|
mkdir -p "$LOGDIR"
|
|
|
|
|
|
|
|
SERVERLOG="$LOGDIR/$1-serverlog.txt"
|
|
|
|
OUTLOG="$LOGDIR/$1-log.txt"
|
|
|
|
|
|
|
|
rm -f "$SERVERLOG"
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:31 +04:00
|
|
|
case $1 in
|
|
|
|
*.la|*.so)
|
2012-12-12 16:26:38 +04:00
|
|
|
$WESTON --modules=$abs_builddir/.libs/${1/.la/.so} \
|
|
|
|
--log="$SERVERLOG" \
|
|
|
|
&> "$OUTLOG"
|
2012-12-08 01:50:31 +04:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
WESTON_TEST_CLIENT_PATH=$abs_builddir/$1 $WESTON \
|
2012-12-12 16:26:38 +04:00
|
|
|
--log="$SERVERLOG" \
|
|
|
|
--modules=$abs_builddir/.libs/weston-test.so \
|
|
|
|
&> "$OUTLOG"
|
2012-12-08 01:50:31 +04:00
|
|
|
esac
|