         }
     }
 
-    func testResolvesSingleClangModule() throws {
+    func testResolvesSingleClangLibraryModule() throws {
         var fs = InMemoryFileSystem()
         try fs.createEmptyFiles("/Foo.h",
                                 "/Foo.c")

/// Tests for the handling of source layout conventions.
class ConventionTests: XCTestCase {
    
    func testDotFilesAreIgnored() throws {
        var fs = InMemoryFileSystem()
        try fs.createEmptyFiles("/.Bar.swift",

                moduleResult.checkSources(root: "/", paths: "Foo.swift")
            }
        }

        // Single swift module inside Sources.
        fs = InMemoryFileSystem()
        try fs.createEmptyFiles("/Sources/Foo.swift",
                                "/Sources/Bar.swift")

        PackageBuilderTester(name, in: fs) { result in
            result.checkModule(name) { moduleResult in
                moduleResult.check(c99name: name, type: .library, isTest: false)
                moduleResult.checkSources(root: "/Sources", paths: "Foo.swift", "Bar.swift")
            }
        }

        // Single swift module inside its own directory.
        fs = InMemoryFileSystem()
        try fs.createEmptyFiles("/Sources/lib/Foo.swift",
                                "/Sources/lib/Bar.swift")

        PackageBuilderTester(name, in: fs) { result in
            result.checkModule("lib") { moduleResult in
                moduleResult.check(c99name: "lib", type: .library, isTest: false)
                moduleResult.checkSources(root: "/Sources/lib", paths: "Foo.swift", "Bar.swift")
            }
        }
    }

    func testResolvesSystemModulePackage() throws {
