summaryrefslogtreecommitdiff
path: root/app/xauth/tests/030-xauth-extract.script
diff options
context:
space:
mode:
Diffstat (limited to 'app/xauth/tests/030-xauth-extract.script')
-rw-r--r--app/xauth/tests/030-xauth-extract.script26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/xauth/tests/030-xauth-extract.script b/app/xauth/tests/030-xauth-extract.script
new file mode 100644
index 000000000..0fd0bf0ea
--- /dev/null
+++ b/app/xauth/tests/030-xauth-extract.script
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# setup the test ennvironment inside this shell
+. setup-sourced
+
+# Execute the test
+xauth add examplehost1/unix:0 . b90b0fd1cf6a0e7a2c74c00000000001
+xauth add examplehost2/unix:0 . b90b0fd1cf6a0e7a2c74c00000000002
+xauth add examplehost3/unix:0 . b90b0fd1cf6a0e7a2c74c00000000003
+
+# Use xauth_silent because otherwise the system dependant pathes are printed
+XAUTHORITY2=$DATADIR/.Xauthority2
+xauth_silent extract $XAUTHORITY2 examplehost2/unix:0
+xauth_silent -f $XAUTHORITY2 list
+
+XAUTHORITY3=$DATADIR/.Xauthority3
+xauth_silent extract $XAUTHORITY3 examplehost3/unix:0
+xauth_silent -f $XAUTHORITY3 list
+
+rm $XAUTHORITY ; touch $XAUTHORITY
+xauth_silent merge $XAUTHORITY2 $XAUTHORITY3
+xauth list
+
+
+
+