Skip to content

Commit 09e30ef

Browse files
committed
[test] Enable standalone_build feature properly and fix three tests
Two tests were mislabeled and a third needed its output reordered.
1 parent 3181dd1 commit 09e30ef

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

test/lit.site.cfg.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ if "@SWIFT_STDLIB_USE_NONATOMIC_RC@" == "TRUE":
9393
if "@SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS@" == "TRUE":
9494
config.available_features.add('runtime_function_counters')
9595

96-
if "@SWIFT_BUILT_STANDALONE@" == "TRUE":
97-
config.available_features.add('standalone_build')
98-
9996
if "@CMAKE_GENERATOR@" == "Xcode":
10097
xcode_bin_dir = os.path.join(config.llvm_obj_root, "@LLVM_BUILD_TYPE@",
10198
'bin')

validation-test/BuildSystem/infer_dumps_deps_if_verbose_build.test

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
# REQUIRES: standalone_build
66

7+
# Build and install the SwiftPM dependencies first.
8+
#
9+
# CHECK: --- Installing cmark ---
10+
# CHECK: --- Installing llvm ---
11+
# CHECK: --- Installing swift ---
12+
# CHECK: --- Installing llbuild ---
13+
714
# Just make sure we compute the build graph/emit output.
815
#
916
# CHECK: -- Build Graph Inference --
@@ -16,11 +23,7 @@
1623
# CHECK: llvm
1724
# CHECK: swift
1825

19-
# Then make sure we are installing/building at the appropriate times.
26+
# Then make sure we are installing/building SwiftPM last.
2027
#
21-
# CHECK: --- Installing cmark ---
22-
# CHECK: --- Installing llvm ---
23-
# CHECK: --- Installing swift ---
24-
# CHECK: --- Installing llbuild ---
2528
# CHECK: --- Building swiftpm ---
2629
# CHECK: --- Installing swiftpm ---

validation-test/BuildSystem/install_all.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: mkdir -p %t
33
# RUN: SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --dry-run --install-all --cmake %cmake 2>&1 | %FileCheck %s
44

5-
# REQUIRES: standalone_test
5+
# REQUIRES: standalone_build
66

77
# CHECK: --- Installing cmark ---
88
# CHECK: --- Installing llvm ---

validation-test/BuildSystem/skip_cmark_swift_llvm.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: standalone_test
1+
# REQUIRES: standalone_build
22

33
# RUN: %empty-directory(%t)
44
# RUN: mkdir -p %t

validation-test/lit.site.cfg.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ if "@SWIFT_ENABLE_SOURCEKIT_TESTS@" == "TRUE":
9090
if "@SWIFT_STDLIB_USE_NONATOMIC_RC@" == "TRUE":
9191
config.available_features.add("nonatomic_rc")
9292

93+
if "@SWIFT_BUILT_STANDALONE@" == "TRUE":
94+
config.available_features.add('standalone_build')
95+
9396
if "@CMAKE_GENERATOR@" == "Xcode":
9497
xcode_bin_dir = os.path.join(config.llvm_obj_root, "@LLVM_BUILD_TYPE@",
9598
'bin')

0 commit comments

Comments
 (0)