diff options
author | Mattias Andrée <maandree@kth.se> | 2016-03-30 20:29:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-03-30 20:29:09 +0200 |
commit | 8e47c389e81dd32e020d3739a3d9439beaad37d6 (patch) | |
tree | f13c99b666fa8f8236ff88de10d211c80bc2142b /cksum-test/test | |
parent | add printenv test (diff) | |
download | base-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.gz base-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.bz2 base-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.xz |
some improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'cksum-test/test')
-rwxr-xr-x | cksum-test/test | 6 |
1 files changed, 3 insertions, 3 deletions
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 |