Home
last modified time | relevance | path

Searched refs:test_time (Results 1 – 25 of 44) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/select/
Dselect01.c66 long test_time = 0; /* in usecs */ in main() local
75 test_time = ((lc % 2000) * 100000); /* 100 milli-seconds */ in main()
77 if (test_time > 1000000 * 60) in main()
78 test_time = test_time % (1000000 * 60); in main()
80 timeout.tv_sec = test_time / 1000000; in main()
81 timeout.tv_usec = test_time - (timeout.tv_sec * 1000000); in main()
88 lc, test_time, errno); in main()
93 test_time); in main()
Dselect02.c64 long test_time = 0; /* in usecs */ in main() local
73 test_time = ((lc % 2000) * 100000); /* 100 milli-seconds */ in main()
75 if (test_time > 1000000 * 60) in main()
76 test_time = test_time % (1000000 * 60); in main()
78 timeout.tv_sec = test_time / 1000000; in main()
79 timeout.tv_usec = test_time - (timeout.tv_sec * 1000000); in main()
93 test_time); in main()
Dselect03.c68 long test_time = 0; /* in usecs */ in main() local
78 test_time = ((lc % 2000) * 100000); /* 100 milli-seconds */ in main()
80 if (test_time > 1000000 * 60) in main()
81 test_time = test_time % (1000000 * 60); in main()
83 timeout.tv_sec = test_time / 1000000; in main()
84 timeout.tv_usec = test_time - (timeout.tv_sec * 1000000); in main()
98 test_time); in main()
/external/autotest/site_utils/
Ddut_status_unittest.py33 self.test_time = time.time()
36 with mock.patch('time.time', return_value=self.test_time):
48 end_time = int(self.test_time)
58 end_time = int(self.test_time)
71 end_time = int(self.test_time) - 3600
86 end_time = int(self.test_time)
93 start_time = int(self.test_time) - 5 * 3600
104 start_time = int(self.test_time) - 5 * 3600
115 end_time = int(self.test_time) - 5 * 3600
126 start_time = int(self.test_time) - 5 * 3600
/external/autotest/client/tests/netperf2/
Dwait_before_data.patch45 test_time = 0;
103 if (test_time) {
104 - tcp_stream_request->test_length = test_time;
105 + tcp_stream_request->test_length = test_time + wait_time_secs;
121 if (test_time) {
122 - tcp_rr_request->test_length = test_time;
123 + tcp_rr_request->test_length = test_time + wait_time_secs;
148 if (test_time) {
149 - udp_rr_request->test_length = test_time;
150 + udp_rr_request->test_length = test_time + wait_time_secs;
[all …]
Dnetperf2.py37 test_time = 15, stream_list = [1], test_specific_args = '', argument
66 self.test_time = test_time
96 test_time+300).rendezvous(*all)
104 self.client(server_ip, test, test_time, num_streams,
140 def client(self, server_ip, test, test_time, num_streams, argument
142 args = '-H %s -t %s -l %d' % (server_ip, test, test_time)
162 interval = max(1, test_time / 5)
174 out = utils.run_parallel(cmds, timeout=test_time + 500,
/external/ltp/testcases/kernel/device-drivers/locking/
Dlock_torture.sh32 test_time=60
42 t) test_time=$OPTARG ;;
70 est_time=$(echo "scale=2; $test_time * $TST_TOTAL / 60 " | bc)
75 tst_resm TINFO "$type: running $test_time sec..."
80 sleep $test_time
/external/ltp/testcases/kernel/device-drivers/rcu/
Drcu_torture.sh33 test_time=60
45 t) test_time=$OPTARG ;;
81 est_time=`echo "scale=2; $test_time * $TST_TOTAL / 60 " | bc`
86 tst_resm TINFO "$type: running $test_time sec..."
97 sleep $test_time
/external/autotest/client/site_tests/power_StatsCPUIdle/
Dpower_StatsCPUIdle.py14 def run_once(self, test_time=60): argument
18 time.sleep(test_time)
23 test_time, current_stats)
/external/autotest/client/site_tests/power_StatsCPUFreq/
Dpower_StatsCPUFreq.py14 def run_once(self, test_time=60): argument
23 time.sleep(test_time)
29 test_time, current_stats)
/external/autotest/client/site_tests/power_StatsUSB/
Dpower_StatsUSB.py14 def run_once(self, test_time=60): argument
23 time.sleep(test_time)
29 test_time, stats['active'])
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir09.c79 static int test_time = 5; variable
108 test_time = atoi(opt_test_time); in main()
179 if (test_time) { in runtest()
183 sleep(test_time); in runtest()
203 if (test_time) { in runtest()
204 sleep(test_time); in runtest()
/external/autotest/server/cros/network/
Dnetperf_runner.py448 def __init__(self, test_type, test_time=DEFAULT_TEST_TIME): argument
456 self.test_time = test_time
464 self.test_time)
546 self._config.test_time,
549 logging.info('Running netperf for %d seconds.', self._config.test_time)
550 timeout = self._config.test_time + self.NETPERF_COMMAND_TIMEOUT_MARGIN
Dconnection_worker.py274 if result.duration_seconds < self._config.test_time:
277 (result.duration_seconds, self._config.test_time))
/external/python/cpython2/Lib/test/
Dregrtest.py468 ok, test_time = result
469 test_times.append((test_time, test))
922 test_time = 0.0
948 test_time = time.time() - start_time
955 return RESOURCE_DENIED, test_time
960 return SKIPPED, test_time
967 return FAILED, test_time
976 return FAILED, test_time
979 return FAILED, test_time
981 return ENV_CHANGED, test_time
[all …]
/external/netperf/src/
Dnettest_unix.c379 if (test_time) { in send_stream_stream()
380 stream_stream_request->test_length = test_time; in send_stream_stream()
443 if (test_time) { in send_stream_stream()
447 start_timer(test_time); in send_stream_stream()
1187 if (test_time) { in send_stream_rr()
1188 stream_rr_request->test_length = test_time; in send_stream_rr()
1247 if (test_time) { in send_stream_rr()
1251 start_timer(test_time); in send_stream_rr()
1665 dg_stream_request->test_length = test_time; in send_dg_stream()
1706 start_timer(test_time); in send_dg_stream()
[all …]
Dnetsh.c148 test_time = 10, /* test ends by time */ variable
925 test_time = convert(optarg); in scan_cmd_line()
927 if (test_time < 0) { in scan_cmd_line()
928 test_bytes = -1 * test_time; in scan_cmd_line()
930 test_time = 0; in scan_cmd_line()
1319 test_time, in dump_globals()
Dnettest_bsd.c1916 if (test_time) { in send_tcp_stream()
1917 tcp_stream_request->test_length = test_time; in send_tcp_stream()
2011 if (test_time) { in send_tcp_stream()
2021 start_timer(test_time); in send_tcp_stream()
2635 if (test_time) { in send_tcp_maerts()
2636 tcp_maerts_request->test_length = test_time; in send_tcp_maerts()
2730 if (test_time) { in send_tcp_maerts()
2744 start_timer(test_time + PAD_TIME); in send_tcp_maerts()
2748 start_timer(test_time); in send_tcp_maerts()
3223 if (test_time) { in send_tcp_mss()
[all …]
Dnettest_sdp.c379 if (test_time) { in send_sdp_stream()
380 sdp_stream_request->test_length = test_time; in send_sdp_stream()
464 if (test_time) { in send_sdp_stream()
474 start_timer(test_time); in send_sdp_stream()
1076 if (test_time) { in send_sdp_maerts()
1077 sdp_maerts_request->test_length = test_time; in send_sdp_maerts()
1161 if (test_time) { in send_sdp_maerts()
1175 start_timer(test_time + PAD_TIME); in send_sdp_maerts()
1179 start_timer(test_time); in send_sdp_maerts()
2486 if (test_time) { in send_sdp_rr()
[all …]
Dnettest_dlpi.c592 if (test_time) { in send_dlpi_co_stream()
593 dlpi_co_stream_request->test_length = test_time; in send_dlpi_co_stream()
655 if (test_time) { in send_dlpi_co_stream()
659 start_timer(test_time); in send_dlpi_co_stream()
1486 if (test_time) { in send_dlpi_co_rr()
1487 dlpi_co_rr_request->test_length = test_time; in send_dlpi_co_rr()
1546 if (test_time) { in send_dlpi_co_rr()
1550 start_timer(test_time); in send_dlpi_co_rr()
2033 if (test_time) { in send_dlpi_cl_stream()
2034 dlpi_cl_stream_request->test_length = test_time; in send_dlpi_cl_stream()
[all …]
Dnettest_xti.c736 if (test_time) { in send_xti_tcp_stream()
737 xti_tcp_stream_request->test_length = test_time; in send_xti_tcp_stream()
844 if (test_time) { in send_xti_tcp_stream()
854 start_timer(test_time); in send_xti_tcp_stream()
1934 if (test_time) { in send_xti_tcp_rr()
1935 xti_tcp_rr_request->test_length = test_time; in send_xti_tcp_rr()
2028 if (test_time) { in send_xti_tcp_rr()
2032 start_timer(test_time); in send_xti_tcp_rr()
2636 xti_udp_stream_request->test_length = test_time; in send_xti_udp_stream()
2724 if (test_time) { in send_xti_udp_stream()
[all …]
Dnettest_sctp.c535 if (test_time) { in send_sctp_stream()
536 sctp_stream_request->test_length = test_time; in send_sctp_stream()
629 if (test_time) { in send_sctp_stream()
639 start_timer(test_time); in send_sctp_stream()
1658 if (test_time) { in send_sctp_stream_1toMany()
1659 sctp_stream_request->test_length = test_time; in send_sctp_stream_1toMany()
1767 if (test_time) { in send_sctp_stream_1toMany()
1777 start_timer(test_time); in send_sctp_stream_1toMany()
2754 if (test_time) { in send_sctp_rr()
2755 sctp_rr_request->test_length = test_time; in send_sctp_rr()
[all …]
/external/autotest/utils/
Dtest_importer.py278 test_time = { 'short' : 1,
302 test.test_time = int(data.time)
303 if test.test_time < 1 or test.time > 3:
308 if not test.test_time and str == type(data.time):
309 test.test_time = test_time[data.time.lower()]
/external/autotest/scheduler/
Dscheduler_models_unittest.py69 test_time = self.god.create_mock_function('time')
70 test_time.expect_call().and_return(33)
71 test_time.expect_call().and_return(34.01)
72 test_time.expect_call().and_return(34.99)
73 test_time.expect_call().and_return(35.01)
79 now_func=test_time) # time 33
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c637 int test_time = 0; in main() local
676 test_time = atoi(optarg)); in main()
696 set_timer(test_time); in main()

12