[LTP] [PATCH] tst_test.sh: Replace GNU word boundary \b with \< in grep
Petr Vorel
pvorel@suse.cz
Tue Jun 30 10:09:16 CEST 2026
Hi Terence, Wake,
> The regex word boundary extension '\b' is a GNU extension and is not
> supported by Toybox and lightweight POSIX regex implementations
> (such as Bionic libc), causing grep to fail with:
> grep: bad regex '^[^#]*\bTST_': trailing backslash (\)
Thanks, merged.
> Replace '\b' with '\<' to ensure shell tests run correctly on
> lightweight environments such as Android (Toybox).
Out of curiosity, in the end you plan to use LTP shell tests? Although skipped
tests did not mention any shell test, we did not expect you'd be running it.
FYI tst_test.sh (aka "new API") is being slowly replaced by new "shell loader"
API [2] (or tests are rewritten in C).
I also wonder if you use our new runner kirk already [3].
Kind regards,
Petr
[1] https://android.googlesource.com/platform/external/ltp/+/refs/heads/main/android/skipped-tests.txt
[2] https://linux-test-project.readthedocs.io/en/latest/developers/api_shell_tests.html
[3] https://github.com/linux-test-project/kirk
More information about the ltp
mailing list