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:
parent
f0886ef622
commit
eef9bfa2f7
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -39,6 +39,15 @@ shellcheck:
|
||||||
[ "$$test_result" -ne 0 ] && exit 1; \
|
[ "$$test_result" -ne 0 ] && exit 1; \
|
||||||
done; true
|
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:
|
man:
|
||||||
groff -man -Tascii ./yadm.1 | less
|
groff -man -Tascii ./yadm.1 | less
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue