2015-05-30 11:20:59 +00:00
|
|
|
url --url=http://dl.fedoraproject.org/pub/fedora/linux/development/$releasever/$basearch/os/
|
|
|
|
install
|
|
|
|
network --bootproto=dhcp
|
|
|
|
|
|
|
|
bootloader --timeout=1
|
|
|
|
zerombr
|
|
|
|
clearpart --all
|
2016-04-10 04:00:00 +00:00
|
|
|
autopart
|
2015-05-30 11:20:59 +00:00
|
|
|
|
|
|
|
keyboard us
|
|
|
|
lang en
|
|
|
|
timezone America/New_York
|
|
|
|
rootpw qweqwe
|
|
|
|
shutdown
|
|
|
|
|
|
|
|
%packages
|
|
|
|
@^xfce-desktop-environment
|
|
|
|
|
|
|
|
# (1) Test that you can remove a package that's part of a group
|
|
|
|
@c-development
|
|
|
|
-valgrind
|
|
|
|
|
|
|
|
# (2) Test that you can add and then remove the same package.
|
|
|
|
qemu-kvm
|
|
|
|
-qemu-kvm
|
|
|
|
|
|
|
|
# (3) Test that you can add packages with a glob.
|
2016-04-10 04:00:00 +00:00
|
|
|
kacst*
|
2015-05-30 11:20:59 +00:00
|
|
|
|
|
|
|
# (4) Test that you can remove packages with a glob.
|
|
|
|
-ibus*
|
|
|
|
%end
|
|
|
|
|
|
|
|
%post
|
|
|
|
# We don't have a way of determining if a group/env is installed or not.
|
|
|
|
# These sentinel packages will have to do.
|
|
|
|
|
|
|
|
# Testing #1 - gcc should be installed, but not valgrind
|
|
|
|
rpm -q gcc
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
echo '*** c-development group was not installed' > /root/RESULT
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rpm -q valgrind
|
|
|
|
if [[ $? == 0 ]]; then
|
|
|
|
echo '*** valgrind package should not have been installed' > /root/RESULT
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Testing #2 - qemu-kvm should not be installed.
|
|
|
|
rpm -q qemu-kvm
|
|
|
|
if [[ $? == 0 ]]; then
|
2016-04-10 04:00:00 +00:00
|
|
|
echo '*** qemu-kvm package should not have been installed' > /root/RESULT
|
2015-05-30 11:20:59 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-04-10 04:00:00 +00:00
|
|
|
# Testing #3 - kacst font stuff should be installed.
|
|
|
|
count=$(rpm -qa kacst\* | wc -l)
|
|
|
|
if [[ $count -lt 5 ]]; then
|
|
|
|
echo '*** kacst glob was not installed' > /root/RESULT
|
2015-05-30 11:20:59 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Testing #4 - ibus stuff should not be installed.
|
2016-04-10 04:00:00 +00:00
|
|
|
count=$(rpm -qa ibus\* | wc -l)
|
|
|
|
if [[ $count -gt 0 ]]; then
|
2015-05-30 11:20:59 +00:00
|
|
|
echo '*** ibus glob should not have been installed' > /root/RESULT
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo SUCCESS > /root/RESULT
|
|
|
|
%end
|