t27.aiРусский

tri: the command line

You will learn

What tri test does, how tri hands other words to t27c, and which commands are its own.

In the gHashTag/t27 repository, scripts/tri is a small wrapper. tri test runs the conformance suite, t27c suite --repo-root .; a word tri does not know, such as gen or seal, is passed on to t27c. Its own commands include audit, recall, frontier, lesson and help. This lesson read the script and did not run it: native t27c is built on a Linux machine, and this course does not run it on yours.

Try it

Read the table and say which commands go to t27c and which stay inside tri.

Open the interactive lesson →

t27 basics 24: where a tri command goes
t27 basics 24: where a tri command goes ↗

Which tri commands run inside the script and which are handed to t27c, read from scripts/tri in gHashTag/t27. Lesson 24 of the t27 basics course.

specs/basics/24_tri_commands.t27

// SPDX-License-Identifier: Apache-2.0
; t27 basics, lesson 24: tri: the command line.
; tri is the command the t27 repository uses to test, generate and check specs.

module basics_24_tri_commands;

pub const OWN_COMMANDS : [5]str = ["audit", "recall", "frontier", "lesson", "help"];
pub const PASSED_TO_T27C : [2]str = ["gen", "seal"];
pub const TEST_RUNS : str = "t27c suite --repo-root .";

test tri_test_runs_the_suite {
    assert TEST_RUNS == "t27c suite --repo-root .";
    assert OWN_COMMANDS[4] == "help";
    assert PASSED_TO_T27C[1] == "seal";
}

Open the lesson's spec in the player ↗

All lessons