@@ -3,7 +3,7 @@ m4_define([AT_PACKAGE_STRING], [qr])
33
44AT_INIT
55AT_COLOR_TESTS
6- AT_BANNER([QR-Code  tests])
6+ AT_BANNER([Integration  tests for qr ])
77
88## 1
99AT_SETUP([generates proper QR Code])
@@ -15,62 +15,62 @@ AT_CLEANUP
1515## 2
1616AT_SETUP([generates proper QR Code using inverted colors])
1717AT_CHECK_UNQUOTED([
18-   convert -background white -fill black -font "${ FONT} " -pointsize 9 -interline-spacing -1 label:"$(./../../qr -i "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
18+   convert -background white -fill black -font "$FONT" -pointsize 9 -interline-spacing -1 label:"$(./../../qr -i "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
1919], [0], [], [])
2020AT_CLEANUP
2121
2222## 3
2323AT_SETUP([generates proper QR Code using compact blocks])
2424AT_CHECK_UNQUOTED([
25-   convert -background black -fill white -font "${ FONT} " -pointsize 9 -interline-spacing -1 label:"$(./../../qr -c "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
25+   convert -background black -fill white -font "$FONT" -pointsize 9 -interline-spacing -1 label:"$(./../../qr -c "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
2626], [0], [], [])
2727AT_CLEANUP
2828
2929## 4
3030AT_SETUP([generates proper QR Code using compact blocks and inverted colors])
3131AT_CHECK_UNQUOTED([
32-   convert -background white -fill black -font "${ FONT} " -pointsize 9 -interline-spacing -1 label:"$(./../../qr -ci "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
32+   convert -background white -fill black -font "$FONT" -pointsize 9 -interline-spacing -1 label:"$(./../../qr -ci "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
3333], [0], [], [])
3434AT_CLEANUP
3535
3636## 5
3737AT_SETUP([generates proper QR Code using large blocks])
3838AT_CHECK_UNQUOTED([
39-   convert -background black -fill white -font "${ FONT} " -pointsize 4 -interline-spacing -1 label:"$(./../../qr -l "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
39+   convert -background black -fill white -font "$FONT" -pointsize 4 -interline-spacing -1 label:"$(./../../qr -l "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
4040], [0], [], [])
4141AT_CLEANUP
4242
4343## 6
4444AT_SETUP([generates proper QR Code using large blocks and inverted colors])
4545AT_CHECK_UNQUOTED([
46-   convert -background white -fill black -font "${ FONT} " -pointsize 4 -interline-spacing -1 label:"$(./../../qr -li "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
46+   convert -background white -fill black -font "$FONT" -pointsize 4 -interline-spacing -1 label:"$(./../../qr -li "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
4747], [0], [], [])
4848AT_CLEANUP
4949
5050## 7
5151AT_SETUP([generates proper QR Code using large compact blocks])
5252AT_CHECK_UNQUOTED([
53-   convert -background black -fill white -font "${ FONT} " -pointsize 4 -interline-spacing -1 label:"$(./../../qr -lc "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
53+   convert -background black -fill white -font "$FONT" -pointsize 4 -interline-spacing -1 label:"$(./../../qr -lc "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
5454], [0], [], [])
5555AT_CLEANUP
5656
5757## 8
5858AT_SETUP([generates proper QR Code using large compact blocks and inverted colors])
5959AT_CHECK_UNQUOTED([
60-   convert -background white -fill black -font "${ FONT} " -pointsize 9 -interline-spacing -1 label:"$(./../../qr -lci "${ INPUT} ")" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
60+   convert -background white -fill black -font "$FONT" -pointsize 9 -interline-spacing -1 label:"$(./../../qr -lci "$INPUT")" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
6161], [0], [], [])
6262AT_CLEANUP
6363
6464## 9
6565AT_SETUP([generates proper QR Code with default settings using stdin])
6666AT_CHECK_UNQUOTED([
67-   convert -background black -fill white -font "${ FONT} " -pointsize 9 -interline-spacing -1 label:"$(echo "${ INPUT} " | ./../../qr)" png:- | zbarimg -q png:- | grep -q "QR-Code:${ INPUT} " || exit 1
67+   convert -background black -fill white -font "$FONT" -pointsize 9 -interline-spacing -1 label:"$(echo "$INPUT" | ./../../qr)" png:- | zbarimg -q png:- | grep -q "QR-Code:$INPUT" || exit 1
6868], [0], [], [])
6969AT_CLEANUP
7070
7171## 10
7272AT_SETUP([fails to generate an empty QR Code])
73- AT_CHECK_UNQUOTED([./. ./../qr ""], [1], [], [\
73+ AT_CHECK_UNQUOTED([../../qr ""], [1], [], [\
7474Error: no input specified
7575
7676Usage: qr [[OPTIONS]] [[STRING]]
@@ -120,7 +120,7 @@ AT_CLEANUP
120120
121121## 12
122122AT_SETUP([prints help information when help flag is set])
123- AT_CHECK_UNQUOTED([./. ./../qr -h], [0], [\
123+ AT_CHECK_UNQUOTED([../../qr -h], [0], [\
124124Usage: qr [[OPTIONS]] [[STRING]]
125125  or:  cat FILE | qr [[OPTIONS]]
126126
@@ -143,13 +143,13 @@ AT_CLEANUP
143143
144144## 13
145145AT_SETUP([prints version informaton when version flag is set])
146- AT_CHECK_UNQUOTED([./. ./../qr -V], [0], [qr 2.0.0
146+ AT_CHECK_UNQUOTED([../../qr -V], [0], [qr 2.0.0
147147], [])
148148AT_CLEANUP
149149
150150## 14
151151AT_SETUP([fails if the input is too long])
152- AT_CHECK_UNQUOTED([./. ./../qr "${EXTRA_LONG_INPUT}"], [1], [], [\
152+ AT_CHECK_UNQUOTED([../../qr "${EXTRA_LONG_INPUT}"], [1], [], [\
153153Error: failed to generate QR code
154154])
155155AT_CLEANUP
0 commit comments