Add a `testhost` target

This target runs Bash in an ephemeral docker container with the HEAD
revision of yadm mounted at /bin/yadm. You can override the version
using any "commit-ish". Eg. `target=1.06 make testhost`
pull/91/head
Tim Byrne 6 years ago
parent f0886ef622
commit eef9bfa2f7
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
  1. 9
      Makefile

@ -39,6 +39,15 @@ shellcheck:
[ "$$test_result" -ne 0 ] && exit 1; \
done; true
.PHONY: testhost
testhost:
@target=HEAD
@rm -rf /tmp/testhost
@git show $(target):yadm > /tmp/testhost
@chmod a+x /tmp/testhost
@echo Starting testhost target=\"$$target\"
@docker run -w /root --hostname testhost --rm -it -v "/tmp/testhost:/bin/yadm:ro" yadm/testbed:latest bash
man:
groff -man -Tascii ./yadm.1 | less

Loading…
Cancel
Save