summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-09-22 16:52:09 +0000
committermarcel <marcel@FreeBSD.org>2014-09-22 16:52:09 +0000
commit24ebed64d0c693f739f438ffb84c9dbfb377fe67 (patch)
tree9cb2674b0ab40502542795f4bd078b0f045678df /usr.bin
parent958f10bcdc11d50a48cd03045eacbe80b9d43d9f (diff)
downloadFreeBSD-src-24ebed64d0c693f739f438ffb84c9dbfb377fe67.zip
FreeBSD-src-24ebed64d0c693f739f438ffb84c9dbfb377fe67.tar.gz
Rename the tests to something more meaningful. I spent way too long
trying to get the test name right, failed, gave up and used a sequence number instead. When I realized it wasn't because of the number of underscores in the name that I really started to think. I didn't have braces around the variable names ... Thus: test_1 is now called apm_1x1_512_qcow, which gives you all you need to run mkimg by hand. Dumb-ass: marcel
Diffstat (limited to 'usr.bin')
-rwxr-xr-xusr.bin/mkimg/tests/mkimg.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/mkimg/tests/mkimg.sh b/usr.bin/mkimg/tests/mkimg.sh
index f1fa931..ed61ee0 100755
--- a/usr.bin/mkimg/tests/mkimg.sh
+++ b/usr.bin/mkimg/tests/mkimg.sh
@@ -140,20 +140,17 @@ rebase_body()
atf_init_test_cases()
{
- local B F G S nm nr
+ local B F G S nm
- nr=1
for G in $mkimg_geom_list; do
for B in $mkimg_blksz_list; do
for S in $mkimg_scheme_list; do
for F in $mkimg_format_list; do
- nm="test_$nr"
- # nm="$G_$B_$S_$F"
+ nm="${S}_${G}_${B}_${F}"
atf_test_case $nm
eval "${nm}_body() { mkimg_test $G $B $S $F; }"
mkimg_tests="${mkimg_tests} ${nm}"
atf_add_test_case $nm
- nr=$((nr+1))
done
done
done
OpenPOWER on IntegriCloud