File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,15 +69,17 @@ cd app
6969
7070# 1. backend= sugar selects widget's backend-a feature.
7171" $MCPP " build > b1.log 2>&1 || { cat b1.log; echo " build failed" ; exit 1; }
72- bin=$( find target -name app -type f | head -1)
72+ bin=$( find target \( -name app -o -name app.exe \) -type f | head -1)
73+ [[ -n " $bin " ]] || { echo " no app binary" ; exit 1; }
7374out=$( " $bin " | tail -2)
7475grep -q " backend=1" <<< " $out" || { echo " backend=a not activated: $out " ; exit 1; }
7576grep -q " base" <<< " $out" || true # default features active
7677
7778# 2. --features extra activates a declared feature.
7879rm -rf target
7980" $MCPP " build --features extra > b2.log 2>&1 || { cat b2.log; echo " features build failed" ; exit 1; }
80- bin=$( find target -name app -type f | head -1)
81+ bin=$( find target \( -name app -o -name app.exe \) -type f | head -1)
82+ [[ -n " $bin " ]] || { echo " no app binary" ; exit 1; }
8183" $bin " | grep -q " extra" || { echo " --features extra not active" ; exit 1; }
8284
8385# 3. Unknown feature → warning by default, error under --strict.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ rm -rf target
3333grep -q -- " -O3" dist.log || { echo " dist missing -O3" ; exit 1; }
3434grep -q -- " -fno-plt" dist.log || { echo " dist missing passthrough -fno-plt" ; exit 1; }
3535
36- binary=$( find target -name profapp -type f | head -1)
36+ binary=$( find target \( -name profapp -o -name profapp.exe \) -type f | head -1)
3737[[ -n " $binary " ]] || { echo " no binary" ; exit 1; }
3838" $binary " > /dev/null || { echo " dist binary does not run" ; exit 1; }
3939
You can’t perform that action at this time.
0 commit comments