diff options
author | Ron Yorston <rmy@pobox.com> | 2021-12-27 08:21:55 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-12-27 08:21:55 +0000 |
commit | b15f68214da209b5b293039c09c00f490c0cc193 (patch) | |
tree | d644b5d9318b79cb1baa356cbb63318cc4872c05 /testsuite | |
parent | 1ee308c75f4720ee38be8e81ff8c9ed4c52670d4 (diff) | |
parent | 44075929a8b9c1861d15564fa6ac4562abb724d7 (diff) | |
download | busybox-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-x | testsuite/cryptpw.tests | 14 | ||||
-rwxr-xr-x | testsuite/printf.tests | 10 | ||||
-rwxr-xr-x | testsuite/sed.tests | 6 |
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 | ||
11 | testing "cryptpw des 12" \ | ||
12 | "cryptpw -m des QWErty '123456789012345678901234567890'" \ | ||
13 | '12MnB3PqfVbMA\n' "" "" | ||
14 | |||
15 | testing "cryptpw des 55" \ | ||
16 | "cryptpw -m des QWErty 55" \ | ||
17 | '55tgFLtkT1Y72\n' "" "" | ||
18 | |||
19 | testing "cryptpw des zz" \ | ||
20 | "cryptpw -m des QWErty zz" \ | ||
21 | 'zzIZaaXWOkxVk\n' "" "" | ||
22 | #SKIP= | ||
23 | |||
10 | optional USE_BB_CRYPT_SHA | 24 | optional USE_BB_CRYPT_SHA |
11 | testing "cryptpw sha256" \ | 25 | testing "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 | ||
146 | testing "printf treats leading 0 as flag" \ | ||
147 | "${bb}printf '%0*d\n' 2 1 2>&1; echo \$?" \ | ||
148 | "01\n""0\n" \ | ||
149 | "" "" | ||
150 | |||
151 | testing "printf handles multiple flags" \ | ||
152 | "${bb}printf '%0 d\n' 2 2>&1; echo \$?" \ | ||
153 | " 2\n""0\n" \ | ||
154 | "" "" | ||
155 | |||
146 | exit $FAILCOUNT | 156 | exit $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 | ||
402 | testing "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 | ||
404 | exit $FAILCOUNT | 410 | exit $FAILCOUNT |