diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-21 18:51:33 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-07-21 18:51:33 +0200 |
commit | 59d9b7dfd24e53c205cff5a75057e218e781fd1a (patch) | |
tree | f80369d205401093804580e3f5f90f4a87909b10 /tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh | |
parent | f711f60ecc63dddc8fb1d62fdb4dcfa3a08fa2e2 (diff) |
experimental test suite, with one test
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.sh | 20 |
1 files changed, 20 insertions, 0 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 new file mode 100644 index 0000000..d0a20b0 --- /dev/null +++ b/tests/runtime/automatic-lvm-dmcrypt-install-sda/perform_test.sh @@ -0,0 +1,20 @@ +#!/bin/sh + + +free -m | grep 'Swap:.*20.*' || echo 'SWAP CHECK FAILED' + +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' + +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' |