5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the Free
7 # Software Foundation; either version 2 of the License, or (at your option)
10 # test_filecaps.sh - Run the file capabilities test suite.
12 # Must be root to run the containers testsuite
15 echo "FAILED: Must be root to execute this script"
19 # set the LTPROOT directory
22 echo $LTPROOT |
grep testscripts
> /dev
/null
2>&1
29 # set the PATH to include testcase/bin
31 export PATH
=$PATH:/usr
/sbin
:$LTPROOT/testcases
/bin
32 export LTPBIN
=$LTPROOT/testcases
/bin
34 # We will store the logfiles in $LTPROOT/results, so make sure
36 if [ ! -d $LTPROOT/results
]
38 mkdir
$LTPROOT/results
41 # Check the role and mode testsuite is being executed under.
42 echo "Running the file capabilities testsuite..."
44 $LTPROOT/pan
/ltp-pan
-S -a $LTPROOT/results
/filecaps
-n ltp-filecaps
-l $LTPROOT/results
/filecaps.logfile
-o $LTPROOT/results
/filecaps.outfile
-p -f $LTPROOT/runtest
/filecaps