Signed-off-by: Karel Zak <kzak@redhat.com>
TS_CMD_IPCS=${TS_CMD_IPCS:-"$TOPDIR/sys-utils/ipcs"}
TS_CMD_COL=${TS_CMD_COL:-"$TOPDIR/text-utils/col"}
+
+TS_CMD_NAMEI=${TS_CMD_NAMEI-"$TOPDIR/misc-utils/namei"}
+
+
--- /dev/null
+f: output/namei/namei1/namei2/a
+ d output
+ d namei
+ d namei1
+ d namei2
+ - a
+f: output/namei/namei1/namei2/b
+ d output
+ d namei
+ d namei1
+ d namei2
+ - b
+f: output/namei/namei1/namei2/a/b
+ d output
+ d namei
+ d namei1
+ d namei2
+ - a
+ ? b - No such file or directory (2)
-TS_OUTDIR="$TS_TOPDIR/output"
-TS_DIFFDIR="$TS_TOPDIR/diff"
-TS_EXPECTEDDIR="$TS_TOPDIR/expected"
-TS_INPUTDIR="$TS_TOPDIR/input"
+TS_OUTDIR="output"
+TS_DIFFDIR="diff"
+TS_EXPECTEDDIR="expected"
+TS_INPUTDIR="input"
function ts_skip {
echo " IGNORE ($1)"
--- /dev/null
+#!/bin/bash
+
+. commands.sh
+. functions.sh
+
+TS_COMPONENT="namei"
+TS_DESC="logic"
+
+ts_init
+
+SANDBOX="$TS_OUTDIR/namei"
+
+mkdir -p $SANDBOX/namei1/namei2
+touch $SANDBOX/namei1/namei2/a $SANDBOX/namei1/namei2/b
+
+touch $TS_OUTPUT
+
+$TS_CMD_NAMEI $SANDBOX/namei1/namei2/a >> $TS_OUTPUT 2>&1
+$TS_CMD_NAMEI $SANDBOX/namei1/namei2/b >> $TS_OUTPUT 2>&1
+$TS_CMD_NAMEI $SANDBOX/namei1/namei2/a/b >> $TS_OUTPUT 2>&1
+
+ts_finalize
+