diff options
| author | kx <kx@radix-linux.su> | 2026-10-01 12:02:28 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-01 12:02:28 +0300 |
| commit | ba1b04d64bdfaf377915b22f77520216ebe47674 (patch) | |
| tree | 044343035c28b2b04ca9725f26e9b7c39342d19c /tests/t0004-config.sh | |
| parent | 124b140798456778e2a96851cc7268aa9a726698 (diff) | |
| download | mcpu-cpp-1.0.2.tar.xz | |
Version 1.0.21.0.2
Diffstat (limited to 'tests/t0004-config.sh')
| -rwxr-xr-x | tests/t0004-config.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/t0004-config.sh b/tests/t0004-config.sh new file mode 100755 index 0000000..d025d99 --- /dev/null +++ b/tests/t0004-config.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu +out="${TMPDIR-/tmp}/mcpu-cpp-config-$$.out" +conf="${TMPDIR-/tmp}/mcpu-cpp-config-$$.conf" +trap 'rm -f "$out" "$conf"' EXIT HUP INT TERM +cat > "$conf" <<EOT +MCPU_CPP_INCLUDE_PATH = $srcdir/data/include; +MCPU_CPP_SYSTEM_INCLUDE_PATH = $srcdir/data/system; +EOT +"$MCPU_CPP" --config-file "$conf" "$srcdir/data/config-main.c" -o "$out" +grep 'from_one' "$out" >/dev/null +grep 'from_system' "$out" >/dev/null |
