summaryrefslogtreecommitdiff
path: root/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp
diff options
context:
space:
mode:
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>2011-07-14 16:19:27 +0000
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>2011-07-14 16:19:27 +0000
commit831ca2acc07ad78d66d8533e4e93172b95514eb3 (patch)
tree4ee9727360e5a62af6b0b01334f5623487f87df7 /tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp
parentc959b173fae668bedcd68f0c939bcf68d82086c6 (diff)
downloadshadow-831ca2acc07ad78d66d8533e4e93172b95514eb3.tar.gz
Added tests for usermod.
Diffstat (limited to 'tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp')
-rwxr-xr-xtests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp b/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp
new file mode 100755
index 00000000..c8866d92
--- /dev/null
+++ b/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp
@@ -0,0 +1,13 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+spawn /bin/bash
+expect "# "
+
+send "login -f foo\r"
+expect "$ "
+
+send "exit\r"
+exit 0