#!/bin/sh

set -e

. ./debian/tests/chkboot-testing-lib

case "$AUTOPKGTEST_REBOOT_MARK" in
    "")
        setup_chkboot

        echo "assert initial state"
        chkboot-check

        echo "rebooting"
        /tmp/autopkgtest-reboot mark1
        ;;

    mark1)
        echo "assert state after reboot with no changes"
        chkboot-check
        ;;
esac
echo "test end"
