Skip to content

Commit dd85b4e

Browse files
committed
test: e2e 67/68 find .exe binaries (windows portability)
1 parent c3de054 commit dd85b4e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/e2e/67_features_strict.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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; }
7374
out=$("$bin" | tail -2)
7475
grep -q "backend=1" <<< "$out" || { echo "backend=a not activated: $out"; exit 1; }
7576
grep -q "base" <<< "$out" || true # default features active
7677

7778
# 2. --features extra activates a declared feature.
7879
rm -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.

tests/e2e/68_profile_passthrough.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rm -rf target
3333
grep -q -- "-O3" dist.log || { echo "dist missing -O3"; exit 1; }
3434
grep -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

0 commit comments

Comments
 (0)