aboutsummaryrefslogtreecommitdiff
path: root/build/test_137-wrapper
blob: 753d8c3b53f9e1d081ebe0f8d4c118fe80aa99ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/make -f

# Needs set beforehand:
# - RSA key generated on the device
# - public key stored locally (it will be, if it was generated on this PC)
# - prepared test.gpg file with: `gpg2 --encrypt test`
#
# Running:
# ./test_137-wrapper # DELAY defaults to '1'
# make -f ./test_137-wrapper DELAY=90

DELAY ?= 1
TEST=./test_137
GPG=[[ `gpg2 --decrypt test.gpg | wc -c` -gt 0 ]]

test:
	echo "DELAY=${DELAY}"
	gpg2 --version
	git describe --long
	echo "start"
	${TEST}
	sleep ${DELAY}
	${GPG}
	sleep ${DELAY}
	${TEST}
	sleep ${DELAY}
	${GPG}
	sleep ${DELAY}
	${TEST}


.PHONY: test