mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
kodev: tweak test command (#12864)
Support `./kodev test TESTNAME`, as syntactic sugar for `./kodev test all TESTNAME`.
This commit is contained in:
15
kodev
15
kodev
@@ -679,12 +679,15 @@ $(build_options_help_msg 'BUILD' 'use existing build' '' 'default')
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
set -- "${ARGS[@]}"
|
set -- "${ARGS[@]}"
|
||||||
if [[ $# -gt 0 ]]; then
|
case "$1" in
|
||||||
suite="$1"
|
all | base | bench | front)
|
||||||
shift
|
suite="$1"
|
||||||
else
|
shift
|
||||||
suite='all'
|
;;
|
||||||
fi
|
*)
|
||||||
|
suite='all'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
targs+=("$@")
|
targs+=("$@")
|
||||||
setup_target 'emulator'
|
setup_target 'emulator'
|
||||||
run_make ${NO_BUILD:+--assume-old=all} "test${suite}" T="$(print_quoted "${targs[@]}")"
|
run_make ${NO_BUILD:+--assume-old=all} "test${suite}" T="$(print_quoted "${targs[@]}")"
|
||||||
|
|||||||
Reference in New Issue
Block a user