aboutsummaryrefslogtreecommitdiff
path: root/tests/truncate.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/truncate.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/truncate.test')
-rwxr-xr-xtests/truncate.test24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/truncate.test b/tests/truncate.test
index ee2b2bb8..1d19aa1b 100755
--- a/tests/truncate.test
+++ b/tests/truncate.test
@@ -5,24 +5,24 @@
#testing "name" "command" "result" "infile" "stdin"
SIZE='&& stat -c %s freep'
-testing "truncate 0" "truncate -s 0 freep $SIZE" "0\n" "" ""
-testing "truncate 12345" "truncate -s 12345 freep $SIZE" "12345\n" "" ""
-testing "truncate 1m" "truncate -s 1m freep $SIZE" "1048576\n" "" ""
-testing "truncate is sparse" "truncate -s 1g freep && stat -c %b freep" \
+testing "0" "truncate -s 0 freep $SIZE" "0\n" "" ""
+testing "12345" "truncate -s 12345 freep $SIZE" "12345\n" "" ""
+testing "1m" "truncate -s 1m freep $SIZE" "1048576\n" "" ""
+testing "is sparse" "truncate -s 1g freep && stat -c %b freep" \
"0\n" "" ""
-testing "truncate +" "truncate -s 1k freep && truncate -s +1k freep $SIZE" \
+testing "+" "truncate -s 1k freep && truncate -s +1k freep $SIZE" \
"2048\n" "" ""
-testing "truncate -" "truncate -s 4k freep && truncate -s -1k freep $SIZE" \
+testing "-" "truncate -s 4k freep && truncate -s -1k freep $SIZE" \
"3072\n" "" ""
-testing "truncate < hit" \
+testing "< hit" \
"truncate -s 5k freep && truncate -s \<4k freep $SIZE" "4096\n" "" ""
-testing "truncate < miss" \
+testing "< miss" \
"truncate -s 4k freep && truncate -s \<6k freep $SIZE" "4096\n" "" ""
-testing "truncate > hit" \
+testing "> hit" \
"truncate -s 3k freep && truncate -s \>4k freep $SIZE" "4096\n" "" ""
-testing "truncate > miss" \
+testing "> miss" \
"truncate -s 4k freep && truncate -s \>2k freep $SIZE" "4096\n" "" ""
-testing "truncate /" "truncate -s 7k freep && truncate -s /3k freep $SIZE" \
+testing "/" "truncate -s 7k freep && truncate -s /3k freep $SIZE" \
"6144\n" "" ""
-testing "truncate %" "truncate -s 7k freep && truncate -s %3k freep $SIZE" \
+testing "%" "truncate -s 7k freep && truncate -s %3k freep $SIZE" \
"9216\n" "" ""