This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH 2/4] tests: Add run-num-self.sh and run-readelf-self.sh tests.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 01 Aug 2012 14:29:36 -0700
- Subject: Re: [PATCH 2/4] tests: Add run-num-self.sh and run-readelf-self.sh tests.
> +for what_arg in "--debug-syms" "--defined-only" "--dynamic" "--extern-only"; do
> + for format_arg in "--format=bsd" "--format=sysv" "--format=posix"; do
> + for out_arg in "--numeric-sort" "--no-sort" "--reverse-sort"; do
Use '' instead of "" any place you can. Here there is really no need for
quoting at all.
Indent two spaces, not four.
> + for file in $self_test_files; do
> + testrun "$@" $file > /dev/null \
> + || { echo "*** failure in $@ $file"; exit_status=1; }
"$@" is special magic but $@ is just $* and it looks more normal
to use $* where you don't need "$@".
Indent two spaces, not four.
Otherwise looks fine modulo the typo in the commit topic line.
Thanks,
Roland