Home
last modified time | relevance | path

Searched refs:TEST_ASSERT_EQ (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dtsc_msrs_test.c106 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC), val); in main()
107 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
112 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC), val); in main()
113 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
118 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC), val); in main()
119 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
126 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC), HOST_ADJUST + val); in main()
127 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
132 TEST_ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC), HOST_ADJUST + val); in main()
133 TEST_ASSERT_EQ(vcpu_get_msr(vcpu, MSR_IA32_TSC_ADJUST), UNITY * 123456); in main()
[all …]
H A Dxen_vmcall_test.c111 TEST_ASSERT_EQ(run->xen.type, KVM_EXIT_XEN_HCALL); in main()
112 TEST_ASSERT_EQ(run->xen.u.hcall.cpl, 0); in main()
113 TEST_ASSERT_EQ(run->xen.u.hcall.longmode, 1); in main()
114 TEST_ASSERT_EQ(run->xen.u.hcall.input, INPUTVALUE); in main()
115 TEST_ASSERT_EQ(run->xen.u.hcall.params[0], ARGVALUE(1)); in main()
116 TEST_ASSERT_EQ(run->xen.u.hcall.params[1], ARGVALUE(2)); in main()
117 TEST_ASSERT_EQ(run->xen.u.hcall.params[2], ARGVALUE(3)); in main()
118 TEST_ASSERT_EQ(run->xen.u.hcall.params[3], ARGVALUE(4)); in main()
119 TEST_ASSERT_EQ(run->xen.u.hcall.params[4], ARGVALUE(5)); in main()
120 TEST_ASSERT_EQ(run->xen.u.hcall.params[5], ARGVALUE(6)); in main()
H A Ddirty_log_page_splitting_test.c75 TEST_ASSERT_EQ(get_ucall(vcpu, NULL), UCALL_SYNC); in vcpu_worker()
182 TEST_ASSERT_EQ(stats_clear_pass[0].hugepages, 0); in run_test()
183 TEST_ASSERT_EQ(stats_clear_pass[0].pages_4k, total_4k_pages); in run_test()
184 TEST_ASSERT_EQ(stats_dirty_logging_enabled.hugepages, stats_populated.hugepages); in run_test()
186 TEST_ASSERT_EQ(stats_dirty_logging_enabled.hugepages, 0); in run_test()
187 TEST_ASSERT_EQ(stats_dirty_logging_enabled.pages_4k, total_4k_pages); in run_test()
195 TEST_ASSERT_EQ(stats_populated.pages_4k, stats_repopulated.pages_4k); in run_test()
196 TEST_ASSERT_EQ(stats_populated.pages_2m, stats_repopulated.pages_2m); in run_test()
197 TEST_ASSERT_EQ(stats_populated.pages_1g, stats_repopulated.pages_1g); in run_test()
H A Drecalc_apic_map_test.c60 TEST_ASSERT_EQ(pthread_create(&thread, NULL, race, vcpus[0]), 0); in main()
68 TEST_ASSERT_EQ(pthread_cancel(thread), 0); in main()
69 TEST_ASSERT_EQ(pthread_join(thread, NULL), 0); in main()
H A Dnested_exceptions_test.c248 TEST_ASSERT_EQ(events.flags & KVM_VCPUEVENT_VALID_PAYLOAD, in main()
250 TEST_ASSERT_EQ(events.exception.pending, true); in main()
251 TEST_ASSERT_EQ(events.exception.nr, SS_VECTOR); in main()
252 TEST_ASSERT_EQ(events.exception.has_error_code, true); in main()
253 TEST_ASSERT_EQ(events.exception.error_code, SS_ERROR_CODE); in main()
H A Dxapic_state_test.c68 TEST_ASSERT_EQ(get_ucall(vcpu, &uc), UCALL_SYNC); in ____test_icr()
69 TEST_ASSERT_EQ(uc.args[1], val); in ____test_icr()
76 TEST_ASSERT_EQ(icr, val & ~APIC_ICR_BUSY); in ____test_icr()
78 TEST_ASSERT_EQ(icr & ~APIC_ICR_BUSY, val & ~APIC_ICR_BUSY); in ____test_icr()
H A Dsync_regs_test.c186 TEST_ASSERT_EQ(pthread_create(&thread, NULL, racer, (void *)run), 0); in race_sync_regs()
204 TEST_ASSERT_EQ(pthread_cancel(thread), 0); in race_sync_regs()
205 TEST_ASSERT_EQ(pthread_join(thread, NULL), 0); in race_sync_regs()
H A Dexit_on_emulation_failure_test.c38 TEST_ASSERT_EQ(get_ucall(vcpu, NULL), UCALL_DONE); in main()
H A Dpmu_event_filter_test.c875 TEST_ASSERT_EQ(!!count, !!(bitmap & BIT(idx))); in __test_fixed_counter_bitmap()
879 TEST_ASSERT_EQ(!!count, !(bitmap & BIT(idx))); in __test_fixed_counter_bitmap()
888 TEST_ASSERT_EQ(!!count, !!(bitmap & BIT(idx))); in __test_fixed_counter_bitmap()
893 TEST_ASSERT_EQ(!!count, !(bitmap & BIT(idx))); in __test_fixed_counter_bitmap()
H A Dvmx_exception_with_invalid_guest_state.c53 TEST_ASSERT_EQ(setitimer(ITIMER_REAL, &timer, NULL), 0); in set_timer()
H A Dvmx_pmu_caps_test.c106 TEST_ASSERT_EQ(vcpu_get_msr(vcpu, MSR_IA32_PERF_CAPABILITIES), in test_guest_wrmsr_perf_capabilities()
/openbmc/linux/tools/testing/selftests/kvm/s390x/
H A Dcmma_test.c240 TEST_ASSERT_EQ(rc, -1); in test_get_cmma_basic()
241 TEST_ASSERT_EQ(errno_out, ENXIO); in test_get_cmma_basic()
250 TEST_ASSERT_EQ(rc, -1); in test_get_cmma_basic()
251 TEST_ASSERT_EQ(errno_out, EINVAL); in test_get_cmma_basic()
255 TEST_ASSERT_EQ(rc, 0); in test_get_cmma_basic()
256 TEST_ASSERT_EQ(errno_out, 0); in test_get_cmma_basic()
263 TEST_ASSERT_EQ(rc, -1); in test_get_cmma_basic()
264 TEST_ASSERT_EQ(errno_out, EINVAL); in test_get_cmma_basic()
271 TEST_ASSERT_EQ(vcpu->run->exit_reason, 13); in assert_exit_was_hypercall()
272 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, 4); in assert_exit_was_hypercall()
[all …]
H A Ddebug_test.c50 TEST_ASSERT_EQ(vcpu->run->psw_mask, new_psw[0]); in test_step_int()
51 TEST_ASSERT_EQ(vcpu->run->psw_addr, new_psw[1]); in test_step_int()
88 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_INSTRUCTION); in test_step_pgm_diag()
89 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa & 0xff00, IPA0_DIAG); in test_step_pgm_diag()
93 TEST_ASSERT_EQ(vcpu->run->psw_mask, new_psw[0]); in test_step_pgm_diag()
94 TEST_ASSERT_EQ(vcpu->run->psw_addr, new_psw[1]); in test_step_pgm_diag()
H A Dtprot.c195 TEST_ASSERT_EQ(uc.cmd, UCALL_SYNC); \
196 TEST_ASSERT_EQ(uc.args[1], __stage); \
H A Dmemop.c283 TEST_ASSERT_EQ(uc.cmd, UCALL_SYNC); \
284 TEST_ASSERT_EQ(uc.args[1], __stage); \
810 TEST_ASSERT_EQ(teid & teid_mask, 0); in test_termination()
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Daarch32_id_regs.c101 TEST_ASSERT_EQ(val, 0); in test_user_raz_wi()
110 TEST_ASSERT_EQ(val, 0); in test_user_raz_wi()
130 TEST_ASSERT_EQ(val, 0); in test_user_raz_invariant()
137 TEST_ASSERT_EQ(val, 0); in test_user_raz_invariant()
H A Dpage_fault_test.c320 TEST_ASSERT_EQ(addr, (uint64_t)args->hva); in uffd_generic_handler()
434 TEST_ASSERT_EQ(run->mmio.phys_addr, region->region.guest_phys_addr); in mmio_on_test_gpa_handler()
633 TEST_ASSERT_EQ(test->expected_events.uffd_faults, events.uffd_faults); in check_event_counts()
634 TEST_ASSERT_EQ(test->expected_events.mmio_exits, events.mmio_exits); in check_event_counts()
635 TEST_ASSERT_EQ(test->expected_events.fail_vcpu_runs, events.fail_vcpu_runs); in check_event_counts()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h56 #define TEST_ASSERT_EQ(a, b) \ macro
/openbmc/linux/tools/testing/selftests/kvm/
H A Ddirty_log_test.c791 TEST_ASSERT_EQ(sem_val, 0); in run_test()
793 TEST_ASSERT_EQ(sem_val, 0); in run_test()
H A Dmax_guest_memory_test.c58 TEST_ASSERT_EQ(get_ucall(vcpu, NULL), UCALL_DONE); in run_vcpu()
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c1001 TEST_ASSERT_EQ(guest_paddr, align_up(guest_paddr, backing_src_pagesz)); in vm_userspace_mem_region_add()