Skip to content

Commit

Permalink
Kickstart: Added SELinux test.
Browse files Browse the repository at this point in the history
SELinux test merged to services test to avoid redundancy VM (save
resources).

Signed-off-by: Karel Valek <kvalek@redhat.com>
  • Loading branch information
Karel Valek committed Jul 13, 2015
1 parent 7164c56 commit ea116a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/kickstart_tests/services.ks
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ rootpw testcase
# Test services
services --disabled=sshd --enabled=systemd-timesyncd

# Test SELinux
selinux --enforcing

shutdown

%packages
Expand All @@ -41,6 +44,12 @@ if [[ $? -ne 0 ]]; then
echo "*** systemd-networkd is enabled, should be disabled" >> /root/RESULT
fi
# SELinux test
cat /etc/selinux/config | grep SELINUX=enforcing
if [[ $? -ne 0 ]]; then
echo "*** SELinux not in enforcing mode" >> /root/RESULT
fi
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
Expand Down

0 comments on commit ea116a1

Please sign in to comment.