summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-keygen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/test-keygen.sh b/test-keygen.sh
index 0185e14..747685e 100755
--- a/test-keygen.sh
+++ b/test-keygen.sh
@@ -2,7 +2,16 @@
2out=TEST_CHILD.$(date +%s) 2out=TEST_CHILD.$(date +%s)
3log=${out}.log 3log=${out}.log
4[ ! -e "$out" ] || exit 4[ ! -e "$out" ] || exit
5exec >"$log" 2>&1 5exec 3>&1 >"$log" 2>&1
6apt-cache policy gnupg 6apt-cache policy gnupg
7ps -C gpg-agent 7ps -C gpg-agent
8sudo ${PARENT_ROOT:+"PARENT_ROOT=$PARENT_ROOT"} bash -c 'time bash -x ./src/keygen.sh "$1"' bash "$out" 8sudo ${PARENT_ROOT:+"PARENT_ROOT=$PARENT_ROOT"} bash -c 'time bash -x ./src/keygen.sh "$1"' bash "$out"
9r=$?
10
11case $r in
12 0) exit ;;
13 *) echo "FAILED! (r=$r)" >&2
14 tail "$log" >&3
15 exit $r
16 ;;
17esac