diff options
author | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-10-06 14:16:59 +0200 |
---|---|---|
committer | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-10-06 14:16:59 +0200 |
commit | 10cbe2ed2a96582e7ee9fa5cfe6f8f69a3a4e4d4 (patch) | |
tree | 249eb52181f60840a91e36ea7e067c7f91f7d66b /tests/030-xauth-extract.script | |
parent | 3be53072f8252962c6df740e64e897b970ae0349 (diff) | |
download | xorg-app-xauth-10cbe2ed2a96582e7ee9fa5cfe6f8f69a3a4e4d4.tar.gz |
Added black box tests for basic functionality started with "make check".
Diffstat (limited to 'tests/030-xauth-extract.script')
-rwxr-xr-x | tests/030-xauth-extract.script | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/030-xauth-extract.script b/tests/030-xauth-extract.script new file mode 100755 index 0000000..0fd0bf0 --- /dev/null +++ b/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 + + + + |