blob: 9e15fafaeb84333f5249eefbb93da2374f070724 [file] [log] [blame]
// Check if test modules can import Swift modules which depend on C module.
//
// Make a sandbox dir.
// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir
// RUN: cp -r %S/SwiftCMixed %t.dir/
// RUN: %{swift} test --chdir %t.dir/SwiftCMixed -v 2>&1 | tee %t.build-log
//
// REQUIRES: rdar://problem/31720541
//
// Check the build log.
//
// RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
//
// CHECK-BUILD-LOG: swiftc{{.*}} -module-name SwiftCMixedPackageTests
// CHECK-BUILD-LOG: testSwiftyFoo{{.*}} passed
// CHECK-BUILD-LOG: 'SwiftyTests' passed