summaryrefslogtreecommitdiffstats
path: root/tests/ts/login
diff options
context:
space:
mode:
authorKarel Zak2009-01-19 23:59:51 +0100
committerKarel Zak2009-02-11 23:30:48 +0100
commit37c28b42a6f35bf050b6f0dfeccd8a86e91b1281 (patch)
tree852eaf48b51f696618be994616afb6ac34c347d0 /tests/ts/login
parenttests: cleanup ts/ipcs (diff)
downloadkernel-qcow2-util-linux-37c28b42a6f35bf050b6f0dfeccd8a86e91b1281.tar.gz
kernel-qcow2-util-linux-37c28b42a6f35bf050b6f0dfeccd8a86e91b1281.tar.xz
kernel-qcow2-util-linux-37c28b42a6f35bf050b6f0dfeccd8a86e91b1281.zip
tests: cleanup ts/login
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/login')
-rwxr-xr-xtests/ts/login/checktty7
-rwxr-xr-xtests/ts/login/islocal7
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/ts/login/checktty b/tests/ts/login/checktty
index a5a132799..d19fb023b 100755
--- a/tests/ts/login/checktty
+++ b/tests/ts/login/checktty
@@ -15,13 +15,12 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="login"
+TS_TOPDIR="$(dirname $0)/../.."
TS_DESC="checktty"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
+
$TS_CMD_CHECKTTY >> $TS_OUTPUT
ts_finalize
diff --git a/tests/ts/login/islocal b/tests/ts/login/islocal
index acffb0773..0534f7ef0 100755
--- a/tests/ts/login/islocal
+++ b/tests/ts/login/islocal
@@ -15,13 +15,12 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="login"
+TS_TOPDIR="$(dirname $0)/../.."
TS_DESC="islocal"
+. $TS_TOPDIR/functions.sh
ts_init "$*"
+
$TS_CMD_ISLOCAL "$TS_SELF/islocal.data" root nobody "" youngman youngman2 \
abcdefghx nobo long rot al malformed \
nonl znobody >> $TS_OUTPUT