# BNW test driver. # # The container tests build the BNW package from the git origin pinned # in guix-bioinformatics/gn/packages/bnw.scm (fetched from # git.genenetwork.org), so push your changes to gn-bnw main first, or # update the pin, before running them. Requires a checkout layout # with guix-bioinformatics, gn-machines, run-guix-container and # contrib/guix-forge/guix side by side (paths overridable in # test/run_container_tests.sh) and the run-guix-system-container # daemon on 127.0.0.1:8900. # # make run the container tests # make run same, but leave the container running (web on :8881) # make clean remove test artifacts and leaked test VMs .PHONY: test run clean test: @echo "== running the BNW container tests ==" @./test/run_container_tests.sh run: @./test/run_container_tests.sh --keep clean: rm -rf test/__pycache__ test/logs rm -f /tmp/bnw-vm.qcow2 /tmp/bnw-vm*.log /tmp/bnw-container-test.log @-for p in $$(ls /proc 2>/dev/null | grep -E '^[0-9]+$$'); do \ case "$$(tr '\0' ' ' < /proc/$$p/cmdline 2>/dev/null)" in \ *qemu-system*bnw-vm.qcow2*) kill -9 $$p 2>/dev/null && echo "killed leaked test VM (pid $$p)";; \ esac; \ done