diff options
author | Sami Kerola | 2014-02-17 00:54:21 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-17 14:16:21 +0100 |
commit | e55db6a86241a1a65d849b08fb2be2fa1dcf11b8 (patch) | |
tree | de8378ca16c7345683d37cdd4ff2b77adf10910e /tests/ts/isosize | |
parent | isosize: move file name printing after error determination (diff) | |
download | kernel-qcow2-util-linux-e55db6a86241a1a65d849b08fb2be2fa1dcf11b8.tar.gz kernel-qcow2-util-linux-e55db6a86241a1a65d849b08fb2be2fa1dcf11b8.tar.xz kernel-qcow2-util-linux-e55db6a86241a1a65d849b08fb2be2fa1dcf11b8.zip |
tests: add isosize --sectors and --divisor tests
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/isosize')
-rwxr-xr-x | tests/ts/isosize/print-size | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/ts/isosize/print-size b/tests/ts/isosize/print-size index 3c7325b71..d7cf783e4 100755 --- a/tests/ts/isosize/print-size +++ b/tests/ts/isosize/print-size @@ -18,7 +18,18 @@ TS_DESC="print-size" . $TS_TOPDIR/functions.sh ts_init "$*" -gzip -cd $TS_SELF/sample.iso.gz > $TS_OUTDIR/sample.iso +gzip -cd $TS_SELF/sample.iso.gz >| $TS_OUTDIR/sample.iso + +ts_init_subtest "default_output" $TS_CMD_ISOSIZE $TS_OUTDIR/sample.iso >| $TS_OUTPUT 2>&1 +ts_finalize_subtest + +ts_init_subtest "sector_output" +$TS_CMD_ISOSIZE --sectors $TS_OUTDIR/sample.iso &> $TS_OUTPUT 2>&1 +ts_finalize_subtest + +ts_init_subtest "divisor_output" +$TS_CMD_ISOSIZE --divisor=9 $TS_OUTDIR/sample.iso &> $TS_OUTPUT 2>&1 +ts_finalize_subtest ts_finalize |