Skip to content

Commit

Permalink
avoid readdir for testing arm due to qemu glibc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Mar 12, 2022
1 parent a069fad commit b2746ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions make_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ if [ -n "$RUNTEST" ]; then
(cd src/lib/ebus/test && make test_message && ./test_message) > test.txt || testdie "message"
(cd src/lib/ebus/test && make test_symbol && ./test_symbol) > test.txt || testdie "symbol"
fi
if [ "${ARCH#*arm}" = "$ARCH" ]; then
# only run on non-arm as crossbuild can't read some files
("$RELEASE/usr/bin/ebusd" -f -c src/lib/ebus/test -d /dev/null --log=all:debug --inject=stop 10fe0900040000803e/ > test.txt) || testdie "float conversion"
egrep "received update-read broadcast test QQ=10: 0\.25$" test.txt || testdie "float result"
fi
# note: this can't run on file system base when using qemu for arm 32bit and host is 64bit due to glibc readdir() inode 32 bit values (see https://bugs.launchpad.net/qemu/+bug/1805913), thus using test end point instead:
("$RELEASE/usr/bin/ebusd" -f -s -c https://cfg.ebusd.eu/test -d /dev/null --log=all:debug --inject=stop 10fe0900040000803e/ > test.txt) || testdie "float conversion"
egrep "received update-read broadcast test QQ=10: 0\.25$" test.txt || testdie "float result"
fi

echo
Expand Down

0 comments on commit b2746ec

Please sign in to comment.