forked from ungleich-public/cdist
simplify test
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
d2b042ab7f
commit
9ce31fa84a
1 changed files with 6 additions and 16 deletions
20
build.sh
20
build.sh
|
@ -126,25 +126,15 @@ case "$1" in
|
|||
| xargs rm -f
|
||||
;;
|
||||
|
||||
t)
|
||||
test)
|
||||
shift # skip t
|
||||
set -x
|
||||
if [ $# -lt 1 ]; then
|
||||
set -- cdist.test
|
||||
fi
|
||||
PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \
|
||||
python3 -m unittest "$@"
|
||||
;;
|
||||
|
||||
test)
|
||||
PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \
|
||||
python3 -m cdist.test
|
||||
;;
|
||||
|
||||
test-install)
|
||||
PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \
|
||||
python3 -m unittest cdist.test.test_install
|
||||
;;
|
||||
|
||||
test-all)
|
||||
PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \
|
||||
python3 -m unittest discover lib/cdist/test '*.py'
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue