add autopkgtest
This commit is contained in:
parent
148e751176
commit
131b40b2b4
1
debian/control
vendored
1
debian/control
vendored
@ -10,6 +10,7 @@ Build-Depends: debhelper-compat (=13),
|
||||
python3-setuptools
|
||||
Standards-Version: 4.5.0
|
||||
Rules-Requires-Root: no
|
||||
Testsuite: autopkgtest-pkg-python, autopkgtest
|
||||
|
||||
Package: lubuntu-update-notifier
|
||||
Architecture: all
|
||||
|
2
debian/source/lintian-overrides
vendored
2
debian/source/lintian-overrides
vendored
@ -1,2 +1,2 @@
|
||||
# Wishlist
|
||||
lubuntu-update-notifier source: testsuite-autopkgtest-missing
|
||||
# lubuntu-update-notifier source: testsuite-autopkgtest-missing
|
||||
|
2
debian/tests/control
vendored
Normal file
2
debian/tests/control
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
Tests: run-tests
|
||||
Depends: @
|
25
debian/tests/run-tests
vendored
Executable file
25
debian/tests/run-tests
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# test if apt-check is working as expected.
|
||||
|
||||
OUT=`/usr/lib/update-notifier/apt-check 2>&1`
|
||||
oldIFS=$IFS
|
||||
IFS=';'
|
||||
j=0
|
||||
for STRING in $OUT; do
|
||||
case $j in
|
||||
0)
|
||||
UPG=$STRING;;
|
||||
1)
|
||||
SEC=$STRING;;
|
||||
esac
|
||||
j=`expr $j + 1`
|
||||
done
|
||||
IFS=$oldIFS
|
||||
if [ $UPG -ge 0 ]; then
|
||||
echo "Success: /usr/lib/update-notifier/apt-check is working"
|
||||
exit 0
|
||||
else
|
||||
echo "Failure: /usr/lib/update-notifier/apt-check is NOT working"
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user