Skip to content

Commit 984870e

Browse files
committed
test/Documentation: create Info.plist in docs.docc for testing
Looks like older DocC versions require `Info.plist` to be present, especially in directories with `.docc` extension.
1 parent 6204f1d commit 984870e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Documentation/docc.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// REQUIRES: OS=macosx
22

33
// RUN: %empty-directory(%t)
4-
// RUN: mv $(dirname %utils)/docs $(dirname %utils)/docs.docc
4+
// RUN: mv "$(dirname %utils)/docs" "$(dirname %utils)/docs.docc"
5+
// RUN: plutil -create xml1 "$(dirname %utils)/docs.docc/Info.plist"
6+
// RUN: plutil -insert CFBundleDisplayName -string "Swift Compiler Documentation" "$(dirname %utils)/docs.docc/Info.plist"
7+
// RUN: plutil -insert CFBundleIdentifier -string "org.swift.compiler-documentation" "$(dirname %utils)/docs.docc/Info.plist"
58
// RUN: xcrun docc convert --output-path %t $(dirname %utils)/docs.docc
69
// RUN: mv $(dirname %utils)/docs.docc $(dirname %utils)/docs
710

0 commit comments

Comments
 (0)