summaryrefslogtreecommitdiff
path: root/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-21 22:11:47 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-21 22:11:47 +0200
commit3bd20bde1e49ab664cc53262ec5ebb3e6323d3f6 (patch)
treebd7e686e44c3f4e62dc83712b7be94b0e550d204 /tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh
parentd982d8e1f9e6b806d44340ca28858e388a1fded7 (diff)
make tests separate reusable files + make the testing thing a bit better
Diffstat (limited to 'tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh')
-rw-r--r--tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh26
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh b/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh
index d0a20b0..390ee63 100644
--- a/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh
+++ b/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh
@@ -1,20 +1,24 @@
-#!/bin/sh
+#!/bin/bash
+source /usr/share/aif/tests/lib/framework-runtime
-free -m | grep 'Swap:.*20.*' || echo 'SWAP CHECK FAILED'
+aiftest swap 19
+aiftest lvm-lv cryptpool cryptroot '800.00 MB'
+aiftest mount '/dev/mapper/cryptpool-cryptroot on / type xfs (rw)'
+aiftest mount '/dev/mapper/cryptpool-crypthome on /home type xfs (rw)'
+for i in /etc/ / /root/ /home/ /var/
+do
+ aiftest file "$i"/test_file
+done
+aiftest file /usr/bin/ssh
+aiftest nofile /sbin/mkfs.reiserfs
+aiftest nopackage sudo
+aiftest ping 2 archlinux.org
-lvdisplay | grep -A 5 'LV Name.*/dev/mapper/cryptpool-cryptroot' | grep available || echo 'LV ROOT CHECK FAILED'
-lvdisplay | grep -A 7 'LV Name.*/dev/mapper/cryptpool-cryptroot' | grep 'LV Size.*800.00 MB' || echo 'LV ROOT CHECK FAILED'
+aiftest-done
-mount | grep '/dev/mapper/cryptpool-cryptroot on / type xfs (rw)' || echo 'ROOT FS CHECK FAILED'
-mount | grep '/dev/mapper/cryptpool-crypthome on /home type xfs (rw)' || echo 'HOME FS CHECK FAILED'
-for i in /etc/ / /root/ /home/ /var/
-do
[ -f "$i/test_file" ] || echo "TEST FAILED. NO FILE $i/test_file"
-done
-[ -x /usr/bin/ssh ] || echo 'PACKAGE INSTALLATION CHECK SSH FAILED'
-[ -f /sbin/mkfs.reiserfs ] && echo 'PACKAGE INSTALLATION CHECK REISERFS FAILED'
ping -c 2 archlinux.org || echo 'PING CHECK FAILED'