From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id C25B738543A4; Fri, 13 Jan 2023 17:05:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C25B738543A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673629525; bh=wMUNDjqwxjn20xxUdixZzMJlguWn/ovvuOccqmsWotQ=; h=From:To:Subject:Date:From; b=LuJy+mUAufwRS7exuwTGRXPfMlg7yqs1JndM1eDaeZj8z9ss+U6UAnvt1oGFXwSwO fgQY/6I9HTxPAfNMR+VoxGUHZZflL1gBkNoabSy6nCLztVChifzlj4IcHLdOZmHAhD qzCpgCE1f7n5H7BWqfJiPgE+Im4WXLo4x20bK/fM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon Turney To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: CI: Run cygserver for tests X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 09654548228e797af199ece1a24fc505fb43ee85 X-Git-Newrev: 6072dcfc346f6d5409bb8324dec1d7e8e08c22ef Message-Id: <20230113170525.C25B738543A4@sourceware.org> Date: Fri, 13 Jan 2023 17:05:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D6072dcfc346= f6d5409bb8324dec1d7e8e08c22ef commit 6072dcfc346f6d5409bb8324dec1d7e8e08c22ef Author: Jon Turney Date: Thu Sep 1 14:07:26 2022 +0100 Cygwin: CI: Run cygserver for tests =20 Note that cygserver must be run using the same cygwin1.DLL as test programs, as they communicate over a named pipe whose name contains the 'installation key' (which is a hash of the cygwin1.dll's path). =20 We run cygserver via 'cmd' to avoid the special code which handles a cygwin parent process starting a cygwin child process, which assumes the same version of cygwin in both. Diff: --- .github/workflows/cygwin.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index ac167e748..10d0255ef 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -52,7 +52,8 @@ jobs: fail-fast: false matrix: include: - - pkgarch: x86_64 + - target: x86_64-pc-cygwin + pkgarch: x86_64 name: Windows native ${{ matrix.pkgarch }} =20 steps: @@ -105,6 +106,15 @@ jobs: make && make install && (cd */newlib; make info man) && - (cd */newlib; make install-info install-man) && - (cd */winsup; make check || true) + (cd */newlib; make install-info install-man) + shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}' + + # test + - name: Test Cygwin + run: >- + export PATH=3D/usr/bin:$(cygpath ${SYSTEMROOT})/system32 && + export MAKEFLAGS=3D-j$(nproc) && + cd build && + (export PATH=3D${{ matrix.target }}/winsup/testsuite/runtime:${PAT= H} && cmd /c $(cygpath -wa ${{ matrix.target }}/winsup/cygserver/cygserver)= &) && + (cd ${{ matrix.target }}/winsup; make check || true) shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'