From d52c1fb406b1cef82c5f5a28fc1804d7d99a49d8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 Nov 2016 01:35:29 +0300 Subject: Add support for build2 for tests and examples --- tests/headings/buildfile | 5 +++++ tests/headings/map.cli | 15 --------------- tests/headings/map.html | 12 ------------ tests/headings/testscript | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 tests/headings/buildfile delete mode 100644 tests/headings/map.cli delete mode 100644 tests/headings/map.html create mode 100644 tests/headings/testscript (limited to 'tests/headings') diff --git a/tests/headings/buildfile b/tests/headings/buildfile new file mode 100644 index 0000000..d903d09 --- /dev/null +++ b/tests/headings/buildfile @@ -0,0 +1,5 @@ +# file : tests/headings/buildfile +# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + +./: test{testscript} diff --git a/tests/headings/map.cli b/tests/headings/map.cli deleted file mode 100644 index cdbec38..0000000 --- a/tests/headings/map.cli +++ /dev/null @@ -1,15 +0,0 @@ -// Note that auto-headings break if we split into multiple doc strings. -// -" -\h1|Heading 1| - -\h|Heading 1.1| - -\h2|Heading 1.1.1| - -\h|Heading 1.2| - -\h2|Heading 1.2.1| - -\h1|Heading 2| -" diff --git a/tests/headings/map.html b/tests/headings/map.html deleted file mode 100644 index f08086c..0000000 --- a/tests/headings/map.html +++ /dev/null @@ -1,12 +0,0 @@ -

Heading 1

- -

Heading 1.1

- -

Heading 1.1.1

- -

Heading 1.2

- -

Heading 1.2.1

- -

Heading 2

- diff --git a/tests/headings/testscript b/tests/headings/testscript new file mode 100644 index 0000000..0c31f99 --- /dev/null +++ b/tests/headings/testscript @@ -0,0 +1,39 @@ +# file : tests/headings/testscript +# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + +test = $effect($cli.path) + +: auto-headings +: +: Note that auto-headings break if we split into multiple doc strings. +: +cat <>>map.cli; +" +\\h1|Heading 1| + +\\h|Heading 1.1| + +\\h2|Heading 1.1.1| + +\\h|Heading 1.2| + +\\h2|Heading 1.2.1| + +\\h1|Heading 2| +" +EOI +$* --generate-html --stdout map.cli >>EOO +

Heading 1

+ +

Heading 1.1

+ +

Heading 1.1.1

+ +

Heading 1.2

+ +

Heading 1.2.1

+ +

Heading 2

+ +EOO -- cgit v1.1