Skip to content

Commit

Permalink
Merge pull request #334 from tavianator/bfs-3.1.3
Browse files Browse the repository at this point in the history
ci: Update bfs to 3.1.3
  • Loading branch information
sylvestre authored Mar 19, 2024
2 parents 3626fe1 + 5cbb314 commit ae280f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions util/build-bfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit ae280f7

Please sign in to comment.