summaryrefslogtreecommitdiffhomepage
path: root/tests/zos/csi-parse.sh
blob: 5a79b5a605eab476dc47a228f328ab42d8ec3705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# z/OS: csi_parse() decodes a Catalog Search Interface work area in both
# character sets.
#
# The entry type byte is the point (notes/review-2026-11-27.md, item 12):
# an ASCII build converts it from EBCDIC, an EBCDIC build must use it as it
# is.  Converting it twice made every entry arrive with the wrong type, which
# only Tab completion ever noticed.  The helpers are plain programs over
# src/mvsfmt.c, built by the Makefile for both sets; each prints a verdict, so
# one expectation serves both.
tools=${TESTS:-.}/../build/zos-tools
[ -x "$tools/csi" ] && [ -x "$tools/csi-ascii" ] || exit 77

echo "-- EBCDIC build"
"$tools/csi"
echo "-- ASCII build"
"$tools/csi-ascii"