Skip to content

Commit 723c482

Browse files
committed
test: the island checks read the outDir of the configuration they just built
--no-accel is another configuration with its own output directory, so the output directory is read after each build.
1 parent 077375c commit 723c482

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ jobs:
523523
"$MCPP" run --no-accel | tee cpurun.log
524524
grep -q '^out\[0\]=6 out\[1\]=12 out\[2\]=18 out\[3\]=24' cpurun.log
525525
grep -q '^all ok' cpurun.log
526+
# The CPU leg is another configuration, with its own output directory.
527+
d=$(sh "$GITHUB_WORKSPACE/tests/out-dir.sh")/island
526528
diff /tmp/device-leg.cppm "$d/island_interface.kernels.cppm" || {
527529
echo "FAIL: the qualified names differ between the two legs"; exit 1; }
528530
echo "ok: the CPU leg reaches the same qualified names"
@@ -562,8 +564,8 @@ jobs:
562564
- name: a new island file reaches the boundary with nothing else touched
563565
working-directory: tests/island-interface
564566
run: |
565-
d=$(sh "$GITHUB_WORKSPACE/tests/out-dir.sh")/island
566567
rm -rf target && "$MCPP" build > base.log 2>&1
568+
d=$(sh "$GITHUB_WORKSPACE/tests/out-dir.sh")/island
567569
before=$(grep -c '^using ::' "$d/island_interface.kernels.cppm")
568570
mkdir -p src/kernels/audio
569571
printf 'MCPP_EXPORT_C\nint island_fft(float* out, unsigned n) { (void)out; (void)n; return 0; }\n' \

0 commit comments

Comments
 (0)