From 7ade3e74b3ee98ae57b8bc0468e6ce912a56e94d Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Mon, 11 Aug 2025 08:11:32 -0400 Subject: [PATCH] Avoid the need to repeat `-Weverything` in test .flags --- test/asm/command-line-symbols.flags | 2 +- test/asm/error-limit.flags | 2 +- test/asm/errors-after-missing-include.flags | 2 +- test/asm/include-slash.flags | 2 +- test/asm/invalid-param.flags | 2 +- test/asm/max-errors.flags | 2 +- test/asm/opt-b.flags | 2 +- test/asm/opt-g.flags | 2 +- test/asm/preinclude.flags | 2 +- test/asm/test.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/asm/command-line-symbols.flags b/test/asm/command-line-symbols.flags index 4fcbb175..f5f94af9 100644 --- a/test/asm/command-line-symbols.flags +++ b/test/asm/command-line-symbols.flags @@ -1 +1 @@ --Weverything -DFOO=hello -DDEFINED +-DFOO=hello -DDEFINED diff --git a/test/asm/error-limit.flags b/test/asm/error-limit.flags index c8401c0e..77b4607c 100644 --- a/test/asm/error-limit.flags +++ b/test/asm/error-limit.flags @@ -1 +1 @@ --Weverything -X 1 +-X 1 diff --git a/test/asm/errors-after-missing-include.flags b/test/asm/errors-after-missing-include.flags index 171d03a2..1fb54a3b 100644 --- a/test/asm/errors-after-missing-include.flags +++ b/test/asm/errors-after-missing-include.flags @@ -1 +1 @@ --Weverything -M /dev/null -MG +-M /dev/null -MG diff --git a/test/asm/include-slash.flags b/test/asm/include-slash.flags index abfee7da..d8ef3f84 100644 --- a/test/asm/include-slash.flags +++ b/test/asm/include-slash.flags @@ -1 +1 @@ --Weverything -P include-slash.inc -I include -P include-slash-nonexist.inc +-P include-slash.inc -I include -P include-slash-nonexist.inc diff --git a/test/asm/invalid-param.flags b/test/asm/invalid-param.flags index 5e6a4d2e..c65f09ab 100644 --- a/test/asm/invalid-param.flags +++ b/test/asm/invalid-param.flags @@ -1 +1 @@ --Weverything -Wtruncation=99 +-Wtruncation=99 diff --git a/test/asm/max-errors.flags b/test/asm/max-errors.flags index c8401c0e..77b4607c 100644 --- a/test/asm/max-errors.flags +++ b/test/asm/max-errors.flags @@ -1 +1 @@ --Weverything -X 1 +-X 1 diff --git a/test/asm/opt-b.flags b/test/asm/opt-b.flags index 0e6951e7..b4687267 100644 --- a/test/asm/opt-b.flags +++ b/test/asm/opt-b.flags @@ -1 +1 @@ --Weverything -b oO +-b oO diff --git a/test/asm/opt-g.flags b/test/asm/opt-g.flags index 2135a091..e8ff7c58 100644 --- a/test/asm/opt-g.flags +++ b/test/asm/opt-g.flags @@ -1 +1 @@ --Weverything -g pqrs +-g pqrs diff --git a/test/asm/preinclude.flags b/test/asm/preinclude.flags index e58876d2..ed22dd8a 100644 --- a/test/asm/preinclude.flags +++ b/test/asm/preinclude.flags @@ -1 +1 @@ --Weverything -P preinclude-1.inc -P preinclude-2.inc +-P preinclude-1.inc -P preinclude-2.inc diff --git a/test/asm/test.sh b/test/asm/test.sh index e0a01d24..9f4df670 100755 --- a/test/asm/test.sh +++ b/test/asm/test.sh @@ -64,7 +64,7 @@ for i in *.asm notexist.asm; do flags=${i%.asm}.flags RGBASMFLAGS=-Weverything if [ -f "$flags" ]; then - RGBASMFLAGS="$(head -n 1 "$flags")" # Allow other lines to serve as comments + RGBASMFLAGS="$RGBASMFLAGS $(head -n 1 "$flags")" # Allow other lines to serve as comments fi for variant in '' ' piped'; do (( tests++ ))