Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 262) sorted by relevance

1234567891011

/busybox-1.35.0/shell/hush_test/hush-read/
Dread_ifs.right1 test 1: .a. .b. .c.
2 test 2: .a. .b. .c.
3 test 3: .a. .. .b,c.
4 test 4: .a. .. .b,c.
5 test 5: .a. .. .c.
6 test 6: .a. .. .c. .d.
7 test 7: .a. .. .b,c,d , ,.
8 test 8: .. .a. .b. .c.
9 test 9: .a. .b. .c. ..
10 test A: .. .a. .. .b. .c.
Dread_REPLY.right1 test 1: | abc1 def |
2 test 2: | \abc2 d\ef |
3 test 3: |abc3 def|
4 test 4: |\abc4 d\ef|
Dread_ifs.tests1 printf 'a\t\tb\tc\n' | ( IFS=$(printf "\t") read a b c; echo "test 1: .$a. .$b. .$c." )
2 printf 'a\t\tb\tc\n' | ( IFS=$(printf " \t") read a b c; echo "test 2: .$a. .$b. .$c." )
3 printf 'a,,b,c\n' | ( IFS="," read a b c; echo "test 3: .$a. .$b. .$c." )
4 printf 'a,,b,c\n' | ( IFS=" ," read a b c; echo "test 4: .$a. .$b. .$c." )
5 printf 'a ,, c\n' | ( IFS=" ," read a b c; echo "test 5: .$a. .$b. .$c." )
6 printf 'a ,, c d\n' | ( IFS=" ," read a b c d; echo "test 6: .$a. .$b. .$c. .$d." )
7 printf ' a,,b,c,d , ,\n' | ( IFS=" ," read a b c; echo "test 7: .$a. .$b. .$c." )
8 printf '\t,\ta\t,\tb\tc' | ( IFS=$(printf " \t,") read a b c d; echo "test 8: .$a. .$b. .$c. .$…
9 printf '\t\ta\t,\tb\tc' | ( IFS=$(printf " \t,") read a b c d; echo "test 9: .$a. .$b. .$c. .$…
10 printf '\t,\ta\t,,\tb\tc' | ( IFS=$(printf " \t,") read a b c d e; echo "test A: .$a. .$b. .$c. .$…
Dread_REPLY.tests1 echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" )
2 echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" )
3 echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" )
4 echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" )
Dread_t.tests6 { sleep 2; echo 'test'; } | (read -t 1 reply; echo ">$reply<")
7 # >test<
9 # >test<
10 { sleep 1; echo 'test'; } | (read -t 2 reply; echo ">$reply<")
/busybox-1.35.0/shell/ash_test/ash-read/
Dread_ifs.right1 test 1: .a. .b. .c.
2 test 2: .a. .b. .c.
3 test 3: .a. .. .b,c.
4 test 4: .a. .. .b,c.
5 test 5: .a. .. .c.
6 test 6: .a. .. .c. .d.
7 test 7: .a. .. .b,c,d , ,.
8 test 8: .. .a. .b. .c.
9 test 9: .a. .b. .c. ..
10 test A: .. .a. .. .b. .c.
Dread_REPLY.right1 test 1: | abc1 def |
2 test 2: | \abc2 d\ef |
3 test 3: |abc3 def|
4 test 4: |\abc4 d\ef|
Dread_ifs.tests1 printf 'a\t\tb\tc\n' | ( IFS=$(printf "\t") read a b c; echo "test 1: .$a. .$b. .$c." )
2 printf 'a\t\tb\tc\n' | ( IFS=$(printf " \t") read a b c; echo "test 2: .$a. .$b. .$c." )
3 printf 'a,,b,c\n' | ( IFS="," read a b c; echo "test 3: .$a. .$b. .$c." )
4 printf 'a,,b,c\n' | ( IFS=" ," read a b c; echo "test 4: .$a. .$b. .$c." )
5 printf 'a ,, c\n' | ( IFS=" ," read a b c; echo "test 5: .$a. .$b. .$c." )
6 printf 'a ,, c d\n' | ( IFS=" ," read a b c d; echo "test 6: .$a. .$b. .$c. .$d." )
7 printf ' a,,b,c,d , ,\n' | ( IFS=" ," read a b c; echo "test 7: .$a. .$b. .$c." )
8 printf '\t,\ta\t,\tb\tc' | ( IFS=$(printf " \t,") read a b c d; echo "test 8: .$a. .$b. .$c. .$…
9 printf '\t\ta\t,\tb\tc' | ( IFS=$(printf " \t,") read a b c d; echo "test 9: .$a. .$b. .$c. .$…
10 printf '\t,\ta\t,,\tb\tc' | ( IFS=$(printf " \t,") read a b c d e; echo "test A: .$a. .$b. .$c. .$…
Dread_REPLY.tests1 echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" )
2 echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" )
3 echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" )
4 echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" )
Dread_t.tests6 { sleep 2; echo 'test'; } | (read -t 1 reply; echo ">$reply<")
7 # >test<
9 # >test<
10 { sleep 1; echo 'test'; } | (read -t 2 reply; echo ">$reply<")
/busybox-1.35.0/shell/hush_test/hush-leak/
Dleak_argv1.tests3 while test $i != X; do
13 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
14 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
15 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
16 if test $i = 1111111111111111111111111111111111111111111114; then i=5; fi
17 if test $i = 1111111111111111111111111111111111111111111115; then i=6; fi
18 if test $i = 1111111111111111111111111111111111111111111116; then i=7; fi
19 if test $i = 1111111111111111111111111111111111111111111117; then i=8; fi
20 if test $i = 1111111111111111111111111111111111111111111118; then i=9; fi
21 if test $i = 1111111111111111111111111111111111111111111119; then i=a; fi
[all …]
/busybox-1.35.0/shell/hush_test/hush-z_slow/
Dleak_var.tests3 while test $i != X; do
20 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
21 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
22 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
23 if test $i = 1111111111111111111111111111111111111111111114; then i=5; fi
24 if test $i = 1111111111111111111111111111111111111111111115; then i=6; fi
25 if test $i = 1111111111111111111111111111111111111111111116; then i=7; fi
26 if test $i = 1111111111111111111111111111111111111111111117; then i=8; fi
27 if test $i = 1111111111111111111111111111111111111111111118; then i=9; fi
28 if test $i = 1111111111111111111111111111111111111111111119; then i=a; fi
[all …]
Dleak_var2.tests5 while test $i != X; do
11 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
12 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
13 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
14 if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
24 while test $i != X; do
30 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
31 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
32 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
33 if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
[all …]
/busybox-1.35.0/testsuite/mv/
Dmv-files-to-dir8 test -f there/file1
9 test -f there/file2
10 test -f there/dir1/file3
11 test -L there/link1
12 test xfile2 = x`readlink there/link1`
13 test ! -e file1
14 test ! -e file2
15 test ! -e link1
16 test ! -e dir1/file3
Dmv-files-to-dir-28 test -f there/file1
9 test -f there/file2
10 test -f there/dir1/file3
11 test -L there/link1
12 test xfile2 = x`readlink there/link1`
13 test ! -e file1
14 test ! -e file2
15 test ! -e link1
16 test ! -e dir1/file3
Dmv-refuses-mv-dir-to-subdir8 test -f there/file1
9 test -f there/file2
10 test -f there/dir1/file3
11 test -L there/link1
12 test xfile2 = x`readlink there/link1`
13 test ! -e file1
14 test ! -e file2
15 test ! -e link1
16 test ! -e dir1/file3
/busybox-1.35.0/testsuite/cp/
Dcp-a-files-to-dir9 test -f there/file1
10 test -f there/file2
11 test ! -s there/dir1/file3
12 test -L there/link1
13 test xfile2 = x`readlink there/link1`
14 test ! dir1/file3 -ot there/dir1/file3
15 test ! dir1/file3 -nt there/dir1/file3
Dcp-d-files-to-dir7 test -f there/file1
8 test -f there/file2
9 test ! -s there/file3
10 test -L there/link1
11 test xfile2 = x`readlink there/link1`
Dcp-files-to-dir7 test -f there/file1
8 test -f there/file2
9 test ! -s there/file3
10 test -f there/link1
/busybox-1.35.0/testsuite/date/
Ddate-R-works5 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
6 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
7 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
8 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
9 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
10 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
11 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
12 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true
Ddate-works4 test x"$dt" = x"OK"
8 test x"$dt" = x"01:02:00"
12 test x"$dt" = x"01:02:03"
16 test x"$dt" = x"Jan 2 03:04:00"
20 test x"$dt" = x"Jan 2 03:04:05"
24 test x"$dt" = x"Sat Jan 2 03:04:00"
28 test x"$dt" = x"Sat Jan 2 03:04:05"
32 test x"$dt" = x"Sat Jan 2 03:04:05"
38 #test x"$dt" = x"Jan 23 11:33:00"
42 test x"$dt" = x"Sun Jan 23 11:33:00"
[all …]
/busybox-1.35.0/docs/
Dunit-tests.txt1 Busybox unit test framework
4 This document describes what you need to do to write test cases using the
5 Busybox unit test framework.
15 Writing test cases
21 the functions they test. Test cases should be enclosed within an #if, and
23 the test curly brackets. If an assertion fails the test ends immediately, ie.
25 BBUNIT_ENDTEST is executed regardless of the test result. Here's an example:
46 Running the unit test suite
49 To run the tests you can either directly run 'busybox unit' or use 'make test'
50 to run both the unit tests (if compiled) and regular test suite.
/busybox-1.35.0/shell/hush_test/hush-misc/
Dexitcode2.tests2 cat >test.sh <<EOF
5 chmod +x test.sh
6 $THIS_SH ./test.sh
8 rm -f test.sh
/busybox-1.35.0/shell/ash_test/ash-misc/
Dexitcode2.tests2 cat >test.sh <<EOF
5 chmod +x test.sh
6 $THIS_SH ./test.sh
8 rm -f test.sh
/busybox-1.35.0/shell/hush_test/hush-parsing/
Dbkslash_eof2.tests1 printf 'echo "unterminated string\\' >test.tmp.sh
2 . ./test.tmp.sh
4 rm -f test.tmp.sh

1234567891011