#! /usr/bin/perl

# Copyright (C) 2001-2022 Thomas Lange <lange@informatik.uni-koeln.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

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
