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"
# 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 }'"
)
# 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"
# 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"
# 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