1#!/bin/sh 2 3# setup the test environment inside this shell 4. ${srcdir:-.}/setup-sourced 5 6# Execute the test 7xauth add examplehost1/unix:0 . b90b0fd1cf6a0e7a2c74c00000000001 8xauth add examplehost2/unix:0 . b90b0fd1cf6a0e7a2c74c00000000002 9xauth add examplehost3/unix:0 . b90b0fd1cf6a0e7a2c74c00000000003 10 11# Use xauth_silent because otherwise the system dependent paths are printed 12XAUTHORITY2=${DATADIR:-/tmp}/.Xauthority2 13xauth_silent extract $XAUTHORITY2 examplehost2/unix:0 14xauth_silent -f $XAUTHORITY2 list 15 16XAUTHORITY3=${DATADIR:-/tmp}/.Xauthority3 17xauth_silent extract $XAUTHORITY3 examplehost3/unix:0 18xauth_silent -f $XAUTHORITY3 list 19 20rm $XAUTHORITY ; touch $XAUTHORITY 21xauth_silent merge $XAUTHORITY2 $XAUTHORITY3 22xauth list 23 24 25 26 27