cleanup repository tree. use entry_points in setuptools instead of symlink

This commit is contained in:
Edwin Eefting
2021-02-07 13:00:04 +01:00
parent 0214584e4c
commit 4f9b7b6cef
21 changed files with 27 additions and 69 deletions

28
tests/run_tests Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
SCRIPTDIR=`dirname $0`
#cd $SCRIPTDIR || exit 1
if [ "$USER" != "root" ]; then
echo "Need root to do proper zfs testing"
exit 1
fi
# test needs ssh access to localhost for testing
if ! [ -e /root/.ssh/id_rsa ]; then
ssh-keygen -t rsa -f /root/.ssh/id_rsa -P '' || exit 1
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys || exit 1
ssh -oStrictHostKeyChecking=no localhost true || exit 1
fi
coverage run --source zfs_autobackup -m unittest discover -vvvvf $SCRIPTDIR $@ 2>&1
EXIT=$?
echo
coverage report
exit $EXIT