mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
test: expand with command line options for increased usability
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+29
-4
@@ -1,8 +1,33 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Run test suite with the correct configure params
|
# Run test suite with the correct configure params
|
||||||
|
run_make=1
|
||||||
|
jobs=17
|
||||||
|
|
||||||
make distclean
|
while [ $# -gt 0 ]; do
|
||||||
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
|
case "$1" in
|
||||||
--enable-x11-common-plugin --with-watchdog --with-keventd \
|
-n|--no-make)
|
||||||
|
run_make=0
|
||||||
|
;;
|
||||||
|
-j|--jobs)
|
||||||
|
shift
|
||||||
|
jobs="$1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 [--no-make] [-j N]"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$run_make" -eq 1 ]; then
|
||||||
|
make distclean
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
|
||||||
|
--enable-x11-common-plugin --with-watchdog --with-keventd \
|
||||||
CFLAGS='-fsanitize=address -ggdb'
|
CFLAGS='-fsanitize=address -ggdb'
|
||||||
make -j17 clean check
|
|
||||||
|
if [ "$run_make" -eq 1 ]; then
|
||||||
|
make -j"$jobs" clean check
|
||||||
|
fi
|
||||||
Reference in new issue
Block a user