Switch default mirror from httpredir.debian.org to deb.debian.org
[grml-debootstrap.git] / docker / test_dirinstall.bats
1 #!/usr/bin/env bats
2
3 mountpoint="/srv/debian"
4
5 @test "ensure no grub configuration is present" {
6   run ls "${mountpoint}"/boot/grub/grub.cfg
7   [ "$status" -ne 0 ]
8 }
9
10 @test "kernel is absent" {
11   run ls "${mountpoint}"/boot/vmlinuz-*
12   [ "$status" -ne 0 ]
13 }
14
15 @test "ensure eatmydata package is present" {
16   run chroot "${mountpath}" dpkg --list eatmydata
17   [ "$status" -eq 0 ]
18 }
19
20 @test "debian_version exists and is valid version" {
21   run cat "${mountpoint}/etc/debian_version"
22   [ "$status" -eq 0 ]
23   [[ "$output" == [0-9].[0-9]* ]] || [[ "$output" == 'stretch/sid' ]]
24 }