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 32
|
#!/bin/sh
set -e
set -x
test_preseed()
{
osinfo-install-script \
--config l10n-timezone=GMT+1 \
--config l10n-keyboard=de \
--config l10n-language=en_US \
--config admin-password=viot0kaP \
debian8
test -f preseed.cfg
rm -f preseed.cfg
}
test_osinfo()
{
# Just dump the DB
osinfo-query os >/dev/null
# Check if we can find Debian Jessie
osinfo-query os name="Debian 8" | grep -qs debian8
}
test_osinfo
test_preseed
echo 'Smoke test of osinfo-query succesful'
exit 0
|