summaryrefslogtreecommitdiffhomepage
path: root/tests/run.sh
Commit message (Collapse)AuthorAgeFilesLines
* Fix zopen packaging checks, update i-dscomplete.exp, and add GitHub Actions CISean Kurtz15 hours1-3/+3
| | | | | | | | | | | | | | - buildenv: declare coreutils, diffutils, and gzip in ZOPEN_DEV_DEPS and ZOPEN_STABLE_DEPS (build/check deps only; no runtime deps added) so tests/run.sh and tests/zos/tagging.sh have GNU tools and gzip under zopen build's minimal check environment. - tests/run.sh: unset _TAG_REDIR_IN, _TAG_REDIR_OUT, and _TAG_REDIR_ERR alongside _BPX_SHAREAS/_BPX_SPAWN_SCRIPT so zopen's check_clang env does not alter the tagging test baseline. - tests/linux/i-dscomplete.exp: update expected listing for CSI_MAX_CALLS=3 (changed from 2 to 3 in b3879f5 without regenerating .exp). - .github/workflows/ci.yml: add Linux CI workflow (Clang 19+, make, make zos-lint, make check, make asan, staged make install).
* wip: vi external edit and dot-repeat, in-process cd subshell, perf testSean Kurtz2 days1-1/+3
| | | | | | | | | | | | | | | The working tree the 2026-11-28 review was written against, committed unchanged so the review fixes can sit on top of it. - vi mode: `v` edits the line in $VISUAL, else $EDITOR (edit_external), and `.` repeats the last change, count and all. - `( cd dir )` runs in-process with the directory saved and restored, instead of forking, and its invalidation of the cached logical cwd. - tests/perf: a start-up cost guard; tests/run.sh runs that directory. - README: set +o pipetag for ASCII builds. - formal/zash-spec.txt regenerated as text. - .clang-tidy: two checks re-enabled (no findings after the change). - tests/scripts/webdocs: a `#` inside a fenced block is not a title.
* tests: expect what z/OS does, and keep the review notesfix/review-2026-11-27Sean Kurtz2 days1-1/+4
| | | | | | | | | | | | | | The host was verified with IBM make and IBM Open XL, in a copy of the tree (`tar`, extract, `chtag -R -t -c ISO8859-1 .`, `/bin/make zos-check`): plain `make` still dispatches to zos-ascii, both binaries build without a warning, the ASCII suite is 112 passed / 6 skipped / 0 failed, and the EBCDIC subset passes. Two expectations cannot be the same on both hosts, so zash/script-errors keeps the POSIX cases and is skipped on z/OS (a mode 000 script still runs there, because bit mode does not decide access), and tests/zos/ script-errors records the z/OS side. notes/review-2026-11-27.md now has a per-item status table, the investigation results and the z/OS run.
* feat: add zopen build configurationSean Kurtz6 days1-5/+3
|
* z/OS: one catalog per completion search, and stop after two callsSean Kurtz11 days1-2/+15
| | | | | | | | | | | | | | CSIS1CAT keeps a generic high-level qualifier from fanning a Tab key out over every alias it matches plus the master catalog, which is what Managing Catalogs warns about for CSIFILTK with generic filters. Two IGGCSI00 calls already return about 2200 names -- one call fills the 64000-byte work area with ~1100 -- so 64 was sweeping a whole catalog per keystroke for names no screen could show. Also: `//'<tab>` searched for "*" and "*.*" before the filter check refused them; it now returns before allocating anything, and tests/run.sh can compare an EBCDIC build's transcript against a .ebcdic.exp.
* tests/run.sh: start the z/OS tests without the profile's _BPX_ settingsSean Kurtz12 days1-0/+3
| | | | | | | /etc/profile exports _BPX_SHAREAS=YES and _BPX_SPAWN_SCRIPT=YES for every login, so tests that check what 'set -o shareas' and 'set -o jobnames' add to the environment saw variables the shell had not put there.
* tests/run.sh: leave out the two tests z/OS cannot reproduceSean Kurtz12 days1-0/+14
| | | | | | GNU od is an ASCII program and the pipe reaches it as IBM-1047, so it prints octal escapes where the .exp has the text. /bin/sh on the same system agrees, so the expected output cannot be produced here at all.
* tests/run.sh: compare with the GNU cmp and diff on z/OSSean Kurtz12 days1-4/+9
| | | | | | | IBM cmp calls any output holding a NUL byte binary and refuses to compare it, so posix/printf-ext and zash/ash-differences failed whatever the shell did. Both GNU tools read the tagged files through automatic conversion and compare the text that was meant.
* tests/run.sh: link the GNU tools instead of wrapping themSean Kurtz12 days1-2/+8
| | | | | | | On z/OS a shell script found on PATH loses the stdin pipe zash gave it and the GNU tool behind it dies with EDC5113I Bad file descriptor, so sleep, wc, sort, tr and od were unusable in any pipeline. Build the same names as symlinks once per run instead.
* tests/run.sh: GNU tools and quiet signals on z/OSSean Kurtz12 days1-1/+13
| | | | | | | | The .exp files were recorded on GNU userland. z/OS puts IBM tools first on PATH, so sleep rejected 0.3, wc padded its counts, tr ignored -c and od added a blank line. Prepend wrappers that pick the zopen GNU copies, and drop what only z/OS prints: the LE signal banner and EDC message ids inside strerror() text.
* Edge-case, integration and z/OS tests, including z/OS stand-insSean Kurtz2026-11-151-2/+4
| | | | | New groups: tests/scripts (integration, expectations from dash) and z/OS data set, tso, EBCDIC and tagging tests with Linux stand-ins.
* Tests and benchmarks for the extensions and the interactive layerSean Kurtz2026-11-131-1/+14
| | | | | | | | New zash/ tests for each extension, a proc/ test showing they create no processes, and linux/i-*.sh tests that drive the interactive shell on a pseudo-terminal (tests/tools/ptydrive.py; skipped without python3). The runner counts exit status 77 as "skipped". Adds a benchmark for the arithmetic commands and removes a stray file from tests/posix.
* zash: scripting core, test suite and benchmarksSean Kurtz2026-11-121-0/+103
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS). - Parser, expansion, arithmetic, redirection, traps and builtins. - Spawn-first execution: fd plans instead of fork+dup2, in-shell pure builtins for pipelines and command substitution, $(a | b) without a subshell. - Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets. - Tests: posix (dash-generated), zash, process accounting, linux, zos. Nothing has been compiled or run on z/OS yet.