Lines Matching defs:env
144 # @param env The environment.
146 def test_utf8(exe, args, env, idx, bc=True):
149 env["BC_BANNER"] = "0"
151 child = pexpect.spawn(exe, args=args, env=env, encoding='utf-8', codec_errors='ignore')
185 # @param env The environment.
186 def test_utf8_0(exe, args, env, bc=True):
189 env["BC_BANNER"] = "0"
191 child = pexpect.spawn(exe, args=args, env=env, encoding='utf-8', codec_errors='ignore')
225 def test_utf8_1(exe, args, env, bc=True):
226 return test_utf8(exe, args, env, 0, bc)
229 def test_utf8_2(exe, args, env, bc=True):
230 return test_utf8(exe, args, env, 1, bc)
233 def test_utf8_3(exe, args, env, bc=True):
234 return test_utf8(exe, args, env, 2, bc)
237 def test_utf8_4(exe, args, env, bc=True):
238 return test_utf8(exe, args, env, 3, bc)
244 # @param env The environment.
245 def test_sigint_sigquit(exe, args, env):
248 env["BC_BANNER"] = "0"
250 child = pexpect.spawn(exe, args=args, env=env)
276 # @param env The environment.
277 def test_eof(exe, args, env):
280 env["BC_BANNER"] = "0"
282 child = pexpect.spawn(exe, args=args, env=env)
310 # @param env The environment.
311 def test_sigint(exe, args, env):
314 env["BC_BANNER"] = "0"
316 env["BC_SIGINT_RESET"] = "0"
317 env["DC_SIGINT_RESET"] = "0"
319 child = pexpect.spawn(exe, args=args, env=env)
344 # @param env The environment.
345 def test_sigtstp(exe, args, env):
352 env["BC_BANNER"] = "0"
354 child = pexpect.spawn(exe, args=args, env=env)
388 # @param env The environment.
389 def test_sigstop(exe, args, env):
392 env["BC_BANNER"] = "0"
394 child = pexpect.spawn(exe, args=args, env=env)
432 def test_bc_utf8_0(exe, args, env):
433 return test_utf8_0(exe, args, env, True)
436 def test_bc_utf8_1(exe, args, env):
437 return test_utf8_1(exe, args, env, True)
440 def test_bc_utf8_2(exe, args, env):
441 return test_utf8_2(exe, args, env, True)
444 def test_bc_utf8_3(exe, args, env):
445 return test_utf8_3(exe, args, env, True)
448 def test_bc_utf8_4(exe, args, env):
449 return test_utf8_4(exe, args, env, True)
455 # @param env The environment.
456 def test_bc1(exe, args, env):
458 child = pexpect.spawn(exe, args=args, env=env)
487 # @param env The environment.
488 def test_bc2(exe, args, env):
490 env["TERM"] = "dumb"
492 child = pexpect.spawn(exe, args=args, env=env)
520 # @param env The environment.
521 def test_bc3(exe, args, env):
523 child = pexpect.spawn(exe, args=args, env=env)
560 # @param env The environment.
561 def test_bc4(exe, args, env):
563 child = pexpect.spawn(exe, args=args, env=env)
603 # @param env The environment.
604 def test_bc5(exe, args, env):
606 child = pexpect.spawn(exe, args=args, env=env)
632 # @param env The environment.
633 def test_bc6(exe, args, env):
635 child = pexpect.spawn(exe, args=args, env=env)
665 # @param env The environment.
666 def test_bc7(exe, args, env):
668 child = pexpect.spawn(exe, args=args, env=env)
717 # @param env The environment.
718 def test_bc8(exe, args, env):
720 child = pexpect.spawn(exe, args=args, env=env)
748 # @param env The environment.
749 def test_bc9(exe, args, env):
751 child = pexpect.spawn(exe, args=args, env=env)
792 # @param env The environment.
793 def test_bc10(exe, args, env):
795 child = pexpect.spawn(exe, args=args, env=env)
836 # @param env The environment.
837 def test_bc11(exe, args, env):
839 child = pexpect.spawn(exe, args=args, env=env)
871 # @param env The environment.
872 def test_bc12(exe, args, env):
874 child = pexpect.spawn(exe, args=args, env=env)
904 def test_dc_utf8_0(exe, args, env):
905 return test_utf8_0(exe, args, env, False)
908 def test_dc_utf8_1(exe, args, env):
909 return test_utf8_1(exe, args, env, False)
912 def test_dc_utf8_2(exe, args, env):
913 return test_utf8_2(exe, args, env, False)
916 def test_dc_utf8_3(exe, args, env):
917 return test_utf8_3(exe, args, env, False)
920 def test_dc_utf8_4(exe, args, env):
921 return test_utf8_4(exe, args, env, False)
927 # @param env The environment.
928 def test_dc1(exe, args, env):
930 child = pexpect.spawn(exe, args=args, env=env)
958 # @param env The environment.
959 def test_dc2(exe, args, env):
961 env["TERM"] = "dumb"
963 child = pexpect.spawn(exe, args=args, env=env)
990 # @param env The environment.
991 def test_dc3(exe, args, env):
993 child = pexpect.spawn(exe, args=args, env=env)
1130 env = {
1141 env.update(os.environ)
1142 env.pop("BC_ENV_ARGS", None)
1143 env.pop("BC_LINE_LENGTH", None)
1144 env.pop("DC_ENV_ARGS", None)
1145 env.pop("DC_LINE_LENGTH", None)
1148 child = test_array[test_idx](exe[0], exe[1:], env)