Skip to content
Merged
Changes from 18 commits
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
36 changes: 35 additions & 1 deletion .github/workflows/GnuTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
TEST_FULL_SUMMARY_FILE: 'gnu-full-result.json'
TEST_ROOT_FULL_SUMMARY_FILE: 'gnu-root-full-result.json'
TEST_STTY_FULL_SUMMARY_FILE: 'gnu-stty-full-result.json'
TEST_SELINUX_FULL_SUMMARY_FILE: 'selinux-gnu-full-result.json'
TEST_SELINUX_ROOT_FULL_SUMMARY_FILE: 'selinux-root-gnu-full-result.json'

Expand Down Expand Up @@ -137,12 +138,32 @@ jobs:
path_GNU='gnu'
path_UUTILS='uutils'
bash "uutils/util/run-gnu-test.sh" run-root
### Run tests as root

- name: Extract testing info from individual logs (run as root) into JSON
shell: bash
run : |
path_UUTILS='uutils'
python uutils/util/gnu-json-result.py gnu/tests > ${{ env.TEST_ROOT_FULL_SUMMARY_FILE }}

- name: Run GNU stty tests
shell: 'script -q -e -c "bash {0}"'
run: |
## Run GNU root tests
path_GNU='gnu'
path_UUTILS='uutils'
bash "uutils/util/run-gnu-test.sh" tests/stty/stty-row-col
bash "uutils/util/run-gnu-test.sh" tests/stty/stty-pairs
bash "uutils/util/run-gnu-test.sh" tests/stty/stty-invalid
bash "uutils/util/run-gnu-test.sh" tests/stty/stty
bash "uutils/util/run-gnu-test.sh" tests/stty/bad-speed

- name: Extract testing info from individual logs (stty) into JSON
shell: bash
run : |
path_UUTILS='uutils'
python uutils/util/gnu-json-result.py gnu/tests > ${{ env.TEST_STTY_FULL_SUMMARY_FILE }}

### Upload artifacts
- name: Upload full json results
uses: actions/upload-artifact@v5
Expand All @@ -154,6 +175,12 @@ jobs:
with:
name: gnu-root-full-result
path: ${{ env.TEST_ROOT_FULL_SUMMARY_FILE }}
- name: Upload stty json results
uses: actions/upload-artifact@v5
with:
name: gnu-stty-full-result
path: ${{ env.TEST_STTY_FULL_SUMMARY_FILE }}

- name: Compress test logs
shell: bash
run : |
Expand Down Expand Up @@ -358,6 +385,13 @@ jobs:
name: gnu-root-full-result
path: results
merge-multiple: true
- name: Download stty json results
uses: actions/download-artifact@v6
with:
name: gnu-stty-full-result
path: results
merge-multiple: true

- name: Download selinux json results
uses: actions/download-artifact@v6
with:
Expand All @@ -380,7 +414,7 @@ jobs:
path_UUTILS='uutils'

json_count=$(ls -l results/*.json | wc -l)
if [[ "$json_count" -ne 4 ]]; then
if [[ "$json_count" -ne 5 ]]; then
echo "::error ::Failed to download all results json files (expected 4 files, found $json_count); failing early"
ls -lR results || true
exit 1
Expand Down
Loading