1# $OpenBSD: Makefile,v 1.2 2010/07/14 06:19:26 halex Exp $ 2 3REGRESS_TARGETS= \ 4 ${DASHO_TARGETS:C/^/t-dasho-/} \ 5 ${REDIRECT_TARGETS:C/^/t-redirect-/} 6 7dfile=file:../src/- 8xfile=file:../src/X 9 10dasho= @sh ${.CURDIR}/dasho.sh 11 12# ${dasho} <args> <$?> <out> <err> <files> 13 14t-dasho-1: 15 ${dasho} "-V ${dfile}" 0 "" "" "[-] DASH" 16 17t-dasho-2: 18 ${dasho} "-V -oX ${dfile}" 0 "" "" "[X] DASH" 19 20t-dasho-3: 21 ${dasho} "-V -o- -oX ${dfile}" 0 "" "" "[X] DASH" 22 23t-dasho-4: 24 ${dasho} "-V -o- ${dfile}" 0 "DASH" "" "" 25 26t-dasho-5: 27 ${dasho} "-V -oX -o- ${dfile}" 0 "DASH" "" "" 28 29t-dasho-6: 30 ${dasho} "-V -o./- ${dfile}" 0 "" "" "[-] DASH" 31 32t-dasho-7: 33 ${dasho} "-V ${xfile}" 0 "" "" "[X] XXXX" 34 35t-dasho-8: 36 ${dasho} "-V -oX ${xfile}" 0 "" "" "[X] XXXX" 37 38t-dasho-9: 39 ${dasho} "-V -o- -oX ${xfile}" 0 "" "" "[X] XXXX" 40 41t-dasho-10: 42 ${dasho} "-V -o- ${xfile}" 0 "XXXX" "" "" 43 44t-dasho-11: 45 ${dasho} "-V -oX -o- ${xfile}" 0 "XXXX" "" "" 46 47t-dasho-12: 48 ${dasho} "-V -o./- ${xfile}" 0 "" "" "[-] XXXX" 49 50t-dasho-13: 51 ${dasho} "-V -oX -o '' ${xfile}" 0 "" "" "[X] XXXX" 52 53t-dasho-14: 54 ${dasho} "-V -o- -o '' ${dfile}" 0 "" "" "[-] DASH" 55 56t-dasho-15: 57 ${dasho} "-V -oX -o '' ${xfile}" 0 "" "" "[X] XXXX" 58 59t-dasho-16: 60 ${dasho} "-V -o- -o '' ${dfile}" 0 "" "" "[-] DASH" 61 62DASHO_TARGETS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 63 64 65rport1?= 9000 66rport2?= 9001 67rbase1= http://localhost:${rport1} 68rbase2= http://localhost:${rport2} 69rbase_1= http://[localhost]:${rport1} 70rbase_2= http://[localhost]:${rport2} 71 72redirect= @rport1=${rport1} rport2=${rport2} sh ${.CURDIR}/redirect.sh 73 74# ${redirect} request Location: request 75 76t-redirect-1: 77 ${redirect} ${rbase1}/path/to/file ${rbase2}/another/file ${rbase2}/another/file 78 79t-redirect-2: 80 ${redirect} ${rbase1}/path/to/file ${rbase2}/ ${rbase2}/ 81 82t-redirect-3: 83 ${redirect} ${rbase1}/path/to/file /another/file ${rbase1}/another/file 84 85t-redirect-4: 86 ${redirect} ${rbase1}/path/to/file / ${rbase1}/ 87 88t-redirect-5: 89 ${redirect} ${rbase1}/path/to/file another/file ${rbase1}/path/to/another/file 90 91t-redirect-6: 92 ${redirect} ${rbase1}/path/to/file/ another/file ${rbase1}/path/to/file/another/file 93 94t-redirect-7: 95 ${redirect} ${rbase1}/path/to/file ../ ${rbase1}/path/to/../ 96 97t-redirect-8: 98 ${redirect} ${rbase1}/path/to/file ${rbase_2}/another/file ${rbase_2}/another/file 99 100t-redirect-9: 101 ${redirect} ${rbase1}/path/to/file ${rbase_2}/ ${rbase_2}/ 102 103t-redirect-10: 104 ${redirect} ${rbase1}/p/x?a#b?c#d another/file ${rbase1}/p/another/file 105 106t-redirect-11: 107 ${redirect} ${rbase1}/p/x#b?c#d another/file ${rbase1}/p/another/file 108 109t-redirect-12: 110 ${redirect} ${rbase1}/p/x/#b?c#d another/file ${rbase1}/p/x/another/file 111 112t-redirect-13: 113 ${redirect} ${rbase1}/p/x?aa#bb another/file?x#yz ${rbase1}/p/another/file?x 114 115t-redirect-14: 116 ${redirect} ${rbase1}/p/x/?aa#bb another/file?x#yz ${rbase1}/p/x/another/file?x 117 118t-redirect-15: 119 ${redirect} ${rbase1}/p/x#y?z/k#l?m file?a#b?c#d ${rbase1}/p/file?a 120 121REDIRECT_TARGETS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 122 123 124.include <bsd.regress.mk> 125