Skip to content

Commit ff89069

Browse files
committed
more CI output
1 parent 670c67f commit ff89069

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

ci/test_features.sh

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,13 @@ pushd "features_per_compiler"
169169
# Test 15: Development profile (debug + verbose)
170170
echo "Test 15: Features per compiler - development profile"
171171
rm -rf build
172-
if "$fpm" run --profile development > output.txt; then
172+
if "$fpm" run --profile development > output.txt 2>&1; then
173173
echo "✓ Exit code 0 (success) as expected"
174174
else
175175
echo "ERROR: Expected exit code 0 but got non-zero exit code"
176+
echo "=== Program output ==="
177+
cat output.txt
178+
echo "======================"
176179
exit 1
177180
fi
178181
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }
@@ -189,10 +192,13 @@ echo "✓ Development profile works"
189192
# Test 16: Production profile (release + fast)
190193
echo "Test 16: Features per compiler - production profile"
191194
rm -rf build
192-
if "$fpm" run --profile production > output.txt; then
195+
if "$fpm" run --profile production > output.txt 2>&1; then
193196
echo "✓ Exit code 0 (success) as expected"
194197
else
195198
echo "ERROR: Expected exit code 0 but got non-zero exit code"
199+
echo "=== Program output ==="
200+
cat output.txt
201+
echo "======================"
196202
exit 1
197203
fi
198204
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }
@@ -213,10 +219,13 @@ echo "✓ Production profile works"
213219
# Test 17: Testing profile (debug + strict)
214220
echo "Test 17: Features per compiler - testing profile"
215221
rm -rf build
216-
if "$fpm" run --profile testing > output.txt; then
222+
if "$fpm" run --profile testing > output.txt 2>&1; then
217223
echo "✓ Exit code 0 (success) as expected"
218224
else
219225
echo "ERROR: Expected exit code 0 but got non-zero exit code"
226+
echo "=== Program output ==="
227+
cat output.txt
228+
echo "======================"
220229
exit 1
221230
fi
222231
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }
@@ -232,10 +241,13 @@ echo "✓ Testing profile works"
232241
# Test 18: Individual features - debug only
233242
echo "Test 18: Features per compiler - debug feature only"
234243
rm -rf build
235-
if "$fpm" run --features debug > output.txt; then
244+
if "$fpm" run --features debug > output.txt 2>&1; then
236245
echo "✓ Exit code 0 (success) as expected"
237246
else
238247
echo "ERROR: Expected exit code 0 but got non-zero exit code"
248+
echo "=== Program output ==="
249+
cat output.txt
250+
echo "======================"
239251
exit 1
240252
fi
241253
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }
@@ -251,10 +263,13 @@ echo "✓ Debug feature works"
251263
# Test 19: Individual features - release only
252264
echo "Test 19: Features per compiler - release feature only"
253265
rm -rf build
254-
if "$fpm" run --features release > output.txt; then
266+
if "$fpm" run --features release > output.txt 2>&1; then
255267
echo "✓ Exit code 0 (success) as expected"
256268
else
257269
echo "ERROR: Expected exit code 0 but got non-zero exit code"
270+
echo "=== Program output ==="
271+
cat output.txt
272+
echo "======================"
258273
exit 1
259274
fi
260275
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }
@@ -270,10 +285,13 @@ echo "✓ Release feature works"
270285
# Test 20: No profile/features - baseline
271286
echo "Test 20: Features per compiler - baseline (no profile)"
272287
rm -rf build
273-
if "$fpm" run > output.txt; then
288+
if "$fpm" run > output.txt 2>&1; then
274289
echo "✓ Exit code 0 (success) as expected"
275290
else
276291
echo "ERROR: Expected exit code 0 but got non-zero exit code"
292+
echo "=== Program output ==="
293+
cat output.txt
294+
echo "======================"
277295
exit 1
278296
fi
279297
grep -q "Features Per Compiler Demo" output.txt || { echo "ERROR: Features Per Compiler Demo not found"; exit 1; }

0 commit comments

Comments
 (0)