Initial test framework

Clean up makefiles
Everything buildable under docker (or natively)
This commit is contained in:
Toby Jaffey 2025-12-10 16:36:33 +00:00
parent 5a0c70a017
commit da7f70c456
48 changed files with 7254 additions and 293 deletions

View file

@ -1,14 +1,32 @@
.PHONY: test
all:
make -C test
(cd host && make)
(cd host-mini && make)
(cd host-parallel && make)
#(cd apps && make) # do not build apps by default, as they require a variety of dev tools
(cd apps && make)
clean:
make -C test clean
(cd host && make clean)
(cd host-mini && make clean)
(cd host-parallel && make clean)
(cd apps && make clean)
world:
make && (cd apps && make) && cp apps/*/*.bin precompiled/
test:
make -C test
distrib: all
cp apps/*/*.bin precompiled/
dockerbuild:
docker build -t uvm32 . --no-cache
dockershell:
docker run -v `pwd`:/data -w /data --rm -ti uvm32 /bin/bash
docker:
docker run -v `pwd`:/data -w /data --rm -ti uvm32 make