|
3 | 3 | set -x |
4 | 4 | set -u |
5 | 5 |
|
| 6 | +# define VALGRIND exit code when VALGRIND detects memory errors |
| 7 | +VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE=3 |
| 8 | + |
6 | 9 | # get initial path before changing it |
7 | 10 | SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" |
8 | 11 |
|
9 | 12 | cd ./unittest/IlmCtl/ |
10 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlTest |
| 13 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlTest |
11 | 14 | test_01_status=$? |
12 | 15 | test_01_label="IlmCtlTest" |
13 | 16 |
|
14 | 17 | cd ../IlmCtlMath/ |
15 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlMathTest |
| 18 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmCtlMathTest |
16 | 19 | test_02_status=$? |
17 | 20 | test_02_label="IlmCtlMathTest" |
18 | 21 |
|
19 | 22 | cd ../IlmImfCtl/ |
20 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmImfCtlTest |
| 23 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ./IlmImfCtlTest |
21 | 24 | test_03_status=$? |
22 | 25 | test_03_label="IlmImfCtlTest" |
23 | 26 |
|
24 | 27 | cd ../ctlrender |
25 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.dpx |
| 28 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.dpx |
26 | 29 | test_04_status=$? |
27 | 30 | test_04_label="ctlrender-dpx-to-dpx" |
28 | 31 |
|
29 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.tif |
| 32 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_nuke_10_be.dpx out.tif |
30 | 33 | test_05_status=$? |
31 | 34 | test_05_label="ctlrender-dpx-to-tif" |
32 | 35 |
|
33 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.tif |
| 36 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.tif |
34 | 37 | test_06_status=$? |
35 | 38 | test_06_label="ctlrender-tif-to-tif" |
36 | 39 |
|
37 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.dpx |
| 40 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop_16_le_interleaved.tif out.dpx |
38 | 41 | test_07_status=$? |
39 | 42 | test_07_label="ctlrender-tif-to-dpx" |
40 | 43 |
|
41 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
| 44 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
42 | 45 | test_08_status=$? |
43 | 46 | test_08_label="ctlrender-exr-to-exr" |
44 | 47 |
|
45 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
| 48 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
46 | 49 | test_09_status=$? |
47 | 50 | test_09_label="ctlrender-exr-to-exr16" |
48 | 51 |
|
49 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
| 52 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/bars_photoshop.exr out.exr |
50 | 53 | test_10_status=$? |
51 | 54 | test_10_label="ctlrender-exr-to-exr32" |
52 | 55 |
|
53 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr |
| 56 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr |
54 | 57 | test_11_status=$? |
55 | 58 | test_11_label="ctlrender-rgb-exr16-to-exr16" |
56 | 59 |
|
57 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr |
| 60 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr16.exr out.exr |
58 | 61 | test_12_status=$? |
59 | 62 | test_12_label="ctlrender-rgb-exr16-to-exr32" |
60 | 63 |
|
61 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr |
| 64 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr |
62 | 65 | test_13_status=$? |
63 | 66 | test_13_label="ctlrender-rgb-exr32-to-exr16" |
64 | 67 |
|
65 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr |
| 68 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity.ctl ../../../unittest/ctlrender/colorbars_nuke_rgb_exr32.exr out.exr |
66 | 69 | test_14_status=$? |
67 | 70 | test_14_label="ctlrender-rgb-exr32-to-exr32" |
68 | 71 |
|
69 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr |
| 72 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr |
70 | 73 | test_15_status=$? |
71 | 74 | test_15_label="ctlrender-rgba-exr16-to-exr16" |
72 | 75 |
|
73 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr |
| 76 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr16.exr out.exr |
74 | 77 | test_16_status=$? |
75 | 78 | test_16_label="ctlrender-rgba-exr16-to-exr32" |
76 | 79 |
|
77 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr |
| 80 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr16 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr |
78 | 81 | test_17_status=$? |
79 | 82 | test_17_label="ctlrender-rgba-exr32-to-exr16" |
80 | 83 |
|
81 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr |
| 84 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../ctlrender/ctlrender -force -format exr32 -ctl ../../../unittest/ctlrender/unity_with_alpha.ctl ../../../unittest/ctlrender/colorbars_nuke_rgba_exr32.exr out.exr |
82 | 85 | test_18_status=$? |
83 | 86 | test_18_label="ctlrender-rgba-exr32-to-exr32" |
84 | 87 |
|
85 | 88 | cd ../exrdpx |
86 | 89 | cp ../../OpenEXR_CTL/exrdpx/*.ctl . |
87 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.dpx ./output/marci-512.dpx.exr |
| 90 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.dpx ./output/marci-512.dpx.exr |
88 | 91 | test_19_status=$? |
89 | 92 | test_19_label="exrdpx-dpx-to-exr" |
90 | 93 |
|
91 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.exr ./output/marci-512.exr.dpx |
| 94 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exrdpx/exrdpx ../../../unittest/exrdpx/marci-512.exr ./output/marci-512.exr.dpx |
92 | 95 | test_20_status=$? |
93 | 96 | test_20_label="exrdpx-exr-to-dpx" |
94 | 97 |
|
95 | 98 | cd ../exr_ctl_exr |
96 | 99 | cp ../../OpenEXR_CTL/exr_ctl_exr/*.ctl . |
97 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-no-args.exr |
| 100 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-no-args.exr |
98 | 101 | test_21_status=$? |
99 | 102 | test_21_label="exr_ctl_exr" |
100 | 103 |
|
101 | | -valgrind -s --error-exitcode=1 --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation -float sScale 1.2 ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-sScale-1.2.exr |
| 104 | +valgrind -s --error-exitcode=$VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE --leak-check=full --track-origins=yes --show-leak-kinds=all ../../OpenEXR_CTL/exr_ctl_exr/exr_ctl_exr -C change_saturation -float sScale 1.2 ../../../unittest/exr_ctl_exr/marci-512.exr ./output/exr_ctl_exr-sScale-1.2.exr |
102 | 105 | test_22_status=$? |
103 | 106 | test_22_label="exr_ctl_exr-float" |
104 | 107 |
|
105 | 108 | # go back to initial path |
106 | 109 | cd $SCRIPTPATH |
107 | 110 |
|
108 | 111 | # return valgrind exit codes |
109 | | -if [ $test_01_status -eq 0 ] && [ $test_02_status -eq 0 ] && [ $test_03_status -eq 0 ] && [ $test_04_status -eq 0 ] && [ $test_05_status -eq 0 ] && [ $test_06_status -eq 0 ] && [ $test_07_status -eq 0 ] && [ $test_08_status -eq 0 ] && [ $test_09_status -eq 0 ] && [ $test_10_status -eq 0 ] && [ $test_11_status -eq 0 ] && [ $test_12_status -eq 0 ] && [ $test_13_status -eq 0 ] && [ $test_14_status -eq 0 ] && [ $test_15_status -eq 0 ] && [ $test_16_status -eq 0 ] && [ $test_17_status -eq 0 ] && [ $test_18_status -eq 0 ] && [ $test_19_status -eq 0 ] && [ $test_20_status -eq 0 ] && [ $test_21_status -eq 0 ] && [ $test_22_status -eq 0 ] |
| 112 | +if [ $test_01_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_02_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_03_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_04_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_05_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_06_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_07_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_08_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_09_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_10_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_11_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_12_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_13_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_14_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_15_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_16_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_17_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_18_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_19_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_20_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_21_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] || [ $test_22_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
110 | 113 | then |
| 114 | + echo "Failure: valgrind detected errors" |
| 115 | + |
| 116 | +else |
111 | 117 | echo "Success: valgrind detected no errors" |
112 | 118 | exit 0 |
113 | | -else |
114 | | - echo "Failure: valgrind detected errors" |
| 119 | +fi |
115 | 120 |
|
116 | | - if [ $test_01_status -ne 0 ] |
117 | | - then |
118 | | - echo "$test_01_label: valgrind detected errors" |
119 | | - fi |
120 | | - |
121 | | - if [ $test_02_status -ne 0 ] |
122 | | - then |
123 | | - echo "$test_02_label: valgrind detected errors" |
124 | | - fi |
125 | | - |
126 | | - if [ $test_03_status -ne 0 ] |
127 | | - then |
128 | | - echo "$test_03_label: valgrind detected errors" |
129 | | - fi |
130 | | - |
131 | | - if [ $test_04_status -ne 0 ] |
132 | | - then |
133 | | - echo "$test_04_label: valgrind detected errors" |
134 | | - fi |
135 | | - |
136 | | - if [ $test_05_status -ne 0 ] |
137 | | - then |
138 | | - echo "$test_05_label: valgrind detected errors" |
139 | | - fi |
140 | | - |
141 | | - if [ $test_06_status -ne 0 ] |
142 | | - then |
143 | | - echo "$test_06_label: valgrind detected errors" |
144 | | - fi |
145 | | - |
146 | | - if [ $test_07_status -ne 0 ] |
147 | | - then |
148 | | - echo "$test_07_label: valgrind detected errors" |
149 | | - fi |
150 | | - |
151 | | - if [ $test_08_status -ne 0 ] |
152 | | - then |
153 | | - echo "$test_08_label: valgrind detected errors" |
154 | | - fi |
155 | | - |
156 | | - if [ $test_09_status -ne 0 ] |
157 | | - then |
158 | | - echo "$test_09_label: valgrind detected errors" |
159 | | - fi |
160 | | - |
161 | | - if [ $test_10_status -ne 0 ] |
162 | | - then |
163 | | - echo "$test_10_label: valgrind detected errors" |
164 | | - fi |
165 | | - |
166 | | - if [ $test_11_status -ne 0 ] |
167 | | - then |
168 | | - echo "$test_11_label: valgrind detected errors" |
169 | | - fi |
170 | | - |
171 | | - if [ $test_12_status -ne 0 ] |
172 | | - then |
173 | | - echo "$test_12_label: valgrind detected errors" |
174 | | - fi |
175 | | - |
176 | | - if [ $test_13_status -ne 0 ] |
177 | | - then |
178 | | - echo "$test_13_label: valgrind detected errors" |
179 | | - fi |
180 | | - |
181 | | - if [ $test_14_status -ne 0 ] |
182 | | - then |
183 | | - echo "$test_14_label: valgrind detected errors" |
184 | | - fi |
185 | | - |
186 | | - if [ $test_15_status -ne 0 ] |
187 | | - then |
188 | | - echo "$test_15_label: valgrind detected errors" |
189 | | - fi |
190 | | - |
191 | | - if [ $test_16_status -ne 0 ] |
192 | | - then |
193 | | - echo "$test_16_label: valgrind detected errors" |
194 | | - fi |
195 | | - |
196 | | - if [ $test_17_status -ne 0 ] |
197 | | - then |
198 | | - echo "$test_17_label: valgrind detected errors" |
199 | | - fi |
200 | | - |
201 | | - if [ $test_18_status -ne 0 ] |
202 | | - then |
203 | | - echo "$test_18_label: valgrind detected errors" |
204 | | - fi |
205 | | - |
206 | | - if [ $test_19_status -ne 0 ] |
207 | | - then |
208 | | - echo "$test_19_label: valgrind detected errors" |
209 | | - fi |
210 | | - |
211 | | - if [ $test_20_status -ne 0 ] |
212 | | - then |
213 | | - echo "$test_20_label: valgrind detected errors" |
214 | | - fi |
215 | | - |
216 | | - if [ $test_21_status -ne 0 ] |
217 | | - then |
218 | | - echo "$test_21_label: valgrind detected errors" |
219 | | - fi |
220 | | - |
221 | | - if [ $test_22_status -ne 0 ] |
222 | | - then |
223 | | - echo "$test_22_label: valgrind detected errors" |
224 | | - fi |
| 121 | +if [ $test_01_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 122 | +then |
| 123 | + echo "$test_01_label: valgrind detected errors" |
| 124 | +fi |
| 125 | + |
| 126 | +if [ $test_02_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 127 | +then |
| 128 | + echo "$test_02_label: valgrind detected errors" |
| 129 | +fi |
| 130 | + |
| 131 | +if [ $test_03_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 132 | +then |
| 133 | + echo "$test_03_label: valgrind detected errors" |
| 134 | +fi |
| 135 | + |
| 136 | +if [ $test_04_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 137 | +then |
| 138 | + echo "$test_04_label: valgrind detected errors" |
| 139 | +fi |
| 140 | + |
| 141 | +if [ $test_05_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 142 | +then |
| 143 | + echo "$test_05_label: valgrind detected errors" |
| 144 | +fi |
| 145 | + |
| 146 | +if [ $test_06_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 147 | +then |
| 148 | + echo "$test_06_label: valgrind detected errors" |
| 149 | +fi |
| 150 | + |
| 151 | +if [ $test_07_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 152 | +then |
| 153 | + echo "$test_07_label: valgrind detected errors" |
| 154 | +fi |
| 155 | + |
| 156 | +if [ $test_08_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 157 | +then |
| 158 | + echo "$test_08_label: valgrind detected errors" |
| 159 | +fi |
| 160 | + |
| 161 | +if [ $test_09_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 162 | +then |
| 163 | + echo "$test_09_label: valgrind detected errors" |
| 164 | +fi |
| 165 | + |
| 166 | +if [ $test_10_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 167 | +then |
| 168 | + echo "$test_10_label: valgrind detected errors" |
| 169 | +fi |
| 170 | + |
| 171 | +if [ $test_11_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 172 | +then |
| 173 | + echo "$test_11_label: valgrind detected errors" |
| 174 | +fi |
| 175 | + |
| 176 | +if [ $test_12_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 177 | +then |
| 178 | + echo "$test_12_label: valgrind detected errors" |
| 179 | +fi |
| 180 | + |
| 181 | +if [ $test_13_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 182 | +then |
| 183 | + echo "$test_13_label: valgrind detected errors" |
| 184 | +fi |
| 185 | + |
| 186 | +if [ $test_14_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 187 | +then |
| 188 | + echo "$test_14_label: valgrind detected errors" |
| 189 | +fi |
| 190 | + |
| 191 | +if [ $test_15_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 192 | +then |
| 193 | + echo "$test_15_label: valgrind detected errors" |
| 194 | +fi |
| 195 | + |
| 196 | +if [ $test_16_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 197 | +then |
| 198 | + echo "$test_16_label: valgrind detected errors" |
| 199 | +fi |
| 200 | + |
| 201 | +if [ $test_17_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 202 | +then |
| 203 | + echo "$test_17_label: valgrind detected errors" |
| 204 | +fi |
| 205 | + |
| 206 | +if [ $test_18_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 207 | +then |
| 208 | + echo "$test_18_label: valgrind detected errors" |
| 209 | +fi |
| 210 | + |
| 211 | +if [ $test_19_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 212 | +then |
| 213 | + echo "$test_19_label: valgrind detected errors" |
| 214 | +fi |
| 215 | + |
| 216 | +if [ $test_20_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 217 | +then |
| 218 | + echo "$test_20_label: valgrind detected errors" |
| 219 | +fi |
| 220 | + |
| 221 | +if [ $test_21_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 222 | +then |
| 223 | + echo "$test_21_label: valgrind detected errors" |
| 224 | +fi |
| 225 | + |
| 226 | +if [ $test_22_status -eq $VALGRIND_MEM_ERROR_DETECTION_EXIT_CODE ] |
| 227 | +then |
| 228 | + echo "$test_22_label: valgrind detected errors" |
| 229 | +fi |
225 | 230 |
|
226 | 231 | exit 1 |
227 | 232 | fi |
0 commit comments