@@ -43,7 +43,7 @@ echo "✓ Multiple features work"
43
43
# Test 4: Feature-specific executable (debug_demo only available with debug feature)
44
44
echo " Test 4: Feature-specific executable"
45
45
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
47
47
grep -q " Debug Demo Program" output.txt
48
48
grep -q " Debug mode: ON" output.txt
49
49
echo " ✓ Feature-specific executable works"
@@ -71,15 +71,15 @@ echo "✓ Baseline (no features) works"
71
71
# Test 7: Build listing with features
72
72
echo " Test 7: Build listing with features"
73
73
rm -rf build
74
- " $fpm " build --feature debug --list | tee build_list.txt
74
+ " $fpm " build --features debug --list | tee build_list.txt
75
75
grep -q " debug_demo" build_list.txt
76
76
grep -q " features_demo" build_list.txt
77
77
echo " ✓ Build listing with features works"
78
78
79
79
# Test 8: Error handling - invalid feature
80
80
echo " Test 8: Error handling for invalid feature"
81
81
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
83
83
echo " ✓ Correctly rejected invalid feature"
84
84
else
85
85
echo " ERROR: Should reject invalid feature" && exit 1
97
97
# Test 10: Features and profile mutual exclusion
98
98
echo " Test 10: Features and profile mutual exclusion"
99
99
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
101
101
echo " ✓ Correctly rejected features + profile combination"
102
102
else
103
103
echo " ERROR: Should reject features + profile combination" && exit 1
@@ -157,4 +157,4 @@ echo "✓ Debug dependency profile works"
157
157
rm -rf build output.txt
158
158
popd
159
159
160
- echo " All FPM features tests passed!"
160
+ echo " All FPM features tests passed!"
0 commit comments