Initial Commit

This commit is contained in:
SoraKatadzuma committed 2026-11-19 04:54:17 -06:00
commit f086abcea6
789 files changed
+149185

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
#! @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<strview>): void {
exit(tester::run(args));
}