Update of /cvsroot/ltp/ltp/testscripts
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv8178/ltp/testscripts
Initial set of Filecaps testcases from Serge, "Serge E. Hallyn" <serue@...>
--- NEW FILE: test_filecaps.sh ---
# Copyright 2007 IBM
# 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.
# test_filecaps.sh - Run the file capabilities test suite.
# Must be root to run the containers testsuite
if [ $UID != 0 ]
echo "FAILED: Must be root to execute this script"
# set the LTPROOT directory
cd `dirname $0`
echo $LTPROOT | grep testscripts > /dev/null 2>&1
if [ $? -eq 0 ]
# set the PATH to include testcase/bin
# We will store the logfiles in $LTPROOT/results, so make sure
# it exists.
if [ ! -d $LTPROOT/results ]
# Check the role and mode testsuite is being executed under.
echo "Running the file capabilities testsuite..."
$LTPROOT/pan/pan -S -a $LTPROOT/results/filecaps -n ltp-filecaps -l $LTPROOT/results/filecaps.logfile -o $LTPROOT/results/filecaps.outfile -p -f $LTPROOT/runtest/filecaps