1765b7306Smrg#!/bin/sh 29a011757Smrg 3765b7306Smrg# setup the test environment inside this shell 4765b7306Smrg. ${srcdir:-.}/setup-sourced 59a011757Smrg 69a011757Smrg# Execute the test 79a011757Smrgxauth add unix:0 . b90b0fd1cf6a0e7a2c74c00000000004 89a011757Smrgxauth add 127.0.0.1:1 . b90b0fd1cf6a0e7a2c74c00000000005 99a011757Smrgxauth add :2 . b90b0fd1cf6a0e7a2c74c00000000006 109a011757Smrgxauth add :3.5 . b90b0fd1cf6a0e7a2c74c00000000007 119a011757Smrgxauth add :4 . b90b0fd1cf6a0e7a2c74c00000000004 129a011757Smrg 139a011757Smrg# List the number of entries added 14765b7306Smrgxauth list | wc -l | xargs echo 159a011757Smrg 169a011757Smrg# Try to match them and print cookie 179a011757Smrgxauth list unix:0 | awk '{print $3}' 189a011757Smrgxauth list 127.0.0.1:1 | awk '{print $3}' 199a011757Smrgxauth list 127.0.0.1:2 | awk '{print $3}' 209a011757Smrgxauth list 127.0.0.1:3.6 | awk '{print $3}' 219a011757Smrgxauth list :4 | awk '{print $3}' 229a011757Smrg 23