first actual test (help)
This commit is contained in:
parent
82888d6cb0
commit
3693313e63
|
@ -1,16 +1,16 @@
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iQIzBAABCgAdFiEEZ1U/vaRrtxq9LgsLjkeh7DWhVR0FAl+1YpAACgkQjkeh7DWh
|
iQIzBAABCgAdFiEEZ1U/vaRrtxq9LgsLjkeh7DWhVR0FAl+1rNcACgkQjkeh7DWh
|
||||||
VR2wWRAAieouX51DLRxoIYjmRQSCYnyeJUe1yrT9J9XM/iVpK+5xX2yXOMO2vz0f
|
VR2J9g//b9Y5+fMKGly6916eHHhi3XXo8iHJiiirqTO4caKzDYfVELwfCYXL+egY
|
||||||
1LoPVp1Wg5rjN+48Qfm4TvSMLNFg6cLtNQc+KymqzR9DK4N7HMXE1cPKCVcdkBau
|
EBbewUCrDbH9SP+J/mU00pTrq1Wz2FFvqH9H5cliHi8Q53UFD4Sg1DM9T9Fhtmm6
|
||||||
hW+wh34H0U3oDgZrMNm0B0jONp2bB3k73GV8EFHrpGCmOeZYfRclmDiPqQm1SCwU
|
pP0JvErV/chjWMG9kc2viCyRVu85z0EkR3wmsAe6aK0rucwVqv5y0G09ruNvYQ3X
|
||||||
+exqC1xBD8tHF1eID7oLs7xbRbpYIj1ytLVvvfqpW9pVp6OcfEramy/czMZinzq5
|
VfuOqaqWQq1m/8VxhWjXfANdJPtfwfHbdXNVaHvpsqSSgTE/XRT/0K5N0zC3sKLZ
|
||||||
K+5jPqNNQo5i3Bv+r0aqQOq0sIB5NTaMcQv3qtc/r6CInz5N4PQtXyG/0p1ySGTt
|
Et5OtGF4yGIhYTXjdYgAYd+iaZbjqCE/S8jSueWaaO+N3j1xSds+cA89rli9rseZ
|
||||||
gm8qhMuSkvcFuCEecUMRxw7r7H44qpdgsSAvTmeRPWzwC5bLH/mZ/T1lljfvDohc
|
GaTJfLi1hOcS/4PziM6SVqFElSAu2wdo5lyfR8dsyJ1b8d0Q1/5WGwf716dMtKL1
|
||||||
bAwm8UTS01UJtnCZW35QIDTyo+EXN9qJrO+u9uirQNmeHsLHnlD6Jz41hDRxB9My
|
X35Kob0jzFosCKLuAAfHVfWA3wwXrb4kaSnq+9a7evROacjGBZcvAXWmRTe5F9Rp
|
||||||
AOtUsoNND//rRXGHBj/iJzuzRkmhTr7JDhgpbYnp6afg5t02nNM973C8NbO7kRIg
|
zlZ3lMnKzzH/dW80B238OW+WPQANaM2XLTzB/Paei0SZqvzQ1qqyHNS9eiTAdc+n
|
||||||
H5298Egy1NCxvOB43t7FORMawwI1Ty1HR9+95STA8gZtqo9Bk52wkCN586aR8tsh
|
+siY8m+ryFIjWU9WA/NrCkUTa4GE3oFiWcdycAREbQlhi+ForrQ9QFlRi7CqeJy6
|
||||||
SukX3UPJ1mzAtCzmcH2LUUeF9d7BuWGSrX5/vc8FcXeAevMKNK/yFI2Ll3dTmVLC
|
adB6qiygy1k3efqfu9PMC32WTfNMdQB1RvprQHkytBQQfh/dLmJWaSaQzEQ9QlKl
|
||||||
TgcgsvprhOnrZEdTTKvtA9JXTk/T9h8zH/O+VSLyog5FDhEcm8k=
|
6N3Zxmd7WjNSmrXz4YoPccIau+4C29N+9akS3nnY+X7I1+e8gXc=
|
||||||
=Fxj8
|
=yKtQ
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
64263feac7b00952e9ec3b6c1fd11316faa58ff673c6bd085fac9f6f8d8389f6 .gitignore
|
64263feac7b00952e9ec3b6c1fd11316faa58ff673c6bd085fac9f6f8d8389f6 .gitignore
|
||||||
|
6be935105cf23a76df12868caf56e52f95f1b9fc64645b1079eb7a07cc8682a3 Makefile
|
||||||
f19d267e4aa6bf82d5416891697a2a81a574efdddecf5c54e3a8a77c207013fa README.md
|
f19d267e4aa6bf82d5416891697a2a81a574efdddecf5c54e3a8a77c207013fa README.md
|
||||||
bf3492ca7625d9ac199678cf2828253e5968a87c5c444ec92e2a90ed1cbbac49 sig
|
bf3492ca7625d9ac199678cf2828253e5968a87c5c444ec92e2a90ed1cbbac49 sig
|
||||||
|
fe58cbd410c8fe1c3086447b6a0187d6f42b536ab34347e523373a9e92a9421b test/Dockerfile
|
||||||
|
38b283eecd2ce8c7793d7290b6eb7f629d483a8333687d0a6dbb9a361c039bba test/test.bats
|
||||||
|
4e87988899634e85354372f18b26d778a5f60f921ebee1b8c543477ce9787aa3 test/test_helper.bash
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
.PHONY:
|
||||||
|
test: test-image
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--interactive \
|
||||||
|
--volume $(PWD)/:/home/test/ \
|
||||||
|
local/sig-test \
|
||||||
|
bats test/test.bats
|
||||||
|
|
||||||
|
.PHONY: test-image
|
||||||
|
test-image:
|
||||||
|
docker build \
|
||||||
|
--tag local/sig-test \
|
||||||
|
--file $(PWD)/test/Dockerfile \
|
||||||
|
$(PWD)
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
|
test-shell: test-shell
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--interactive \
|
||||||
|
--volume $(PWD)/:/home/test/ \
|
||||||
|
local/sig-test \
|
||||||
|
bash
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM debian:buster
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --force-yes bats gnupg openssl && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
RUN useradd -m test
|
||||||
|
|
||||||
|
USER test
|
||||||
|
|
||||||
|
WORKDIR /home/test
|
|
@ -0,0 +1,6 @@
|
||||||
|
load test_helper
|
||||||
|
|
||||||
|
@test "Outputs help if run without arguments" {
|
||||||
|
run ./sig
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
echo "running setup"
|
||||||
|
}
|
||||||
|
|
||||||
|
teardown(){
|
||||||
|
echo "running teardown"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue