From 8e47c389e81dd32e020d3739a3d9439beaad37d6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 30 Mar 2016 20:29:09 +0200 Subject: some improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- cksum-test/test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cksum-test') diff --git a/cksum-test/test b/cksum-test/test index 8387145..7a17fd0 100755 --- a/cksum-test/test +++ b/cksum-test/test @@ -19,7 +19,7 @@ report () multiple_files_order () { - $s $(seq 1 $N) | sed -e 's/[\t ]\+/ /g' | cut -d ' ' -f 3 > tmp1 + $s $(seq $N) | sed -e 's/[\t ]\+/ /g' | cut -d ' ' -f 3 > tmp1 < $algo cut -d ' ' -f 3 > tmp2 diff tmp1 tmp2 > /dev/null report $? "multiple_files_order" @@ -28,7 +28,7 @@ multiple_files_order () multiple_files_sum () { - $s $(seq 1 $N) | sed -e 's/[\t ]\+/ /g' | cut -d ' ' -f 1,2 | sort > tmp1 + $s $(seq $N) | sed -e 's/[\t ]\+/ /g' | cut -d ' ' -f 1,2 | sort > tmp1 < $algo cut -d ' ' -f 1,2 | sort > tmp2 diff tmp1 tmp2 > /dev/null report $? "multiple_files_sum" @@ -37,7 +37,7 @@ multiple_files_sum () multiple_files () { - $s $(seq 1 $N) > tmp1 + $s $(seq $N) > tmp1 diff tmp1 $algo > /dev/null report $? "multiple_files" rm tmp1 -- cgit v1.2.3-70-g09d2