/openbmc/qemu/tests/qtest/ |
H A D | test-arm-mptimer.c | 107 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot() 112 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot() 149 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause() 154 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause() 235 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_periodic_to_oneshot() 247 g_assert_cmpuint(timer_counter(), ==, 1); in test_timer_prescaler() 252 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_prescaler() 261 g_assert_cmpuint(timer_counter(), ==, 1); in test_timer_prescaler() 266 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_prescaler() 306 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_set_oneshot_counter_to_0() [all …]
|
H A D | sse-timer-test.c | 86 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 0); in test_counter() 87 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter() 118 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 0); in test_timer() 119 g_assert_cmpuint(readl(TIMER_BASE + CNTPCT_LO), ==, 0); in test_timer() 140 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 5); in test_timer() 149 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 1); in test_timer() 156 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 1); in test_timer() 158 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 5); in test_timer() 163 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 5); in test_timer() 166 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 1); in test_timer() [all …]
|
H A D | cmsdk-apb-watchdog-test.c | 42 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_watchdog() 49 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_watchdog() 54 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 1); in test_watchdog() 55 g_assert_cmpuint(readl(WDOG_BASE + WDOGVALUE), ==, 0); in test_watchdog() 64 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 1); in test_watchdog() 67 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_watchdog() 79 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_clock_change() 86 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_clock_change() 97 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 1); in test_clock_change() 108 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 1); in test_clock_change() [all …]
|
H A D | cmsdk-apb-dualtimer-test.c | 59 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer() 60 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 500); in test_dualtimer() 64 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 1); in test_dualtimer() 65 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 0); in test_dualtimer() 76 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer() 94 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 0); in test_prescale() 95 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 500); in test_prescale() 99 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 1); in test_prescale() 100 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 0); in test_prescale() 104 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 1000); in test_prescale() [all …]
|
H A D | max34451-test.c | 184 g_assert_cmpuint(value, ==, 3000 + i); in test_voltage() 210 g_assert_cmpuint(i2c_value, ==, 11); in test_rw_regs() 214 g_assert_cmpuint(i2c_value, ==, 1); in test_rw_regs() 218 g_assert_cmpuint(i2c_value, ==, 5000); in test_rw_regs() 222 g_assert_cmpuint(i2c_value, ==, 4000); in test_rw_regs() 226 g_assert_cmpuint(i2c_value, ==, 5500); in test_rw_regs() 230 g_assert_cmpuint(i2c_value, ==, 5600); in test_rw_regs() 234 g_assert_cmpuint(i2c_value, ==, 5700); in test_rw_regs() 238 g_assert_cmpuint(i2c_value, ==, 5800); in test_rw_regs() 242 g_assert_cmpuint(i2c_value, ==, 5900); in test_rw_regs() [all …]
|
H A D | cmsdk-apb-timer-test.c | 38 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 0); in test_timer() 39 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 500); in test_timer() 43 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 1); in test_timer() 44 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 0); in test_timer() 48 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 1000); in test_timer() 52 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 1); in test_timer() 54 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 0); in test_timer()
|
H A D | sdhci-test.c | 34 g_assert_cmpuint(v, ==, version); in check_specs_version() 51 g_assert_cmpuint(capab0, !=, vrand); in check_capab_readonly() 55 g_assert_cmpuint(capab1, !=, vrand); in check_capab_readonly() 56 g_assert_cmpuint(capab1, ==, capab0); in check_capab_readonly() 68 g_assert_cmpuint(capab_freq, ==, expec_freq); in check_capab_baseclock() 77 g_assert_cmpuint(capab_sdma, ==, supported); in check_capab_sdma() 88 g_assert_cmpuint(capab_v3, ==, 0); in check_capab_v3() 90 g_assert_cmpuint(capab_v3, ==, 0); in check_capab_v3()
|
H A D | isl_pmbus_vr-test.c | 160 g_assert_cmpuint(value, ==, 0); in raa228000_test_defaults() 163 g_assert_cmpuint(i2c_value, ==, 0); in raa228000_test_defaults() 166 g_assert_cmpuint(value, ==, 0); in raa228000_test_defaults() 226 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 231 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 236 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 241 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 246 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 251 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() 256 g_assert_cmpuint(value, ==, i2c_value); in test_tx_rx() [all …]
|
H A D | ufs-test.c | 275 g_assert_cmpuint(hce, ==, 1); in ufs_init() 298 g_assert_cmpuint(ucmdarg2, ==, 0); in ufs_init() 300 g_assert_cmpuint(is, ==, 0); in ufs_init() 408 g_assert_cmpuint(FIELD_EX32(cap, CAP, NUTRS), ==, 31); in ufstest_reg_read() 410 g_assert_cmpuint(FIELD_EX32(cap, CAP, 64AS), ==, 1); in ufstest_reg_read() 442 g_assert_cmpuint(buf[3], ==, 8); in ufstest_init() 444 g_assert_cmpuint(buf[9], ==, 0); in ufstest_init() 513 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, in ufstest_read_write() 516 g_assert_cmpuint(block_size, ==, 4096); in ufstest_read_write() 523 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, in ufstest_read_write() [all …]
|
H A D | erst-test.c | 109 g_assert_cmpuint(s->reg_barsize, ==, 16); in setup_vm_cmd() 141 g_assert_cmpuint(log_address_range, !=, 0ULL); in test_acpi_erst_basic() 142 g_assert_cmpuint(log_address_range, !=, ~0ULL); in test_acpi_erst_basic() 143 g_assert_cmpuint(log_address_range, !=, state.reg_bar.addr); in test_acpi_erst_basic() 144 g_assert_cmpuint(log_address_range, ==, state.mem_bar.addr); in test_acpi_erst_basic() 147 g_assert_cmpuint(log_address_length, ==, state.mem_barsize); in test_acpi_erst_basic() 150 g_assert_cmpuint(log_address_attr, ==, 0); in test_acpi_erst_basic()
|
H A D | npcm7xx_timer-test.c | 248 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5() 253 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps5() 259 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5() 286 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps0() 291 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps0() 297 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps0() 314 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps255() 319 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps255() 325 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps255() 377 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_pause_resume() [all …]
|
H A D | tmp105-test.c | 51 g_assert_cmpuint(value, ==, 0); in send_and_receive() 58 g_assert_cmpuint(value, ==, 20000); in send_and_receive() 65 g_assert_cmpuint(value, >=, 20938 - TMP105_PRECISION/2); in send_and_receive() 66 g_assert_cmpuint(value, <, 20938 + TMP105_PRECISION/2); in send_and_receive() 94 g_assert_cmpuint(value, >=, 20938 - TMP105_PRECISION/2); in send_and_receive() 95 g_assert_cmpuint(value, <, 20938 + TMP105_PRECISION/2); in send_and_receive()
|
H A D | ivshmem-test.c | 122 g_assert_cmpuint(barsize, ==, 256); in setup_vm_cmd() 129 g_assert_cmpuint(barsize, ==, TMPSHMSIZE); in setup_vm_cmd() 155 g_assert_cmpuint(in_reg(s, INTRMASK), ==, 0); in test_ivshmem_single() 156 g_assert_cmpuint(in_reg(s, INTRSTATUS), ==, 0); in test_ivshmem_single() 157 g_assert_cmpuint(in_reg(s, IVPOSITION), ==, 0); in test_ivshmem_single() 191 g_assert_cmpuint(data[i], ==, i); in test_ivshmem_single() 343 g_assert_cmpuint(ret, ==, nvectors); in test_ivshmem_server() 349 g_assert_cmpuint(ret, ==, 0); in test_ivshmem_server() 355 g_assert_cmpuint(ret, !=, 0); in test_ivshmem_server() 359 g_assert_cmpuint(ret, ==, 0); in test_ivshmem_server() [all …]
|
H A D | npcm7xx_pwm-test.c | 562 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), ==, 0); in test_init() 563 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), ==, 0); in test_init() 588 g_assert_cmpuint(pwm_read_ppr(qts, td), ==, ppr); in test_oneshot() 589 g_assert_cmpuint(pwm_read_csr(qts, td), ==, csr); in test_oneshot() 590 g_assert_cmpuint(pwm_read_pcr(qts, td), ==, pcr); in test_oneshot() 591 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), ==, 0); in test_oneshot() 592 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), ==, 0); in test_oneshot() 633 g_assert_cmpuint(pwm_read_ppr(qts, td), ==, ppr); in test_toggle() 634 g_assert_cmpuint(pwm_read_csr(qts, td), ==, csr); in test_toggle() 638 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), in test_toggle() [all …]
|
H A D | ds1338-test.c | 42 g_assert_cmpuint(bcd2bin(resp[4]), == , tm_ptr->tm_mday); in send_and_receive() 43 g_assert_cmpuint(bcd2bin(resp[5]), == , 1 + tm_ptr->tm_mon); in send_and_receive() 44 g_assert_cmpuint(2000 + bcd2bin(resp[6]), == , 1900 + tm_ptr->tm_year); in send_and_receive()
|
/openbmc/qemu/tests/unit/ |
H A D | test-x86-topo.c | 38 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 0); in test_topo_bits() 39 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 0); in test_topo_bits() 41 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 0); in test_topo_bits() 53 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 1); in test_topo_bits() 55 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits() 57 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits() 60 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 4); in test_topo_bits() 62 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 4); in test_topo_bits() 135 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, in test_topo_bits() 137 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, in test_topo_bits() [all …]
|
H A D | ptimer-test.c | 255 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 263 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 286 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 306 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 317 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 328 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 336 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 343 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 376 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() 388 g_assert_cmpuint(ptimer_get_count(ptimer), ==, in check_periodic() [all …]
|
H A D | test-int128.c | 57 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_and() 58 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_and() 73 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_add() 74 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_add() 103 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_neg() 104 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_neg() 115 g_assert_cmpuint(int128_nz(a), ==, tests[i] != 0); in test_nz() 183 g_assert_cmpuint(int128_getlo(r), ==, l); in test_rshift_one() 184 g_assert_cmpuint(int128_gethi(r), ==, h); in test_rshift_one() 214 g_assert_cmpuint(int128_getlo(r), ==, l); in test_urshift_one() [all …]
|
H A D | test-div128.c | 169 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_divu128() 170 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_divu128() 171 g_assert_cmpuint(rem, ==, tmp.remainder); in test_divu128() 185 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_divs128() 186 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_divs128() 187 g_assert_cmpuint(rem, ==, tmp.remainder); in test_divs128()
|
H A D | test-cutils.c | 43 g_assert_cmpuint(i, ==, 0); in test_parse_uint_null() 57 g_assert_cmpuint(i, ==, 0); in test_parse_uint_empty() 71 g_assert_cmpuint(i, ==, 0); in test_parse_uint_whitespace() 86 g_assert_cmpuint(i, ==, 0); in test_parse_uint_invalid() 101 g_assert_cmpuint(i, ==, 123); in test_parse_uint_trailing() 223 g_assert_cmpuint(i, ==, 0); in test_parse_uint_negative() 231 g_assert_cmpuint(i, ==, 0); in test_parse_uint_negative() 245 g_assert_cmpuint(i, ==, 0); in test_parse_uint_negzero() 258 g_assert_cmpuint(i, ==, 0); in test_parse_uint_full_trailing() 283 g_assert_cmpuint(i, ==, 0); in test_parse_uint_full_erange_junk() [all …]
|
H A D | test-shift128.c | 115 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_lshift() 116 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_lshift() 117 g_assert_cmpuint(tmp.overflow, ==, overflow); in test_lshift() 128 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_rshift() 129 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_rshift()
|
H A D | test-qemu-opts.c | 435 g_assert_cmpuint(opts_count(opts), ==, 0); in test_opts_parse() 439 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse() 445 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse() 452 g_assert_cmpuint(opts_count(opts), ==, 0); in test_opts_parse() 459 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse() 464 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse() 475 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse() 487 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse() 494 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse() 500 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse() [all …]
|
H A D | test-bitmap.c | 83 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() 84 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case() 93 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() 94 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case() 107 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() 108 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case()
|
H A D | test-keyval.c | 34 g_assert_cmpuint(qdict_size(qdict), ==, 0); in test_keyval_parse() 73 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse() 79 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse() 94 g_assert_cmpuint(qdict_size(qdict), ==, 2); in test_keyval_parse() 101 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse() 363 g_assert_cmpuint(u, ==, 0); in test_keyval_visit_number() 410 g_assert_cmpuint(u, ==, 42); in test_keyval_visit_number() 412 g_assert_cmpuint(u, ==, 42); in test_keyval_visit_number() 443 g_assert_cmpuint(sz, ==, 0); in test_keyval_visit_size() 534 g_assert_cmpuint(sz, ==, 8); in test_keyval_visit_size() [all …]
|
H A D | test-qdev-global-props.c | 83 g_assert_cmpuint(mt->prop1, ==, PROP_DEFAULT); in test_static_prop_subprocess() 118 g_assert_cmpuint(mt->prop1, ==, 200); in test_static_globalprop_subprocess() 119 g_assert_cmpuint(mt->prop2, ==, PROP_DEFAULT); in test_static_globalprop_subprocess() 236 g_assert_cmpuint(mt->prop1, ==, 101); in test_dynamic_globalprop_subprocess() 237 g_assert_cmpuint(mt->prop2, ==, 102); in test_dynamic_globalprop_subprocess() 239 g_assert_cmpuint(global_error, ==, 1); in test_dynamic_globalprop_subprocess() 282 g_assert_cmpuint(mt->prop1, ==, 102); in test_subclass_global_props() 283 g_assert_cmpuint(mt->prop2, ==, 104); in test_subclass_global_props()
|