mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Add CICD for busytest
This commit is contained in:
parent
8bafcbab7a
commit
0ac5dbe44d
2 changed files with 29 additions and 0 deletions
27
.github/workflows/CICD.yml
vendored
27
.github/workflows/CICD.yml
vendored
|
@ -154,6 +154,33 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: '-Awarnings'
|
RUSTFLAGS: '-Awarnings'
|
||||||
|
|
||||||
|
busybox_test:
|
||||||
|
name: Busybox test suite
|
||||||
|
runs-on: ${{ matrix.job.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
job:
|
||||||
|
- { os: ubuntu-latest }
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Install `rust` toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
default: true
|
||||||
|
profile: minimal # minimal component installation (ie, no documentation)
|
||||||
|
- name: "prepare busytest"
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
make prepare-busytest
|
||||||
|
- name: "run busybox testsuite"
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
bindir=$(pwd)/target/debug
|
||||||
|
cd tmp/busybox-*/testsuite
|
||||||
|
S=$(bindir=$bindir ./runtest) && printf "%s\n" "$S" || { printf "%s\n" "$S" | grep "FAIL:" | sed -e "s/FAIL: /::warning ::Test failure:/g" ; }
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
|
|
|
@ -279,6 +279,8 @@ $(BUILDDIR)/busybox: busybox-src build-uutils $(BUILDDIR)/.config
|
||||||
cp $(BUILDDIR)/coreutils $(BUILDDIR)/busybox; \
|
cp $(BUILDDIR)/coreutils $(BUILDDIR)/busybox; \
|
||||||
chmod +x $@;
|
chmod +x $@;
|
||||||
|
|
||||||
|
prepare-busytest: $(BUILDDIR)/busybox
|
||||||
|
|
||||||
ifeq ($(EXES),)
|
ifeq ($(EXES),)
|
||||||
busytest:
|
busytest:
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue