2019-10-15 23:48:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Note: execute this file from the project root directory
|
|
|
|
|
|
|
|
#####
|
|
|
|
#
|
|
|
|
# Test the live-iso image
|
|
|
|
#
|
|
|
|
#####
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh
|
|
|
|
. $(dirname $0)/lib/lib.sh
|
|
|
|
|
|
|
|
rlJournalStart
|
|
|
|
rlPhaseStartTest "Verify live iso"
|
|
|
|
# Just the fact that this is running means the image can boot and ssh is working
|
2019-10-23 09:50:33 +00:00
|
|
|
ROOT_ACCOUNT_LOCKED=0 verify_image liveuser localhost "-p 22"
|
2019-10-15 23:48:13 +00:00
|
|
|
rlAssertGrep "liveuser" /etc/passwd
|
|
|
|
rlAssertGrep "custom_cmdline_arg" /proc/cmdline
|
|
|
|
rlPhaseEnd
|
|
|
|
rlJournalEnd
|
|
|
|
rlJournalPrintText
|