Re: [PATCH] tst_test.sh: Replace GNU word boundary \b with \< in grep
Petr Vorel <[email protected]>
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <20260630080916.GA225459@pevik> |
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 -- Mailing list info: https://lists.linux.it/listinfo/ltp