Lines Matching full:test

4 # Test operation of the "if" shell command.
12 # The list of "if test" conditions to test.
21 ('test aaa = aaa', True),
22 ('test aaa = bbb', False),
24 ('test aaa != bbb', True),
25 ('test aaa != aaa', False),
27 ('test aaa < bbb', True),
28 ('test bbb < aaa', False),
30 ('test bbb > aaa', True),
31 ('test aaa > bbb', False),
33 ('test 123 -eq 123', True),
34 ('test 123 -eq 456', False),
36 ('test 123 -ne 456', True),
37 ('test 123 -ne 123', False),
39 ('test 123 -lt 456', True),
40 ('test 123 -lt 123', False),
41 ('test 456 -lt 123', False),
43 ('test 123 -le 456', True),
44 ('test 123 -le 123', True),
45 ('test 456 -le 123', False),
47 ('test 456 -gt 123', True),
48 ('test 123 -gt 123', False),
49 ('test 123 -gt 456', False),
51 ('test 456 -ge 123', True),
52 ('test 123 -ge 123', True),
53 ('test 123 -ge 456', False),
55 ('test -z ""', True),
56 ('test -z "aaa"', False),
58 ('test -n "aaa"', True),
59 ('test -n ""', False),
63 ('test ! aaa = aaa', False),
64 ('test ! aaa = bbb', True),
65 ('test ! ! aaa = aaa', True),
66 ('test ! ! aaa = bbb', False),
70 ('test aaa != aaa -o bbb != bbb', False),
71 ('test aaa != aaa -o bbb = bbb', True),
72 ('test aaa = aaa -o bbb != bbb', True),
73 ('test aaa = aaa -o bbb = bbb', True),
75 ('test aaa != aaa -a bbb != bbb', False),
76 ('test aaa != aaa -a bbb = bbb', False),
77 ('test aaa = aaa -a bbb != bbb', False),
78 ('test aaa = aaa -a bbb = bbb', True),
82 ('test ! aaa != aaa -o ! bbb != bbb', True),
83 ('test ! aaa != aaa -o ! bbb = bbb', True),
84 ('test ! aaa = aaa -o ! bbb != bbb', True),
85 ('test ! aaa = aaa -o ! bbb = bbb', False),
87 ('test ! ! aaa != aaa -o ! ! bbb != bbb', False),
88 ('test ! ! aaa != aaa -o ! ! bbb = bbb', True),
89 ('test ! ! aaa = aaa -o ! ! bbb != bbb', True),
90 ('test ! ! aaa = aaa -o ! ! bbb = bbb', True),
94 ('test -z "$ut_var_nonexistent"', True),
95 ('test -z "$ut_var_exists"', False),
122 """Test a single "if test" condition."""
131 # We might test this on real filesystems via UMS, DFU, 'save', etc.
136 """Test the "if test -e" shell command."""
147 expr = 'test -e hostfs - ' + test_file
155 expr = 'test -e hostfs - ' + test_file
160 expr = 'test -e hostfs - ' + test_file