File: check-script

package info (click to toggle)
imediff 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 820 kB
  • sloc: python: 6,397; sh: 904; xml: 336; makefile: 28
file content (31 lines) | stat: -rwxr-xr-x 794 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -e
# Test code for programs installed to the system-wide
# Used by autopkgtest
#
# (This is not for python venv)
#
# check syntax of code browser start script
echo "Simple check of diff23lib library"
unset PYTHONPATH
python3 test/test_unittest_all.py -v 2>&1

echo "Copy imediff to here to avoid contaminating system "
cp /usr/bin/imediff ./
unset PYTHONPATH
echo "Syntax check of installed imediff"
python3 -m py_compile ./imediff
rm -f ./imediff
rm -rf ./__pycache__

echo "Syntax check of installed git-ime"
sh -n /usr/bin/git-ime

echo "Simple invocation check of imediff"
/usr/bin/imediff -h >/dev/null

echo "Simple invocation check of git-ime"
/usr/bin/git-ime -h >/dev/null
echo "============================================================"
echo
echo "Test results: OK"
echo