Some test running.

This commit is contained in:
Brad Nelson
2023-12-31 22:37:08 -08:00
parent 14ede079b7
commit 311a2d88f0
3 changed files with 29 additions and 3 deletions

View File

@ -222,6 +222,12 @@ rule oneshot
description = ONESHOT
command = echo oneshot
rule forth_test
description = FORTH_TEST
depfile = $out.d
deps = gcc
command = $src/tools/importation.py -i $test -o $out --depsout $depfile --no-out && $interp $forth $test >$out
rule clean
description = CLEAN
command = ninja -t clean
@ -355,6 +361,17 @@ def OneShot(target, command, source, pool=None):
return target
def ForthTest(target, forth, test, interp='', pool=None):
global output
output += f'build {target}: forth_test {forth} {test}\n'
output += f' forth = {forth}\n'
output += f' test = {test}\n'
output += f' interp = {interp}\n'
if pool:
output += f' pool = {pool}\n'
return target
def Default(target):
global output
output += f'default {target}\n'