diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-29 10:20:40 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-29 10:20:40 -0600 |
| commit | c395bd53d22de9fcda6bfec25596223845e83a22 (patch) | |
| tree | 040f31fe7074e3688ad8c98ff96943eda3f0f818 | |
| parent | 99474ce7c2c94f0dde4b244b45b305ebc06b03b5 (diff) | |
| download | zash-c395bd53d22de9fcda6bfec25596223845e83a22.tar.gz | |
Fix zopen packaging checks, update i-dscomplete.exp, and add GitHub Actions CI
- 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).
| -rw-r--r-- | .github/workflows/ci.yml | 54 | ||||
| -rw-r--r-- | buildenv | 6 | ||||
| -rw-r--r-- | tests/linux/i-dscomplete.exp | 8 | ||||
| -rwxr-xr-x | tests/run.sh | 6 |
4 files changed, 67 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..95daf49 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + linux: + name: Linux build, z/OS lint, check, ASan + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: Select Clang 19+ (C23 constexpr) + run: | + cc="" + for c in clang-21 clang-20 clang-19; do + if command -v "$c" >/dev/null 2>&1; then + cc="$c" + break + fi + done + if [ -z "$cc" ]; then + sudo apt-get update + sudo apt-get install -y --no-install-recommends clang-19 + cc="clang-19" + fi + "$cc" --version + echo "CC=$cc" >> "$GITHUB_ENV" + + - name: Build (C23, warnings clean) + run: make CC="$CC" + + - name: Lint z/OS code paths and POSIX Makefile + run: make zos-lint CC="$CC" + + - name: Run functional and interactive test suite + env: + ZASH_TEST_SKIP: perf/startup + run: make check CC="$CC" + + - name: Run test suite under ASan + UBSan + LSan + run: make asan CC="$CC" + + - name: Verify staged install + run: | + make install DESTDIR="$RUNNER_TEMP/stage" PREFIX=/usr/local + "$RUNNER_TEMP/stage/usr/local/bin/zash" -c 'echo "install:$((16#FF))"' @@ -7,8 +7,10 @@ ZASH_VERSION="0.1.0" export ZOPEN_PROJECT_NAME="zash" export ZOPEN_BUILD_LINE="DEV" export ZOPEN_TYPE="LOCAL" -export ZOPEN_DEV_DEPS="make" -export ZOPEN_STABLE_DEPS="make" +# Build and test dependencies only (not runtime): tests/run.sh uses GNU +# coreutils/diffutils, and tests/zos/tagging.sh uses gzip. +export ZOPEN_DEV_DEPS="make coreutils diffutils gzip" +export ZOPEN_STABLE_DEPS="make coreutils diffutils gzip" export ZOPEN_CATEGORIES="shell" export ZOPEN_COMP="CLANG" # zash uses only POSIX/POSIX-adjacent libc calls; zoslib would add a runtime diff --git a/tests/linux/i-dscomplete.exp b/tests/linux/i-dscomplete.exp index 999f2a9..762ae7f 100644 --- a/tests/linux/i-dscomplete.exp +++ b/tests/linux/i-dscomplete.exp @@ -22,14 +22,18 @@ $ echo "//'BIG.DATA.SET1 'BIG.DATA.SET1' 'BIG.DATA.SET10' 'BIG.DATA.SET100' 'BIG.DATA.SET101' 'BIG.DATA.SET102' 'BIG.DATA.SET103' 'BIG.DATA.SET104' 'BIG.DATA.SET105' 'BIG.DATA.SET106' 'BIG.DATA.SET107' 'BIG.DATA.SET108' 'BIG.DATA.SET109' -'BIG.DATA.SET11' 'BIG.DATA.SET110' 'BIG.DATA.SET111' 'BIG.DATA.SET12' +'BIG.DATA.SET11' 'BIG.DATA.SET110' 'BIG.DATA.SET111' 'BIG.DATA.SET112' +'BIG.DATA.SET113' 'BIG.DATA.SET114' 'BIG.DATA.SET115' 'BIG.DATA.SET116' +'BIG.DATA.SET117' 'BIG.DATA.SET118' 'BIG.DATA.SET119' 'BIG.DATA.SET12' 'BIG.DATA.SET13' 'BIG.DATA.SET14' 'BIG.DATA.SET15' 'BIG.DATA.SET16' ... and 3 more $ echo "//'BIG.DATA.SET1 'BIG.DATA.SET1' 'BIG.DATA.SET10' 'BIG.DATA.SET100' 'BIG.DATA.SET101' 'BIG.DATA.SET102' 'BIG.DATA.SET103' 'BIG.DATA.SET104' 'BIG.DATA.SET105' 'BIG.DATA.SET106' 'BIG.DATA.SET107' 'BIG.DATA.SET108' 'BIG.DATA.SET109' -'BIG.DATA.SET11' 'BIG.DATA.SET110' 'BIG.DATA.SET111' 'BIG.DATA.SET12' +'BIG.DATA.SET11' 'BIG.DATA.SET110' 'BIG.DATA.SET111' 'BIG.DATA.SET112' +'BIG.DATA.SET113' 'BIG.DATA.SET114' 'BIG.DATA.SET115' 'BIG.DATA.SET116' +'BIG.DATA.SET117' 'BIG.DATA.SET118' 'BIG.DATA.SET119' 'BIG.DATA.SET12' 'BIG.DATA.SET13' 'BIG.DATA.SET14' 'BIG.DATA.SET15' 'BIG.DATA.SET16' ... and 3 more $ echo "//'BIG.DATA.SET1 diff --git a/tests/run.sh b/tests/run.sh index 4df543f..ba51b18 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -62,9 +62,9 @@ esac # links, not shell scripts: a script found on PATH loses its stdin pipe # inside a z/OS spawn-script. if [ "$platform" = zos ]; then - # /etc/profile exports these for every login; the tests start from the - # state the manual describes, where only `set -o` puts them there. - unset _BPX_SHAREAS _BPX_SPAWN_SCRIPT + # /etc/profile and zopen export these; the tests start from the state + # the manual describes, where only `set -o` or the test sets them. + unset _BPX_SHAREAS _BPX_SPAWN_SCRIPT _TAG_REDIR_IN _TAG_REDIR_OUT _TAG_REDIR_ERR mkdir -p "$work/gnu" for t in sleep wc sort tr od; do g=$(command -v "g$t") && ln -s "$g" "$work/gnu/$t" |
