ci: Update bfs to 3.1.3

This commit is contained in:
Tavian Barnes
2024-03-19 13:29:08 -04:00
parent 3626fe14f0
commit 5cbb3142e0
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ jobs:
with:
repository: tavianator/bfs
path: bfs
ref: '3.0.3'
ref: '3.1.3'
- name: Install `rust` toolchain
run: |
## Install `rust` toolchain
+4 -4
View File
@@ -13,7 +13,7 @@ cargo build --release
FIND=$(readlink -f target/release/find)
cd ..
make -C bfs -j "$(nproc)" bin/tests/{mksock,xtouch} USE_ONIGURUMA=
make -C bfs -j "$(nproc)" bin/tests/{mksock,xtouch} NOLIBS=y
# Run the GNU find compatibility tests by default
if test "$#" -eq 0; then
@@ -23,9 +23,9 @@ fi
LOG_FILE=bfs/tests.log
./bfs/tests/tests.sh --bfs="$FIND" "$@" | tee "$LOG_FILE" || :
PASS=$(sed -n "s/^tests passed: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
SKIP=$(sed -n "s/^tests skipped: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
FAIL=$(sed -n "s/^tests failed: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
PASS=$(sed -En 's|^\[PASS] *([0-9]+) / .*|\1|p' "$LOG_FILE")
SKIP=$(sed -En 's|^\[SKIP] *([0-9]+) / .*|\1|p' "$LOG_FILE")
FAIL=$(sed -En 's|^\[FAIL] *([0-9]+) / .*|\1|p' "$LOG_FILE")
# Default any missing numbers to zero (e.g. no tests skipped)
: ${PASS:=0}