mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Test][ModuleInterface] Replace find with find_files utility
This commit is contained in:
@@ -6,12 +6,11 @@
|
||||
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -module-cache-path %t/swiftcache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
|
||||
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -module-cache-path %t/swiftcache -Xcc -fmodules-cache-path=%t/clangcache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %t/main.swift
|
||||
|
||||
// RUN: NUM_SWIFT_MODULES=$(find %t/swiftcache -type f -name '*.swiftmodule' | wc -l)
|
||||
// RUN: NUM_CLANG_MODULES=$(find %t/clangcache -type f -name '*.pcm' | wc -l)
|
||||
/// Two swift modules, Leaf and Other
|
||||
// RUN: if [ ! $NUM_SWIFT_MODULES -eq 2 ]; then echo "Should only be 2 Swift Modules, found $NUM_SWIFT_MODULES"; exit 1; fi
|
||||
// RUN: %find_files %t/swiftcache '*.swiftmodule' | %llvm_obj_root/bin/count 2
|
||||
/// Two clang modules, shim and A
|
||||
// RUN: if [ ! $NUM_CLANG_MODULES -eq 2 ]; then echo "Should only be 2 Clang Modules, found $NUM_CLANG_MODULES"; exit 1; fi
|
||||
// RUN: %find_files %t/clangcache '*.pcm' | %llvm_obj_root/bin/count 2
|
||||
|
||||
|
||||
//--- leaf.swift
|
||||
public func LeafFunc() {}
|
||||
|
||||
Reference in New Issue
Block a user