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

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

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)