atf_check() equivalent to test individual shell functions?
jmmv at freebsd.org
Fri Oct 24 23:18:41 UTC 2014
On Mon, Jul 28, 2014 at 2:00 AM, Julio Merino <jmmv at freebsd.org> wrote:
> On Sat, Jul 26, 2014 at 4:30 AM, Fabian Keil
> <freebsd-listen at fabiankeil.de> wrote:
>> What I'm looking for is something like this:
>> | atf_check_shell_function -s return:0 -o empty -e empty zogftw_string_ends_with "abc" "c"
> That could be interesting.
> However, note that atf_check currently is just a thin wrapper over the
> atf-check binary and that's the reason why you cannot feed shell
> functions into it. Implementing an atf_check_shell_function would
> involve rewriting atf-check's functionality in libatf-sh.subr.
Take a look at this email I just sent:
The new code I'm prototyping in that repository has atf-check
functionality that can be invoked on shell functions, so it would
solve your problem. (Don't start using that code just yet given that
it's not even merged into the master branch, but please let me know if
you'd be interested in it!)
More information about the freebsd-testing