aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-12-27 08:21:55 +0000
committerRon Yorston <rmy@pobox.com>2021-12-27 08:21:55 +0000
commitb15f68214da209b5b293039c09c00f490c0cc193 (patch)
treed644b5d9318b79cb1baa356cbb63318cc4872c05 /testsuite
parent1ee308c75f4720ee38be8e81ff8c9ed4c52670d4 (diff)
parent44075929a8b9c1861d15564fa6ac4562abb724d7 (diff)
downloadbusybox-w32-b15f68214da209b5b293039c09c00f490c0cc193.tar.gz
busybox-w32-b15f68214da209b5b293039c09c00f490c0cc193.tar.bz2
busybox-w32-b15f68214da209b5b293039c09c00f490c0cc193.zip
Merge busybox into merge
Fix merge conflict in coreutils/timeout.c.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/cryptpw.tests14
-rwxr-xr-xtestsuite/printf.tests10
-rwxr-xr-xtestsuite/sed.tests6
3 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/cryptpw.tests b/testsuite/cryptpw.tests
index 8ec476c9f..0dd91fe15 100755
--- a/testsuite/cryptpw.tests
+++ b/testsuite/cryptpw.tests
@@ -7,6 +7,20 @@
7 7
8# testing "description" "command" "result" "infile" "stdin" 8# testing "description" "command" "result" "infile" "stdin"
9 9
10#optional USE_BB_CRYPT
11testing "cryptpw des 12" \
12 "cryptpw -m des QWErty '123456789012345678901234567890'" \
13 '12MnB3PqfVbMA\n' "" ""
14
15testing "cryptpw des 55" \
16 "cryptpw -m des QWErty 55" \
17 '55tgFLtkT1Y72\n' "" ""
18
19testing "cryptpw des zz" \
20 "cryptpw -m des QWErty zz" \
21 'zzIZaaXWOkxVk\n' "" ""
22#SKIP=
23
10optional USE_BB_CRYPT_SHA 24optional USE_BB_CRYPT_SHA
11testing "cryptpw sha256" \ 25testing "cryptpw sha256" \
12 "cryptpw -m sha256 QWErty '123456789012345678901234567890'" \ 26 "cryptpw -m sha256 QWErty '123456789012345678901234567890'" \
diff --git a/testsuite/printf.tests b/testsuite/printf.tests
index 050edef71..728bbf4bf 100755
--- a/testsuite/printf.tests
+++ b/testsuite/printf.tests
@@ -143,4 +143,14 @@ testing "printf aborts on %r" \
143 "printf: %r: invalid format\n""1\n" \ 143 "printf: %r: invalid format\n""1\n" \
144 "" "" 144 "" ""
145 145
146testing "printf treats leading 0 as flag" \
147 "${bb}printf '%0*d\n' 2 1 2>&1; echo \$?" \
148 "01\n""0\n" \
149 "" ""
150
151testing "printf handles multiple flags" \
152 "${bb}printf '%0 d\n' 2 2>&1; echo \$?" \
153 " 2\n""0\n" \
154 "" ""
155
146exit $FAILCOUNT 156exit $FAILCOUNT
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 67ff87e93..2b78c9b12 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -399,6 +399,12 @@ testing "sed uses previous regexp" \
399 "" \ 399 "" \
400 "q\nw\ne\nr\n" 400 "q\nw\ne\nr\n"
401 401
402testing "sed ^ OR not^" \
403 "sed -e 's/^a\|b//g'" \
404 "ca\n" \
405 "" \
406 "abca\n"
407
402# testing "description" "commands" "result" "infile" "stdin" 408# testing "description" "commands" "result" "infile" "stdin"
403 409
404exit $FAILCOUNT 410exit $FAILCOUNT