aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest-parser/driver
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-20 14:35:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-20 14:35:28 +0200
commit357172f4409c74d7a2ac963290fc70c7ae10e3b1 (patch)
tree3c857e1803d9840734fe2af59c328793fb7455e6 /tests/manifest-parser/driver
parent53d459271375a3fafb80f26d11ab13b00f468ef9 (diff)
Switch to bash build2 module
Diffstat (limited to 'tests/manifest-parser/driver')
-rwxr-xr-xtests/manifest-parser/driver31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/manifest-parser/driver b/tests/manifest-parser/driver
deleted file mode 100755
index 4cbea3e..0000000
--- a/tests/manifest-parser/driver
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-
-function import ()
-{
- # Here we don't assume the errors are trapped. If all goes well, our exit
- # code is that of source (which fails if the file is not found).
- #
- local e; if ! e="$(realpath ${BASH_SOURCE[0]})"; then return 1; fi
- local d; if ! d="$(dirname "$e")"; then return 1; fi
- source "$d/$1.bash"
-}
-
-trap "{ exit 1; }" ERR
-set -o errtrace # Trap ERR in functions.
-
-import libbutl/manifest-parser
-
-# @@ parse_manifest failure ignored
-#
-# @@ what would be equivalent serialization interface? Just serialize one
-# name/value in manifest format (so explicit version).
-#
-while IFS=': ' read -r -d '' n v; do
- if [ -z "$n" ]; then
- echo "$v"
- else
- echo # Extra newline after first pair.
- echo "$n"
- echo "$v"
- fi
-done < <(parse_manifest)