summaryrefslogtreecommitdiff
path: root/gcr/tests/files/gnupg-mock/mock-status-and-attribute
diff options
context:
space:
mode:
Diffstat (limited to 'gcr/tests/files/gnupg-mock/mock-status-and-attribute')
-rwxr-xr-xgcr/tests/files/gnupg-mock/mock-status-and-attribute34
1 files changed, 0 insertions, 34 deletions
diff --git a/gcr/tests/files/gnupg-mock/mock-status-and-attribute b/gcr/tests/files/gnupg-mock/mock-status-and-attribute
deleted file mode 100755
index abf8607a..00000000
--- a/gcr/tests/files/gnupg-mock/mock-status-and-attribute
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-# This script is used with test-gnupg-process
-# Needs to be run with /bin/bash in order to handle two digit
-# file descriptor redirects
-
-set -euf
-
-SFD=
-AFD=
-
-# Not real 'long' option parsing, but good enough for this
-while [ $# -gt 1 ]; do
- if [ "$1" = --status-fd ]; then
- SFD=$2
- shift
- elif [ "$1" = --attribute-fd ]; then
- AFD=$2
- shift
- fi
- shift
-done
-
-# No FD passed :(
-if [ -z "$AFD" ]; then
- exit 22
-fi
-if [ -z "$SFD" ]; then
- exit 23
-fi
-
-echo -n "1lc923g4laoeurc23rc2" >&$AFD
-echo "[GNUPG:] SCHEMA one two three four " >&$SFD
-echo -n "41lcg2r23c4gr3" >&$AFD