Home
last modified time | relevance | path

Searched refs:assertEqual (Results 1 – 25 of 87) sorted by relevance

1234

/test/vts/testcases/vts_selftest/test_framework/base_test/
DVtsSelfTestBaseTest.py42 asserts.assertEqual(len(command_results), 3, 'command result is empty')
44 asserts.assertEqual(
81 asserts.assertEqual(results[const.STDOUT][0].strip(),
89 asserts.assertEqual(results[const.STDOUT][0].strip(), 'hello')
90 asserts.assertEqual(results[const.STDOUT][1].strip(), 'world')
99 asserts.assertEqual(self.getUserConfigStr('a'), 'a')
103 asserts.assertEqual(self.getUserConfigStr('b'), 'b')
107 asserts.assertEqual(self.getUserConfigStr('c'), None)
111 asserts.assertEqual(self.getUserConfigStr('c', to_str=True), None)
115 asserts.assertEqual(self.getUserConfigInt('a'), 1)
[all …]
/test/vts/utils/python/common/
Dcmd_result_test.py49 self.assertEqual(self.res_single_no_error.stdout, 'stdout')
50 self.assertEqual(self.res_single_no_error.stderr, '')
51 self.assertEqual(self.res_single_no_error.returncode, 0)
52 self.assertEqual(self.res_single_no_error.stdouts[-1], 'stdout')
53 self.assertEqual(self.res_single_no_error.stderrs[-1], '')
54 self.assertEqual(self.res_single_no_error.returncodes[-1], 0)
58 self.assertEqual(self.res_multiple_no_error.stdout, 'stdout2')
59 self.assertEqual(self.res_multiple_no_error.stderr, '')
60 self.assertEqual(self.res_multiple_no_error.returncode, 0)
61 self.assertEqual(self.res_multiple_no_error.stdouts, ['stdout1', 'stdout2'])
[all …]
/test/vts/utils/python/hal/
Dhal_service_name_utils_unittest.py35 self.assertEqual([["s1/n1"]], comb3)
38 self.assertEqual([["s1/n1"], ["s1/n2"]], comb4)
41 self.assertEqual([["s1/n1"], ["s1/n2"]], comb5)
45 self.assertEqual([["s2/n3", "s1/n1"], ["s2/n3", "s1/n2"]], comb6)
49 self.assertEqual([["s2/n3", "s1/n1"], ["s2/n3", "s1/n2"],
54 self.assertEqual([["s1/n1"], ["s1/n2"]], comb8)
58 self.assertEqual([["s2/n1"], ["s2/n2"]], comb9)
75 self.assertEqual([["s1/n1"], ["s1/n2"]], comb4)
78 self.assertEqual(0, len(comb5))
82 self.assertEqual(0, len(comb6))
[all …]
/test/vts/testcases/host/shell/
DSampleShellTest.py40 asserts.assertEqual(len(results[const.STDOUT]), 1)
41 asserts.assertEqual(results[const.STDOUT][0].strip(), "/system/bin/ls")
42 asserts.assertEqual(results[const.EXIT_CODE][0], 0)
50 asserts.assertEqual(len(results[const.STDOUT]), self.REPEAT_COUNT)
52 asserts.assertEqual(results[const.STDOUT][index].strip(),
54 asserts.assertEqual(results[const.EXIT_CODE][index], 0)
62 asserts.assertEqual(len(results[const.STDOUT]), 1)
63 asserts.assertEqual(results[const.STDOUT][0].strip(),
65 asserts.assertEqual(results[const.EXIT_CODE][0], 0)
77 asserts.assertEqual(results[const.EXIT_CODE][0], 0)
[all …]
/test/framework/harnesses/host_controller/command_processor/
Dcommand_upload_test.py92 self.assertEqual(mock_pb2.build_id, "1234567")
93 self.assertEqual(mock_pb2.suite_name, "vts")
94 self.assertEqual(mock_pb2.suite_plan, "some_plan")
95 self.assertEqual(mock_pb2.suite_build_number, mock_pb2.build_id)
96 self.assertEqual(mock_pb2.build_system_fingerprint,
98 self.assertEqual(mock_pb2.build_vendor_fingerprint,
100 self.assertEqual(mock_pb2.repacked_image_path, ["{repack_path}"])
101 self.assertEqual(mock_pb2.schedule_config.manifest_branch,
103 self.assertEqual(mock_pb2.schedule_config.pab_account_id,
109 self.assertEqual(mock_test_sched_config_pb2.gsi_branch,
[all …]
/test/vts/utils/python/coverage/
Dgcno_parser_test.py62 self.assertEqual(name, summary.name)
63 self.assertEqual(ident, summary.ident)
64 self.assertEqual(src_file_name, summary.src_file_name)
65 self.assertEqual(first_line_number, summary.first_line_number)
78 self.assertEqual(len(func.blocks), n_blocks)
80 self.assertEqual(func.blocks[i].flag, 3 * i)
81 self.assertEqual(func.blocks[i].index, i)
106 self.assertEqual(
109 self.assertEqual(
111 self.assertEqual(func.blocks[i].entry_arcs[0].src_block.index,
[all …]
Dsancov_parser_test.py62 self.assertEqual(32, p._bitness)
63 self.assertEqual(values, s)
75 self.assertEqual(64, p._bitness)
76 self.assertEqual(values, s)
83 self.assertEqual(32, p.GetBitness())
90 self.assertEqual(64, p.GetBitness())
96 self.assertEqual(self.GOLDEN_EXPECTED_BITNESS, bitness)
97 self.assertEqual(self.GOLDEN_EXPECTED_OFFSETS, offsets)
/test/vts/utils/python/reporting/
Dreport_file_utils_test.py55 self.assertEqual(_report_file_util._flatten_source_dir, False)
56 self.assertEqual(_report_file_util._use_destination_date_dir, False)
57 self.assertEqual(_report_file_util._source_dir, None)
58 self.assertEqual(_report_file_util._destination_dir, None)
59 self.assertEqual(_report_file_util._url_prefix, None)
69 self.assertEqual(_report_file_util._flatten_source_dir, True)
70 self.assertEqual(_report_file_util._use_destination_date_dir, True)
71 self.assertEqual(_report_file_util._source_dir, None)
72 self.assertEqual(_report_file_util._destination_dir, "vts-log")
73 self.assertEqual(_report_file_util._url_prefix,
[all …]
/test/vti/test_serving/gae/webapp/src/utils/
Dmodel_util_test.py68 self.assertEqual(1, len(jobs))
83 self.assertEqual(1, parent_schedule.error_count)
84 self.assertEqual(1, parent_from_db.error_count)
95 self.assertEqual(1 + num, parent_schedule.error_count)
96 self.assertEqual(1 + num, parent_from_db.error_count)
108 self.assertEqual(2 + num, len(jobs))
113 self.assertEqual(1, len(ready_jobs))
119 self.assertEqual(1 + num, parent_schedule.error_count)
120 self.assertEqual(1 + num, parent_from_db.error_count)
125 self.assertEqual(2 + num, parent_schedule.error_count)
[all …]
/test/vti/test_serving/gae/webapp/src/endpoint/
Dbuild_info_test.py40 self.assertEqual(len(builds), 0)
52 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
54 self.assertEqual(len(builds), 1)
65 self.assertEqual(len(builds), 0)
77 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
79 self.assertEqual(len(builds), 1)
91 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
93 self.assertEqual(len(builds), 1)
104 self.assertEqual(len(builds), 0)
117 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
[all …]
Djob_queue_test.py94 self.assertEqual(response.return_code,
96 self.assertEqual(len(response.jobs), 1)
99 self.assertEqual(
103 self.assertEqual(
108 self.assertEqual(device.scheduling_status,
122 self.assertEqual(response.return_code,
126 self.assertEqual(len(jobs), 1)
127 self.assertEqual(jobs[0].status, Status.JOB_STATUS_DICT["leased"])
142 self.assertEqual(response.return_code,
146 self.assertEqual(len(jobs), 1)
[all …]
Dhost_info_test.py58 self.assertEqual(len(devices), 1)
61 self.assertEqual(devices[0].product, "error")
75 self.assertEqual(len(devices), 1)
77 self.assertEqual(devices[0].product, product)
87 self.assertEqual(len(devices), 1)
89 self.assertEqual(devices[0].product, product)
Dlab_info_test.py71 self.assertEqual(len(devices), 1)
72 self.assertEqual(devices[0].product, product)
82 self.assertEqual(len(devices), 1)
84 self.assertEqual(devices[0].product, "error")
126 self.assertEqual(len(devices), 1)
129 self.assertEqual(devices[0].product, "error")
132 self.assertEqual(set(devices[0].device_equipment),
/test/vts/utils/python/instrumentation/
Dtest_framework_instrumentation_test.py55 self.assertEqual(event.status, 2)
58 self.assertEqual(event.status, 2)
64 self.assertEqual(event.status, 1)
66 self.assertEqual(event.status, 2)
72 self.assertEqual(event.status, 1)
74 self.assertEqual(event.status, 2)
90 self.assertEqual(event.status, 1)
94 self.assertEqual(event.status, 3)
101 self.assertEqual(event.status, 3)
109 self.assertEqual(event.status, 1)
[all …]
/test/vts/testcases/host/shell_binary_crash_test/
DShellBinaryCrashTest.py44 asserts.assertEqual(len(results[const.STDOUT]), 2)
45 asserts.assertEqual(results[const.STDOUT][1].strip(), "")
47 asserts.assertEqual(results[const.EXIT_CODE][1], self.EXIT_CODE_CRASH)
59 asserts.assertEqual(len(results[const.STDOUT]), 2)
60 asserts.assertEqual(results[const.STDOUT][1].strip(), "")
63 asserts.assertEqual(results[const.EXIT_CODE][1],
78 asserts.assertEqual(len(results[const.STDOUT]), 1)
79 asserts.assertEqual(results[const.STDOUT][0].strip(),
81 asserts.assertEqual(results[const.EXIT_CODE][0], 0)
/test/vts/testcases/host/fmq_hidl_test/
DVtsHalTestsMsgqV1_0HostTest.py169 asserts.assertEqual(read_data, generateSequentialData(data_len))
193 asserts.assertEqual(self._sync_client.availableToRead(), 0)
209 asserts.assertEqual(self._sync_client.availableToWrite(), 0)
232 asserts.assertEqual(self._sync_client.availableToRead(),
235 asserts.assertEqual(write_data, read_data)
242 asserts.assertEqual(0, self._sync_client.availableToRead())
248 asserts.assertEqual(0, self._sync_client.availableToRead())
265 asserts.assertEqual(0, self._sync_client.availableToWrite())
286 asserts.assertEqual(self._sync_client.availableToRead(), 0)
302 asserts.assertEqual(write_data, total_read_data)
[all …]
/test/vts/testcases/codelab/hello_world/
DVtsCodelabHelloWorldTest.py38 asserts.assertEqual(results[const.STDOUT][0].strip(),
40 asserts.assertEqual(results[const.EXIT_CODE][0],
47 asserts.assertEqual(len(results[const.STDOUT]),
49 asserts.assertEqual(results[const.STDOUT][0].strip(), "hello")
50 asserts.assertEqual(results[const.STDOUT][1].strip(), "world")
51 asserts.assertEqual(results[const.EXIT_CODE][0], 0)
52 asserts.assertEqual(results[const.EXIT_CODE][1], 0)
/test/framework/harnesses/host_controller/
Dinvocation_thread_test.py80 self.assertEqual([command_attempt.EventType.ALLOCATION_FAILED],
82 self.assertEqual(["ALLOCATE_DEVICE"],
90 self.assertEqual([command_attempt.EventType.EXECUTE_FAILED],
92 self.assertEqual(["ALLOCATE_DEVICE",
105 self.assertEqual([command_attempt.EventType.CONFIGURATION_ERROR],
107 self.assertEqual(["ALLOCATE_DEVICE",
119 self.assertEqual([command_attempt.EventType.INVOCATION_STARTED,
124 self.assertEqual(["ALLOCATE_DEVICE",
Dconsole_test.py107 self.assertEqual(expected, output)
109 self.assertEqual(expected, output)
120 self.assertEqual(user, req.user)
121 self.assertEqual(cluster, req.cluster)
122 self.assertEqual(run_target, req.run_target)
123 self.assertEqual(command_line, req.command_line)
129 self.assertEqual("index name\n" "[ 0] host0\n", output)
141 self.assertEqual(expected, output)
143 self.assertEqual(expected, output)
178 self.assertEqual(self._console.device_image_info, {
[all …]
/test/vts-testcase/hal/sensors/V2_0/host/
DVtsHalSensorsV2_0HostTest.py59 asserts.assertEqual(sensors_types.Result.OK, 0)
60 asserts.assertEqual(sensors_types.Result.NO_MEMORY, -12)
61 asserts.assertEqual(sensors_types.Result.BAD_VALUE, -22)
62 asserts.assertEqual(sensors_types.Result.INVALID_OPERATION, -38)
68 asserts.assertEqual(sensors_types.SensorType.ACCELEROMETER, 1)
69 asserts.assertEqual(sensors_types.SensorType.MAGNETIC_FIELD, 2)
70 asserts.assertEqual(sensors_types.SensorType.GYROSCOPE, 4)
/test/vts-testcase/hal/sensors/V1_0/host/
DVtsHalSensorsV1_0HostTest.py59 asserts.assertEqual(sensors_types.Result.OK, 0)
60 asserts.assertEqual(sensors_types.Result.NO_MEMORY, -12)
61 asserts.assertEqual(sensors_types.Result.BAD_VALUE, -22)
62 asserts.assertEqual(sensors_types.Result.INVALID_OPERATION, -38)
68 asserts.assertEqual(sensors_types.SensorType.ACCELEROMETER, 1)
69 asserts.assertEqual(sensors_types.SensorType.MAGNETIC_FIELD, 2)
70 asserts.assertEqual(sensors_types.SensorType.GYROSCOPE, 4)
/test/vti/test_serving/gae/webapp/src/scheduler/
Dschedule_worker_test.py70 self.assertEqual(1, len(model.JobModel.query().fetch()))
76 self.assertEqual(Status.DEVICE_SCHEDULING_STATUS_DICT["reserved"],
113 self.assertEqual(schedules[0].test_name,
160 self.assertEqual(jobs[0].test_name, high_priority_schedule_test_name)
163 self.assertEqual(medium_original_priority_value - 1,
173 self.assertEqual(jobs[0].test_name, high_priority_schedule_test_name)
176 self.assertEqual(medium_original_priority_value - 2,
191 self.assertEqual(jobs[0].test_name, medium_priority_schedule_test_name)
194 self.assertEqual(schedule_medium.priority_value,
296 self.assertEqual(schedule1_l_original_priority_value - 1,
[all …]
/test/vts/runners/host/tcp_server/
Dcallback_server_test.py166 self.assertEqual(func_id, '0')
176 self.assertEqual(self._counter, prev_value + 1)
179 self.assertEqual(response_message.response_code, SysMsg_pb2.SUCCESS)
197 self.assertEqual(func_id, found_func_id)
203 self.assertEqual(self._counter, prev_value + 1)
206 self.assertEqual(response_message.response_code, SysMsg_pb2.SUCCESS)
220 self.assertEqual(self._counter, prev_value)
223 self.assertEqual(response_message.response_code, SysMsg_pb2.FAIL)
/test/vts/testcases/codelab/fmq_test/
DVtsCodelabFmqTest.py166 asserts.assertEqual(self._queue1_writer.getQuantumSize(), 2)
167 asserts.assertEqual(self._queue1_writer.getQuantumCount(), 2048)
168 asserts.assertEqual(self._queue1_writer.availableToWrite(), 2048)
169 asserts.assertEqual(self._queue1_reader.availableToRead(), 0)
177 asserts.assertEqual(self._queue4_writer.getQuantumCount(), 2048)
178 asserts.assertEqual(self._queue4_writer.availableToWrite(), 2048)
179 asserts.assertEqual(self._queue4_reader.availableToRead(), 0)
198 asserts.assertEqual(read_data, write_data)
242 asserts.assertEqual(write_data, read_data)
245 asserts.assertEqual(0, self._queue1_reader.availableToRead())
[all …]
/test/vts/utils/python/fuzzer/
Dcorpus_manager_test.py40 self.assertEqual(_corpus_manager.enabled, False)
50 self.assertEqual(_corpus_manager.enabled, True)
51 self.assertEqual(_corpus_manager._gcs_path, 'corpus/Pie/Pixel3_XL')
52 self.assertEqual(_corpus_manager._device_serial, 'HT1178BBZWQ')
297 self.assertEqual(
300 self.assertEqual(
304 self.assertEqual(
308 self.assertEqual(
315 self.assertEqual(
319 self.assertEqual(
[all …]

1234