[Fai-commit] r5478 - in trunk: debian examples/simple/tests

Thomas Lange lange at alioth.debian.org
Thu Jul 23 10:43:28 UTC 2009


Author: lange
Date: 2009-07-23 10:43:27 +0000 (Thu, 23 Jul 2009)
New Revision: 5478

Added:
   trunk/examples/simple/tests/FAIBASE_TEST
Modified:
   trunk/debian/changelog
Log:
tests/FAIBASE_TEST: add simple test for partition layout of FAIBASE

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-07-23 10:22:01 UTC (rev 5477)
+++ trunk/debian/changelog	2009-07-23 10:43:27 UTC (rev 5478)
@@ -41,6 +41,7 @@
   * faimond-gui: add task tests
   * tests/Faitest.pm: new file including subroutines for tests. Thanks to
     Sebastian Hetze for the initial version.
+  * tests/FAIBASE_TEST: add simple test for partition layout of FAIBASE
   * disk_config/FAIBASE: add file system labels
   * examples/more-tests: add more tests from Sebastian
   

Added: trunk/examples/simple/tests/FAIBASE_TEST
===================================================================
--- trunk/examples/simple/tests/FAIBASE_TEST	                        (rev 0)
+++ trunk/examples/simple/tests/FAIBASE_TEST	2009-07-23 10:43:27 UTC (rev 5478)
@@ -0,0 +1,44 @@
+#! /usr/bin/perl
+
+use strict;
+use warnings;
+use Faitest;
+package FAITEST;
+
+setup_test();
+#  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
+# now comes the test itself
+
+my $dev = &getDevByMount("/target/home");
+&checkE2fsAttribute($dev,"Filesystem volume name","home");
+&checkE2fsAttribute($dev,"Maximum mount count","-1");
+&checkE2fsAttribute($dev,"Check interval","0 (<none>)");
+
+exit printresult();
+#  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
+__END__
+
+=head1 NAME
+
+FAIBASE_TEST - regression test for setup-storage disk layout FAIBASE
+
+=head1 SYNOPSIS
+
+FAIBASE_TEST checks some important aspects of setup-storage. The
+disk_config/FAIBASE tunes some filesystem parameters upon creation. We
+check only the last partition since we expect prior errors to make
+creation of the last partition fail.
+
+ Options:
+ -help          simple help
+ -verbose=n     increase verbosity of test script
+
+=head1 OPTIONS
+
+=over 8
+
+=item B<-help>
+simple help
+
+=item B<-verbose>
+increase verbosity of test script


Property changes on: trunk/examples/simple/tests/FAIBASE_TEST
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fai-commit mailing list