]> err.no Git - util-linux/commitdiff
tests: cleanup ts/ipcs
authorKarel Zak <kzak@redhat.com>
Mon, 19 Jan 2009 22:57:10 +0000 (23:57 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:30:48 +0000 (23:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh
tests/ts/ipcs/functions.sh
tests/ts/ipcs/headers
tests/ts/ipcs/limits
tests/ts/ipcs/limits2

index 903f4ba229701e9989dde1c34bb4c70fb4911fc2..6dbbeb7760967bc9261a216fbc5b7165b6fc5cd5 100644 (file)
@@ -80,7 +80,7 @@ function ts_init {
 
        TS_OUTDIR="$TS_TOPDIR/output/$TS_COMPONENT"
        TS_OUTPUT="$TS_OUTDIR/$TS_TESTNAME"
-       TS_DIFFDIR="$TS_DIFFDIR/diff/$TS_COMPONENT"
+       TS_DIFFDIR="$TS_TOPDIR/diff/$TS_COMPONENT"
        TS_DIFF="$TS_DIFFDIR/$TS_TESTNAME"
        TS_EXPECTED="$TS_TOPDIR/expected/$TS_NS"
        TS_MOUNTPOINT="$TS_OUTDIR/${TS_TESTNAME}-mnt"
index ff35e75ea9c88b19d0e71c9d5cc675d8e6b4df4e..d742d8ef070ed638337a5b33690e5cd01e6a535d 100644 (file)
@@ -38,9 +38,9 @@ IPCS_KERNEL_CMD=(
 
 # data from the ipcs command
 IPCS_CMD=(
-       "$TS_CMD_IPCS -m -l | $AWK '/max number of segments/ { print \$6 }'"
-       "$TS_CMD_IPCS -m -l | $AWK '/max total shared memory/ { print \$7 }'"
-       "$TS_CMD_IPCS -m -l | $AWK '/max seg size/ { print \$6 }'"
+       "$TS_CMD_IPCS -m -l | awk '/max number of segments/ { print \$6 }'"
+       "$TS_CMD_IPCS -m -l | awk '/max total shared memory/ { print \$7 }'"
+       "$TS_CMD_IPCS -m -l | awk '/max seg size/ { print \$6 }'"
 )
 
 
index 8a391d0c9019508a377b23f1d1adcc4671f51390..53bc3d1ae97f4efef3048a4ab3883b5222299036 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="ipcs"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="headers"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 
 ts_log "test: shm headers"
index 0fb316064765d9b03211cac3f7eae01c4a6eecc8..c4efb9cce994e6337ad24d16719a8c67dc051b28 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
 
-TS_COMPONENT="ipcs"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="limits overflow"
 
+. $TS_TOPDIR/functions.sh
+
 ts_init "$*"
 ts_skip_nonroot
+
 . $TS_SELF/functions.sh
 
 ts_log "load original values"
index 17c3c702f049bc08d3ecc334d731b1468697790d..db2ca2b986ebd14a5162a2d15e78e64878d18ac3 100755 (executable)
 # GNU General Public License for more details.
 #
 
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="basic limits"
 
-. ./functions.sh
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 
 . $TS_SELF/functions.sh