summaryrefslogtreecommitdiff
path: root/graphics/zbar/patches/patch-test_test__examples.sh.in
blob: a0a198771a7acf7f8bb571e1c3d1e3c2a49069c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
$NetBSD: patch-test_test__examples.sh.in,v 1.2 2020/06/20 10:42:42 leot Exp $

Use standard `=' test(1) operator.

--- test/test_examples.sh.in.orig	2020-03-13 09:49:04.000000000 +0000
+++ test/test_examples.sh.in
@@ -31,28 +31,28 @@ test()
 	fi
 }
 
-if [ "@ENABLE_CODE128@" == "1" ]; then
+if [ "@ENABLE_CODE128@" = "1" ]; then
 	test code-128.png
 fi
 
-if [ "@ENABLE_CODE93@" == "1" ]; then
+if [ "@ENABLE_CODE93@" = "1" ]; then
         test code-93.png
 fi
 
-if [ "@ENABLE_CODE39@" == "1" ]; then
+if [ "@ENABLE_CODE39@" = "1" ]; then
         test code-39.png
 fi
 
-if [ "@ENABLE_CODABAR@" == "1" ]; then
+if [ "@ENABLE_CODABAR@" = "1" ]; then
         test codabar.png
 fi
 
-if [ "@ENABLE_DATABAR@" == "1" ]; then
+if [ "@ENABLE_DATABAR@" = "1" ]; then
         test databar.png
         test databar-exp.png
 fi
 
-if [ "@ENABLE_EAN@" == "1" ]; then
+if [ "@ENABLE_EAN@" = "1" ]; then
         test -Sean2.enable ean-2.png
         test -Sean5.enable ean-5.png
         test ean-8.png
@@ -62,28 +62,28 @@ if [ "@ENABLE_EAN@" == "1" ]; then
         test -Supca.enable code-upc-a.png
 fi
 
-if [ "@ENABLE_I25@" == "1" ]; then
+if [ "@ENABLE_I25@" = "1" ]; then
         test i2-5.png
 fi
 
-if [ "@ENABLE_QRCODE@" == "1" ]; then
+if [ "@ENABLE_QRCODE@" = "1" ]; then
         test qr-code.png
         test -Stest-inverted qr-code-inverted.png
         test '--raw --oneshot -Sbinary' qr-code-binary.png
 fi
 
-if [ "@ENABLE_SQCODE@" == "1" ]; then
+if [ "@ENABLE_SQCODE@" = "1" ]; then
         test sqcode1-generated.png
         test sqcode1-scanned.png
 fi
 
 # The pdf417 code is incomplete: it doesn't output any results
 #
-#if [ "@ENABLE_PDF417@" == "1" ]; then
+#if [ "@ENABLE_PDF417@" = "1" ]; then
 #        test code-pdf417.png
 #fi
 
-if [ "$ERR" == "" ]; then
+if [ "$ERR" = "" ]; then
 	echo "zbarimg PASSED."
 else
 	exit 1