[llvm] [orc-rt] Move the regression tests into test/regression (PR #208391)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 00:56:38 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/208391
Move the regression lit config and the existing tests into test/regression/, and point the check-orc-rt suite there.
This is a first step towards consolidating tests and test infrastructure under orc-rt/test. Upcoming commits will add a test tools directory, and move the existing unit tests (under orc-rt/unittests) into orc-rt/test/unit.
>From 8dd601d2ce51a7ddff73676f0b092450aca838fb Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Thu, 9 Jul 2026 17:25:31 +1000
Subject: [PATCH] [orc-rt] Move the regression tests into test/regression
Move the regression lit config and the existing tests into
test/regression/, and point the check-orc-rt suite there.
This is a first step towards consolidating tests and test infrastructure
under orc-rt/test. Upcoming commits will add a test tools directory, and
move the existing unit tests (under orc-rt/unittests) into
orc-rt/test/unit.
---
orc-rt/test/CMakeLists.txt | 8 ++++----
orc-rt/test/{ => regression}/init.test | 0
orc-rt/test/{ => regression}/lit.cfg.py | 2 +-
orc-rt/test/{ => regression}/lit.site.cfg.py.in | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
rename orc-rt/test/{ => regression}/init.test (100%)
rename orc-rt/test/{ => regression}/lit.cfg.py (96%)
rename orc-rt/test/{ => regression}/lit.site.cfg.py.in (83%)
diff --git a/orc-rt/test/CMakeLists.txt b/orc-rt/test/CMakeLists.txt
index 211009f5c1dd5..12cac0c4dc3a3 100644
--- a/orc-rt/test/CMakeLists.txt
+++ b/orc-rt/test/CMakeLists.txt
@@ -2,10 +2,10 @@ include(OrcRTTesting)
if (ORC_RT_LLVM_TOOLS_AVAILABLE)
configure_lit_site_cfg(
- ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
- ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
+ ${CMAKE_CURRENT_SOURCE_DIR}/regression/lit.site.cfg.py.in
+ ${CMAKE_CURRENT_BINARY_DIR}/regression/lit.site.cfg.py
MAIN_CONFIG
- ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
+ ${CMAKE_CURRENT_SOURCE_DIR}/regression/lit.cfg.py
)
list(APPEND ORC_RT_TEST_DEPS
@@ -16,7 +16,7 @@ if (ORC_RT_LLVM_TOOLS_AVAILABLE)
set_target_properties(orc-rt-test-depends PROPERTIES FOLDER "orc-rt/tests")
add_lit_testsuite(check-orc-rt "Running the ORC-RT regression tests"
- ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/regression
DEPENDS ${ORC_RT_TEST_DEPS}
)
else()
diff --git a/orc-rt/test/init.test b/orc-rt/test/regression/init.test
similarity index 100%
rename from orc-rt/test/init.test
rename to orc-rt/test/regression/init.test
diff --git a/orc-rt/test/lit.cfg.py b/orc-rt/test/regression/lit.cfg.py
similarity index 96%
rename from orc-rt/test/lit.cfg.py
rename to orc-rt/test/regression/lit.cfg.py
index 759d96e613978..002d1cb99371d 100644
--- a/orc-rt/test/lit.cfg.py
+++ b/orc-rt/test/regression/lit.cfg.py
@@ -11,7 +11,7 @@
config.name = "ORC-RT"
config.test_format = lit.formats.ShTest()
config.test_source_root = os.path.dirname(__file__)
-config.test_exec_root = os.path.join(config.orc_rt_obj_root, "test")
+config.test_exec_root = os.path.join(config.orc_rt_obj_root, "test", "regression")
config.suffixes = [
".test"
]
diff --git a/orc-rt/test/lit.site.cfg.py.in b/orc-rt/test/regression/lit.site.cfg.py.in
similarity index 83%
rename from orc-rt/test/lit.site.cfg.py.in
rename to orc-rt/test/regression/lit.site.cfg.py.in
index 2c6ce81821d35..219b7c80b243a 100644
--- a/orc-rt/test/lit.site.cfg.py.in
+++ b/orc-rt/test/regression/lit.site.cfg.py.in
@@ -13,4 +13,4 @@ config.llvm_tools_dir = "@ORC_RT_LLVM_TOOLS_DIR@"
import lit.llvm
lit.llvm.initialize(lit_config, config)
# Let the main config do the real work.
-lit_config.load_config(config, "@ORC_RT_SOURCE_DIR@/test/lit.cfg.py")
+lit_config.load_config(config, "@ORC_RT_SOURCE_DIR@/test/regression/lit.cfg.py")
More information about the llvm-commits
mailing list