You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lubuntu-update-notifier/debian/tests/run-tests

32 lines
630 B

4 years ago
#!/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"
echo "Debugging output:"
echo $OUT;
echo "End debugging output"
4 years ago
exit 0
else
echo "Failure: /usr/lib/update-notifier/apt-check is NOT working"
echo "Debugging output:"
echo $OUT;
echo "End debugging output"
4 years ago
exit 1
fi