Add makefile target for running the tests inside the docker container.
rust-build Build rust-build has failed Details
rust-test Build rust-test has failed Details
rustfmt Build rustfmt has succeeded Details

This commit is contained in:
Tom Alexander 2023-08-12 23:57:32 -04:00
parent 7da09fea74
commit 34985c9045
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ clean:
test:
> cargo test --lib --test test_loader -- --test-threads $(TESTJOBS)
.PHONY: dockertest
dockertest:
> $(MAKE) -C docker/organic_test
> docker run --rm -i -t -v "$$(readlink -f ./):/.source:ro" -w / organic-test sh -c "cp -r /.source /source && cd /source && cargo test"
.PHONY: integrationtest
integrationtest:
> cargo test --no-fail-fast --test test_loader -- --test-threads $(TESTJOBS)