File: smoke

package info (click to toggle)
libosinfo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,716 kB
  • sloc: ansic: 16,233; xml: 777; sh: 357; perl: 185; makefile: 29
file content (32 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download | duplicates (4)
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