aboutsummaryrefslogtreecommitdiff
path: root/tests/client/basic-t.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/client/basic-t.in')
-rw-r--r--tests/client/basic-t.in30
1 files changed, 29 insertions, 1 deletions
diff --git a/tests/client/basic-t.in b/tests/client/basic-t.in
index 3a9b2c3..f18c28e 100644
--- a/tests/client/basic-t.in
+++ b/tests/client/basic-t.in
@@ -12,7 +12,7 @@
. "@abs_top_srcdir@/tests/libtest.sh"
# Print the number of tests.
-total=31
+total=35
count=1
echo "$total"
@@ -210,6 +210,34 @@ else
fi
rm -f keytab srvtab
+# Test store from standard input.
+echo "This is a test of store" | runsuccess "" "$wallet" store file fake-test
+count=`expr $count + 1`
+echo "file fake-test" > store-correct
+echo "This is a test of store" >> store-correct
+if cmp store-output store-correct >/dev/null 2>&1 ; then
+ printcount "ok"
+else
+ printcount "not ok"
+ echo == store-output ==
+ cat store-output
+ echo == store-correct ==
+ cat store-correct
+fi
+rm -f store-output store-correct
+
+# Test store with -f.
+echo "This is more store input" > store-input
+echo "file fake-test" > store-correct
+cat store-input >> store-correct
+runsuccess "" "$wallet" -f store-input store file fake-test
+if cmp store-output store-correct >/dev/null 2>&1 ; then
+ printcount "ok"
+else
+ printcount "not ok"
+fi
+rm -f store-input store-output store-correct
+
# Test various other client functions and errors.
runsuccess "This is a fake keytab." "$wallet" get keytab service/fake-output
runsuccess "Some stuff about file fake-test" \