2
1
mirror of https://github.com/deadc0de6/catcli synced 2024-11-15 18:14:01 +00:00
catcli/tests.sh

27 lines
472 B
Bash
Raw Normal View History

2017-12-14 18:37:31 +00:00
#!/bin/sh
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2017, deadc0de6
2021-10-16 15:18:14 +00:00
cur=$(dirname "$(readlink -f "${0}")")
2017-12-14 18:37:31 +00:00
# stop on first error
set -ev
2018-04-11 08:22:06 +00:00
pycodestyle --ignore=W605 catcli/
2017-12-14 18:37:31 +00:00
pycodestyle tests/
2019-02-16 12:35:33 +00:00
pyflakes catcli/
pyflakes tests/
2022-01-15 13:41:45 +00:00
nosebin="nosetests"
PYTHONPATH=catcli ${nosebin} -s --with-coverage --cover-package=catcli
#PYTHONPATH=catcli ${nosebin} -s
2021-10-16 15:18:14 +00:00
for t in ${cur}/tests-ng/*; do
echo "running test \"`basename ${t}`\""
${t}
done
2021-10-16 15:23:25 +00:00
exit 0