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
|