| 1 |
#!/bin/sh -e |
| 2 |
# Test code for programs installed to the system-wide |
| 3 |
# Used by autopkgtest |
| 4 |
# |
| 5 |
# (This is not for python venv) |
| 6 |
# |
| 7 |
# check syntax of code browser start script |
| 8 |
echo "Simple check of diff23lib library" |
| 9 |
unset PYTHONPATH |
| 10 |
python3 test/test_unittest_all.py -v 2>&1 |
| 11 |
|
| 12 |
echo "Copy imediff to here to avoid contaminating system " |
| 13 |
cp /usr/bin/imediff ./ |
| 14 |
unset PYTHONPATH |
| 15 |
echo "Syntax check of installed imediff" |
| 16 |
python3 -m py_compile ./imediff |
| 17 |
rm -f ./imediff |
| 18 |
rm -rf ./__pycache__ |
| 19 |
|
| 20 |
echo "Syntax check of installed git-ime" |
| 21 |
sh -n /usr/bin/git-ime |
| 22 |
|
| 23 |
echo "Simple invocation check of imediff" |
| 24 |
/usr/bin/imediff -h >/dev/null |
| 25 |
|
| 26 |
echo "Simple invocation check of git-ime" |
| 27 |
/usr/bin/git-ime -h >/dev/null |
| 28 |
echo "============================================================" |
| 29 |
echo |
| 30 |
echo "Test results: OK" |
| 31 |
echo |