Skip to content
Draft
Changes from all commits
Commits
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