Files
swift-mirror/validation-test/BuildSystem/skip_clean_corelibs.test
Michael Gottesman 1d86a22f5b [build-script] Add a SKIP_XCODE_VERSION_CHECK to all dry-run build-script tests.
It makes sense to just set this here since we aren't testing that functionality
and enables us to test this if we aren't using one of the specified Xcodes
(which can be useful).
2021-08-31 14:10:28 -07:00

28 lines
1.3 KiB
Plaintext

# REQUIRES: standalone_build
# UNSUPPORTED: OS=macosx
# UNSUPPORTED: OS=ios
# UNSUPPORTED: OS=tvos
# UNSUPPORTED: OS=watchos
# RUN: %empty-directory(%t)
# RUN: mkdir -p %t
# RUN: SKIP_XCODE_VERSION_CHECK=1 SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --dry-run --xctest --cmake %cmake 2>&1 | %FileCheck --check-prefix=CLEAN-CORELIBS-CHECK %s
# RUN: %empty-directory(%t)
# RUN: mkdir -p %t
# RUN: SKIP_XCODE_VERSION_CHECK=1 SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --dry-run --xctest --skip-clean-libdispatch --skip-clean-foundation --skip-clean-xctest --cmake %cmake 2>&1 | %FileCheck --check-prefix=SKIP-CLEAN-CORELIBS-CHECK %s
# CLEAN-CORELIBS-CHECK: Cleaning the libdispatch build directory
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
# CLEAN-CORELIBS-CHECK: Cleaning the Foundation build directory
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
# CLEAN-CORELIBS-CHECK: Cleaning the XCTest build directory
# CLEAN-CORELIBS-CHECK-NEXT: rm -rf
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the libdispatch build directory
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/libdispatch-[^/]*}}
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the Foundation build directory
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/foundation-[^/]*}}
# SKIP-CLEAN-CORELIBS-CHECK-NOT: Cleaning the XCTest build directory
# SKIP-CLEAN-CORELIBS-CHECK-NOT: rm -rf {{.*/xctest-[^/]*}}