On Tue, Nov 25, 2014 at 06:17:46PM -0800, Alex Wang wrote:
> This commit integrates the unit tests defined in
> utilities/ovs-command-compgen-test.bash into 'make check'.
> The tests will be skipped if the current shell is not
> '/bin/bash'.
> 
> Signed-off-by: Alex Wang <al...@nicira.com>

Did you consider using one of the bash built-in variables
(e.g. "$BASH_VERSION") to check whether we're running under bash?

This adds a number of m4 macros.  Sometimes it's more elegant to define
shell functions instead.  Did you think about that?

I'm not sure that "grep -A 1" and "tail -n+2" are portable in practice.
I'd want to find out whether *BSD support them, at least.

I think that these uses of m4_foreach can be written as shell "for"
statements.  If that's so, then it's probably better to write them in
shell because it is easier to read and keeps the generated testsuite a
little smaller (you don't get an extra copy for each variable
substitution).

Thanks,

Ben.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to