Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d30f74d
Changing shell command to add recognizing a TTY for stty tests
ChrisDryden Nov 19, 2025
90dec7d
Added additional comment explaining use of script
ChrisDryden Nov 24, 2025
ecf62f6
Explain the main purpose is to run the GNU stty tests
ChrisDryden Nov 24, 2025
24254b7
Fixing spelling mistake
ChrisDryden Nov 24, 2025
06fb853
Reverting CI.yml file
ChrisDryden Nov 24, 2025
4e8cc1e
Adding pty helper inside gnu test script
ChrisDryden Nov 24, 2025
9780d38
Update run-gnu-test.sh
ChrisDryden Nov 24, 2025
8724d33
Skip running on SELinux or other environments without script command
ChrisDryden Nov 24, 2025
df10360
Update run-gnu-test.sh
ChrisDryden Nov 24, 2025
e569e78
Update run-gnu-test.sh
ChrisDryden Nov 24, 2025
8912edd
Update run-gnu-test.sh
ChrisDryden Nov 24, 2025
906923a
Update GnuTests.yml
ChrisDryden Nov 24, 2025
4271af9
Update run-gnu-test.sh
ChrisDryden Nov 24, 2025
08ea89b
Update GnuTests.yml
ChrisDryden Nov 24, 2025
c10b1d0
Update GnuTests.yml
ChrisDryden Nov 24, 2025
b831fd2
Update GnuTests.yml
ChrisDryden Nov 28, 2025
f6439b2
Update GnuTests.yml
ChrisDryden Nov 29, 2025
e9357bc
Update GnuTests.yml
ChrisDryden Nov 29, 2025
a7c8984
Making the list of the tests to be run created dynamically and added …
ChrisDryden Dec 7, 2025
d8eccd3
Making the list of the tests to be run created dynamically and added …
ChrisDryden Dec 7, 2025
558a044
Splitting the running of the stty tests so that the mv test does not …
ChrisDryden Dec 7, 2025
f7f8a94
Fixing spelling mistake
ChrisDryden Dec 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update run-gnu-test.sh
  • Loading branch information
ChrisDryden committed Dec 7, 2025
commit 4271af9b04ee8d510aca1d76aa538d8dab339efb
23 changes: 1 addition & 22 deletions util/run-gnu-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,11 @@
# `run-gnu-test.bash [TEST]`
# run GNU test (or all tests if TEST is missing/null)

# spell-checker:ignore (env/vars) GNULIB SRCDIR SUBDIRS OSTYPE ; (utils) shellcheck gnproc greadlink setsid qfec
# spell-checker:ignore (env/vars) GNULIB SRCDIR SUBDIRS OSTYPE ; (utils) shellcheck gnproc greadlink

# ref: [How the GNU coreutils are tested](https://www.pixelbeat.org/docs/coreutils-testing.html) @@ <https://archive.is/p2ITW>
# * note: to run a single test => `make check TESTS=PATH/TO/TEST/SCRIPT SUBDIRS=. VERBOSE=yes`

# This is added to run the GNU tests inside a PTY as a controlling terminal
if [ "${INSIDE_TTY_WRAPPER:-0}" -ne 1 ]; then

export INSIDE_TTY_WRAPPER=1

# Build the command string with proper shell quoting
cmd="bash $(printf '%q' "$0")"
for arg in "$@"; do
cmd="$cmd $(printf '%q' "$arg")"
done

# New session + PTY; re-run this script inside it
if command -v script >/dev/null 2>&1; then
setsid script -qfec "$cmd" /dev/null
else
echo "script(1) not available; skipping this test"
fi
fi



# Use GNU version for make, nproc, readlink on *BSD
case "$OSTYPE" in
*bsd*)
Expand Down