mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
lit: Fix infinite recursion when an out-of-tree test root is located inside the source test root.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
7
utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
Normal file
7
utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
Normal file
@ -0,0 +1,7 @@
|
||||
# Verify that the site configuration was loaded.
|
||||
if config.test_source_root is None or config.test_exec_root is None:
|
||||
lit.fatal("No site specific configuration")
|
||||
|
||||
config.name = 'exec-discovery-in-tree-suite'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
@ -0,0 +1,4 @@
|
||||
import os
|
||||
config.test_exec_root = os.path.dirname(__file__)
|
||||
config.test_source_root = os.path.dirname(config.test_exec_root)
|
||||
lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
|
@ -0,0 +1 @@
|
||||
# RUN: true
|
@ -79,3 +79,18 @@
|
||||
#
|
||||
# CHECK-ASEXEC-EXACT-TEST: -- Testing: 1 tests, 1 threads --
|
||||
# CHECK-ASEXEC-EXACT-TEST: PASS: top-level-suite :: subdir/test-three
|
||||
|
||||
|
||||
# Check that we don't recurse infinitely when loading an site specific test
|
||||
# suite located inside the test source root.
|
||||
#
|
||||
# RUN: %{lit} \
|
||||
# RUN: %{inputs}/exec-discovery-in-tree/obj/ \
|
||||
# RUN: -j 1 --no-execute --show-suites -v > %t.out
|
||||
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
|
||||
#
|
||||
# CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests
|
||||
# CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*/exec-discovery-in-tree$}}
|
||||
# CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*/exec-discovery-in-tree/obj$}}
|
||||
# CHECK-ASEXEC-INTREE-NEXT: -- Testing: 1 tests, 1 threads --
|
||||
# CHECK-ASEXEC-INTREE-NEXT: PASS: exec-discovery-in-tree-suite :: test-one
|
||||
|
Reference in New Issue
Block a user