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

44 lines
798 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-10-20 20:01:37 +00:00
# R0914: Too many local variables
# R0913: Too many arguments
# R0912: Too many branches
# R0915: Too many statements
2022-10-21 21:06:46 +00:00
# R0911: Too many return statements
2022-10-20 20:01:37 +00:00
pylint \
--disable=R0914 \
--disable=R0913 \
--disable=R0912 \
--disable=R0915 \
2022-10-21 21:06:46 +00:00
--disable=R0911 \
2022-10-20 20:01:37 +00:00
catcli/
pylint \
--disable=W0212 \
--disable=R0914 \
--disable=R0915 \
--disable=R0801 \
tests/
2022-01-15 13:41:45 +00:00
2022-10-20 18:48:01 +00:00
nosebin="nose2"
PYTHONPATH=catcli ${nosebin} --with-coverage --coverage=catcli
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