test-lib: Replace uses of $(expr ...) by POSIX shell features.
commitd5d9de1b10f478b57803f5f2868ed2334c84e09b
authorJohannes Sixt <j6t@kdbg.org>
Thu, 5 Feb 2009 19:59:27 +0000 (5 20:59 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 19 Mar 2009 20:47:14 +0000 (19 21:47 +0100)
treefb7da6d90109cf339eaf3bc8f46cc0f488b73bad
parent5b46a4285f3588eaa7e53d513025b28f9f5bfec7
test-lib: Replace uses of $(expr ...) by POSIX shell features.

In particular:

- Test case counting can be achieved by arithmetic expansion.

- The name of the test, e.g. t1234, can be computed with ${0%%} and ${0##}.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/test-lib.sh