1#!/bin/sh 2 3# setup the test environment inside this shell 4. ${srcdir:-.}/setup-sourced 5 6# Execute the test 7xauth add unix:0 . b90b0fd1cf6a0e7a2c74c00000000004 8xauth add 127.0.0.1:1 . b90b0fd1cf6a0e7a2c74c00000000005 9xauth add :2 . b90b0fd1cf6a0e7a2c74c00000000006 10xauth add :3.5 . b90b0fd1cf6a0e7a2c74c00000000007 11xauth add :4 . b90b0fd1cf6a0e7a2c74c00000000004 12 13# List the number of entries added 14xauth list | wc -l | xargs echo 15 16# Try to match them and print cookie 17xauth list unix:0 | awk '{print $3}' 18xauth list 127.0.0.1:1 | awk '{print $3}' 19xauth list 127.0.0.1:2 | awk '{print $3}' 20xauth list 127.0.0.1:3.6 | awk '{print $3}' 21xauth list :4 | awk '{print $3}' 22 23