Skip to content

Commit ca94a39

Browse files
committed
fix features test
1 parent 2c2159f commit ca94a39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/test_features.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ echo "✓ Multiple features work"
4343
# Test 4: Feature-specific executable (debug_demo only available with debug feature)
4444
echo "Test 4: Feature-specific executable"
4545
rm -rf build
46-
"$fpm" run --feature debug --target debug_demo | tee output.txt
46+
"$fpm" run --features debug --target debug_demo | tee output.txt
4747
grep -q "Debug Demo Program" output.txt
4848
grep -q "Debug mode: ON" output.txt
4949
echo "✓ Feature-specific executable works"
@@ -71,15 +71,15 @@ echo "✓ Baseline (no features) works"
7171
# Test 7: Build listing with features
7272
echo "Test 7: Build listing with features"
7373
rm -rf build
74-
"$fpm" build --feature debug --list | tee build_list.txt
74+
"$fpm" build --features debug --list | tee build_list.txt
7575
grep -q "debug_demo" build_list.txt
7676
grep -q "features_demo" build_list.txt
7777
echo "✓ Build listing with features works"
7878

7979
# Test 8: Error handling - invalid feature
8080
echo "Test 8: Error handling for invalid feature"
8181
rm -rf build
82-
if "$fpm" run --feature nonexistent --target features_demo 2>&1 | grep -q "undefined feature"; then
82+
if "$fpm" run --features nonexistent --target features_demo 2>&1 | grep -q "undefined feature"; then
8383
echo "✓ Correctly rejected invalid feature"
8484
else
8585
echo "ERROR: Should reject invalid feature" && exit 1
@@ -97,7 +97,7 @@ fi
9797
# Test 10: Features and profile mutual exclusion
9898
echo "Test 10: Features and profile mutual exclusion"
9999
rm -rf build
100-
if "$fpm" run --feature debug --profile development --target features_demo 2>&1 | grep -q "cannot specify both"; then
100+
if "$fpm" run --features debug --profile development --target features_demo 2>&1 | grep -q "cannot specify both"; then
101101
echo "✓ Correctly rejected features + profile combination"
102102
else
103103
echo "ERROR: Should reject features + profile combination" && exit 1
@@ -157,4 +157,4 @@ echo "✓ Debug dependency profile works"
157157
rm -rf build output.txt
158158
popd
159159

160-
echo "All FPM features tests passed!"
160+
echo "All FPM features tests passed!"

0 commit comments

Comments
 (0)