@@ -6,7 +6,7 @@ name: GnuTests
66# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
77# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
88# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
9- # spell-checker:ignore userns
9+ # spell-checker:ignore userns nodocs
1010
1111# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`
1212
4444 with :
4545 path : ' uutils'
4646 persist-credentials : false
47- - uses : dtolnay/rust-toolchain@master
48- with :
49- toolchain : stable
5047 - uses : Swatinem/rust-cache@v2
5148 with :
5249 workspaces : " ./uutils -> target"
@@ -207,12 +204,6 @@ jobs:
207204 with :
208205 path : ' uutils'
209206 persist-credentials : false
210- - uses : dtolnay/rust-toolchain@master
211- with :
212- toolchain : stable
213- - uses : Swatinem/rust-cache@v2
214- with :
215- workspaces : " ./uutils -> target"
216207 - name : Checkout code (GNU coreutils)
217208 run : (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
218209
@@ -233,19 +224,9 @@ jobs:
233224 lima ls -laZ /etc/selinux
234225 lima sudo sestatus
235226
236- # Ensure we're running in enforcing mode
237- lima sudo setenforce 1
238- lima getenforce
239-
240- # Create test files with SELinux contexts for testing
241- lima sudo mkdir -p /var/test_selinux
242- lima sudo touch /var/test_selinux/test_file
243- lima sudo chcon -t etc_t /var/test_selinux/test_file
244- lima ls -Z /var/test_selinux/test_file # Verify context
245227 - name : Install dependencies in VM
246228 run : |
247- lima sudo dnf -y update
248- lima sudo dnf -y install autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
229+ lima sudo dnf -y install --nodocs autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
249230 lima rustup-init -y --profile=minimal --default-toolchain stable
250231 - name : Copy the sources to VM
251232 run : |
@@ -267,8 +248,16 @@ jobs:
267248 lima bash -c "cd ~/work/uutils/ && echo 'Found SELinux tests:'; wc -l selinux-tests.txt"
268249 - name : Run GNU SELinux tests
269250 run : |
251+ # Ensure we're running in enforcing mode
270252 lima sudo setenforce 1
271253 lima getenforce
254+
255+ # Create test files with SELinux contexts for testing
256+ lima sudo mkdir -p /var/test_selinux
257+ lima sudo touch /var/test_selinux/test_file
258+ lima sudo chcon -t etc_t /var/test_selinux/test_file
259+ lima ls -Z /var/test_selinux/test_file # Verify context
260+
272261 lima cat /proc/filesystems
273262 lima bash -c "cd ~/work/uutils/ && bash util/run-gnu-test.sh \$(cat selinux-tests.txt)"
274263 - name : Extract testing info from individual logs into JSON
@@ -326,9 +315,6 @@ jobs:
326315 with :
327316 path : ' uutils'
328317 persist-credentials : false
329- - uses : dtolnay/rust-toolchain@master
330- with :
331- toolchain : stable
332318 - uses : Swatinem/rust-cache@v2
333319 with :
334320 workspaces : " ./uutils -> target"
@@ -386,7 +372,7 @@ jobs:
386372 path : ' uutils'
387373 persist-credentials : false
388374 - name : Retrieve reference artifacts
389- uses : dawidd6/action-download-artifact@v12
375+ uses : dawidd6/action-download-artifact@v14
390376 # ref: <https://github.com/dawidd6/action-download-artifact>
391377 continue-on-error : true # # don't break the build for missing reference artifacts (may be expired or just not generated yet)
392378 with :
0 commit comments