Cross Reference: 030-xauth-extract.script
xref: /xsrc/external/mit/xauth/dist/tests/030-xauth-extract.script
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/xauth/dist/tests/
1765b7306Smrg#!/bin/sh
29a011757Smrg
3765b7306Smrg# setup the test environment inside this shell
4765b7306Smrg. ${srcdir:-.}/setup-sourced
59a011757Smrg
69a011757Smrg# Execute the test
79a011757Smrgxauth add examplehost1/unix:0 . b90b0fd1cf6a0e7a2c74c00000000001
89a011757Smrgxauth add examplehost2/unix:0 . b90b0fd1cf6a0e7a2c74c00000000002
99a011757Smrgxauth add examplehost3/unix:0 . b90b0fd1cf6a0e7a2c74c00000000003
109a011757Smrg
110d22642bSmrg# Use xauth_silent because otherwise the system dependent paths are printed
12765b7306SmrgXAUTHORITY2=${DATADIR:-/tmp}/.Xauthority2
139a011757Smrgxauth_silent extract $XAUTHORITY2 examplehost2/unix:0
149a011757Smrgxauth_silent -f $XAUTHORITY2 list                    
159a011757Smrg
16765b7306SmrgXAUTHORITY3=${DATADIR:-/tmp}/.Xauthority3
179a011757Smrgxauth_silent extract $XAUTHORITY3 examplehost3/unix:0
189a011757Smrgxauth_silent -f $XAUTHORITY3 list                    
199a011757Smrg
209a011757Smrgrm $XAUTHORITY ; touch $XAUTHORITY
219a011757Smrgxauth_silent merge $XAUTHORITY2 $XAUTHORITY3
229a011757Smrgxauth list
239a011757Smrg
249a011757Smrg
259a011757Smrg
269a011757Smrg
27

Indexes created Sun Nov 30 08:09:32 GMT 2025