Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- tests/expected/isosize/print-size | 1 - tests/expected/isosize/print-size-default_output | 1 + tests/expected/isosize/print-size-divisor_output | 1 + tests/expected/isosize/print-size-sector_output | 1 + tests/ts/isosize/print-size | 13 ++++++++++++- 5 files changed, 15 insertions(+), 2 deletions(-) delete mode 100644 tests/expected/isosize/print-size create mode 100644 tests/expected/isosize/print-size-default_output create mode 100644 tests/expected/isosize/print-size-divisor_output create mode 100644 tests/expected/isosize/print-size-sector_output diff --git a/tests/expected/isosize/print-size b/tests/expected/isosize/print-size deleted file mode 100644 index 3def437..0000000 --- a/tests/expected/isosize/print-size +++ /dev/null @@ -1 +0,0 @@ -515899392 diff --git a/tests/expected/isosize/print-size-default_output b/tests/expected/isosize/print-size-default_output new file mode 100644 index 0000000..3def437 --- /dev/null +++ b/tests/expected/isosize/print-size-default_output @@ -0,0 +1 @@ +515899392 diff --git a/tests/expected/isosize/print-size-divisor_output b/tests/expected/isosize/print-size-divisor_output new file mode 100644 index 0000000..ee214a6 --- /dev/null +++ b/tests/expected/isosize/print-size-divisor_output @@ -0,0 +1 @@ +57322154 diff --git a/tests/expected/isosize/print-size-sector_output b/tests/expected/isosize/print-size-sector_output new file mode 100644 index 0000000..dff3634 --- /dev/null +++ b/tests/expected/isosize/print-size-sector_output @@ -0,0 +1 @@ +sector count: 251904, sector size: 2048 diff --git a/tests/ts/isosize/print-size b/tests/ts/isosize/print-size index 312fdc1..277c124 100755 --- a/tests/ts/isosize/print-size +++ b/tests/ts/isosize/print-size @@ -20,7 +20,18 @@ ts_init "$*" ts_check_test_command "$TS_CMD_ISOSIZE" -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 -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html