1
0
Fork 0
mirror of synced 2024-07-26 18:11:09 -04:00

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`
This commit is contained in:
Tim Byrne 2017-09-04 11:48:45 -05:00
parent f0886ef622
commit eef9bfa2f7
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

View file

@ -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