#! @file main.sakura #! @author John Christman (sorakatadzuma@gmail.com) #! @copyright Malunal Studios, LLC. #! @license MIT #! #! Contains the `main` that runs this repository's unit tests, each in a copy of #! the program of its own: those of finding libraries, in `libraries.sakura`, #! and those of each of the compiler's libraries, in the folder of its name, as #! `tests/analyzer/`. Each set is a program of its own, read from the root of #! the repository, where `core`, `system`, and `runtime` are, with the standard #! library's repository beside it. #! #! `blossom test` runs them as `sakurac.tests` and `sakura.analyzer.tests` and #! the rest, or, from the root of the repository: #! #! ``` #! sakurac run --lib std=../std --lib sakura::analyzer=analyzer #! tests/main.sakura tests/libraries.sakura #! sakurac run --lib sakura::analyzer=analyzer tests/main.sakura tests/analyzer/*.sakura #! ``` #! #! Each library's README gives the libraries its tests read. #! #! Add `-- --only TEXT` to run the tests whose name holds the text, and #! `-- --here` to run them in one program, as a debugger wants. import system; import std::testing; def main(args: span): void { exit(tester::run(args)); }