andrew-johnson-4 / lambda-mountain

Compact Portable Assembler (5K SLOC)
MIT License
12 stars 0 forks source link

Doby based tests manager #99

Open andrew-johnson-4 opened 4 months ago

andrew-johnson-4 commented 4 months ago

LM is currently built with Make and tested with Rust Cargo. It would be nice to have a build and test manager written in LM. This would be a good first issue for someone who wants to learn about LM despite everything being somewhat early stages.

This command should build and run tests based on the test configurations in the directory. Some configuration options might look like this:

# default based directory = ./tests
# default.config (special config common to all tests in this directory)
# file.lm  (a test)
# file.lm.config (special built/test configuration to test this file)
# file.lm.ignore (ignore this file)
# file.lm.stdout (expected stdout)
# file.lm.stderr (expected stdout)
# file.lm.exitno (expected process return code)
andrew-johnson-4 commented 4 months ago
doby test [directories]
# default based directory = ./tests
# default.config (special config common to all tests in this directory)
# file.lm  (a test)
# file.lm.config (special built/test configuration to test this file)
# file.lm.ignore (ignore this file)
# file.lm.stdout (expected stdout)
# file.lm.stderr (expected stdout)
# file.lm.exitno (expected process return code)