Skip to content

Commit e2c2397

Browse files
committed
Add documentation generation test
1 parent 187629b commit e2c2397

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/Documentation/docc.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// REQUIRES: OS=macosx
2+
3+
// RUN: %empty-directory(%t)
4+
// RUN: mv $(dirname %utils)/docs $(dirname %utils)/docs.docc
5+
// RUN: xcrun docc convert --output-path %t $(dirname %utils)/docs.docc
6+
// RUN: mv $(dirname %utils)/docs.docc $(dirname %utils)/docs
7+
8+
// the generated bundle should be at least as big as all of the markdown files in the source directory
9+
// RUN: test $(du -c %t | tail -1 | awk '{ print $1 }') -gt $(du -c $(dirname %utils)/docs/*.md | tail -1 | awk '{ print $1 }') && echo success
10+
// CHECK: success

0 commit comments

Comments
 (0)