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/
030-xauth-extract.script revision 0d22642b
19a011757Smrg#!/bin/bash
29a011757Smrg
39a011757Smrg# setup the test ennvironment inside this shell
49a011757Smrg. 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
129a011757SmrgXAUTHORITY2=$DATADIR/.Xauthority2
139a011757Smrgxauth_silent extract $XAUTHORITY2 examplehost2/unix:0
149a011757Smrgxauth_silent -f $XAUTHORITY2 list                    
159a011757Smrg
169a011757SmrgXAUTHORITY3=$DATADIR/.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 Mon Dec 01 22:09:28 GMT 2025