From a8ce422a93903af0224b0a222da98b7c77d3185f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 14 Oct 2024 12:00:50 +0200 Subject: [PATCH] CI: Explicitly lists flags to be checked for -O3/-O0 Not listing the flags skips the ones without -O. This way, we no longer assert -O3/-O2 is the only -O flag, but we also assert it is actually set. --- tests/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tests.yml b/tests/tests.yml index fb2659f..8a4ba6b 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -36,16 +36,16 @@ run: "VERSION={{ pybasever }} PYTHON=python{{ pybasever }}d X='-i test_check_probes' ./parallel.sh" - optimizedflags: dir: python/flags - run: "python{{ pybasever }} ./assertflags.py -O3" + run: "python{{ pybasever }} ./assertflags.py -O3 CFLAGS PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS PY_CORE_CFLAGS PY_CFLAGS_NODIST PY_STDMODULE_CFLAGS" - debugflags: dir: python/flags - run: "python{{ pybasever }}d ./assertflags.py -O0" + run: "python{{ pybasever }}d ./assertflags.py -O0 CFLAGS PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS PY_CORE_CFLAGS PY_CFLAGS_NODIST PY_STDMODULE_CFLAGS" - freethreadingflags: dir: python/flags - run: "python{{ pybasever }}t ./assertflags.py -O3" + run: "python{{ pybasever }}t ./assertflags.py -O3 CFLAGS PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS PY_CORE_CFLAGS PY_CFLAGS_NODIST PY_STDMODULE_CFLAGS" - freethreadingdebugflags: dir: python/flags - run: "python{{ pybasever }}td ./assertflags.py -O0" + run: "python{{ pybasever }}td ./assertflags.py -O0 CFLAGS PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS PY_CORE_CFLAGS PY_CFLAGS_NODIST PY_STDMODULE_CFLAGS" - marshalparser: dir: python/marshalparser run: "VERSION={{ pybasever }} SAMPLE=10 test_marshalparser_compatibility.sh"