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/toc/testscript | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 tests/toc/testscript (limited to 'tests/toc/testscript') diff --git a/tests/toc/testscript b/tests/toc/testscript new file mode 100644 index 0000000..76a28eb --- /dev/null +++ b/tests/toc/testscript @@ -0,0 +1,158 @@ +# file : tests/toc/testscript +# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + +test = $effect($cli.path) + +: toc +: +cat <>>toc.cli; +"\\h1|Table of Contents|" +"\\\$TOC\$" + +" +\\h0#preface|Preface| + +This document describes something awesome. + +\\h#about-document|About This Document| + +And this document is also awesome. + +\\h#more-information|More Information| + +It is so awesome that no further information will be required." + +" +\\H#part1|PART I| + +Start of part one. + +\\h1#intro|Introduction| + +Beginning of the first chapter. + +\\h#arch-flow|Architecture and Workflow| + +Some basics. + +\\h#benefits|Benefits| + +You will like them. + +\\h1#hello|Hello World| + +Beginning of the second chapter. + +\\h#hell-setup|Setup| + +More basics. + +\\h#hello-compile|Compiling| + +How to build the example + +\\h2#hello-compile-gcc|Compiling with GCC| + +GCC. For Clang see \\l{#hello-compile-clang Compiling with Clang}. + +\\h2#hello-compile-clang|Compiling with Clang| + +Clang. For GCC see \\l{#hello-compile-gcc Compiling with GCC}. + +\\h#hello-conclusion|Conclusion| + +Some remarks. +" +EOI +$* --generate-html --stdout toc.cli >>EOO +

Table of Contents

+ + + + + + +
Preface + + + +
About +This Document
More +Information
+
PART I
1Introduction + + + +
1.1Architecture and +Workflow
1.2Benefits
+
2Hello World + + + + +
2.1Setup
2.2Compiling + + + +
2.2.1Compiling with +GCC
2.2.2Compiling +with Clang
+
2.3Conclusion
+
+ +

Preface

+ +

This document describes something awesome.

+ +

About This Document

+ +

And this document is also awesome.

+ +

More Information

+ +

It is so awesome that no further information will be required.

+ +

PART I

+ +

Start of part one.

+ +

1 Introduction

+ +

Beginning of the first chapter.

+ +

1.1 Architecture and Workflow

+ +

Some basics.

+ +

1.2 Benefits

+ +

You will like them.

+ +

2 Hello World

+ +

Beginning of the second chapter.

+ +

2.1 Setup

+ +

More basics.

+ +

2.2 Compiling

+ +

How to build the example

+ +

2.2.1 Compiling with GCC

+ +

GCC. For Clang see Compiling with + Clang.

+ +

2.2.2 Compiling with Clang

+ +

Clang. For GCC see Compiling with + GCC.

+ +

2.3 Conclusion

+ +

Some remarks.

+ +EOO -- cgit v1.1