summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core
AgeCommit message (Collapse)Author
2025-11-27Disable PatchAllowlistTest if USE_RETRO_ACHIEVEMENTS is OFFJoshua Vandaële
This fixes a build error when `-DENABLE_TESTS=ON` and `-DUSE_RETRO_ACHIEVEMENTS=OFF` are both set together, since AchievementManager is also behind an ifdef.
2025-06-29CoreTiming: Fix unsafe usage of m_globals.global_timer in ScheduleEvent from ↵Jordan Woyak
non-CPU thread.
2025-06-08Merge pull request #13676 from ↵JMC47
LillyJadeKatrin/retroachievements-allowlist-test-improvements RetroAchievements: Updated PatchAllowlistTest to generate new allowlist
2025-05-21RetroAchievements: Updated PatchAllowlistTest to generate new allowlistLillyJadeKatrin
Refactors the PatchAllowlistTest to streamline the experience for developers. Instead of a textual description of what needs to change in ApprovedInis.json for RetroAchievements compatibility, the test will now generate a replacement file and instruct the coder where to copy it in their local branch, and what to update APPROVED_LIST_HASH to. The result should be easier and more instructive for developers to make changes, while still maintaining that allowed codes cannot be added or modified without recompiling Dolphin. As ApprovedInis.json no longer needs to be user-readable for this process, it no longer contains titles or pretty formatting and as such is updated in this commit, hash included.
2025-05-18Merge pull request #13672 from ↵Jordan Woyak
tygyh/UnitTests/Remove-redundant-template-type-specifiers UnitTests: Remove redundant template type specifers
2025-05-18Merge pull request #13668 from tygyh/UnitTests/Core/Make-parameters-constantJordan Woyak
UnitTests/Core: Make parameters constant
2025-05-16UnitTests: Remove redundant template type specifersDr. Dystopia
2025-05-16Merge pull request #13666 from ↵Jordan Woyak
tygyh/UnitTests/PowerPC-Use-constant-functions-variables-parameters UnitTests/PowerPC: Use constant functions, variables and parameters
2025-05-16UnitTests/Core: Remove unused includesDr. Dystopia
2025-05-16UnitTests/Core: Make parameters constantDr. Dystopia
2025-05-16UnitTests/PowerPC: Use constant functions, variables and parametersDr. Dystopia
2025-05-09Merge pull request #10766 from xperia64/dsp_format_funJMC47
DSP accelerator improvements
2025-05-07Merge pull request #13572 from ↵Jordan Woyak
tygyh/UnitTests-Remove-redundant-virtual-specifier UnitTests: Remove redundant `virtual` specifier
2025-05-07Merge pull request #13569 from tygyh/UnitTests-Use-constexprJordan Woyak
UnitTests: Use `constexpr`
2025-04-25Use correct exceptions for d3 reads/writesxperia64
2025-04-25Fix DSPAcceleratorTestxperia64
2025-04-23UnitTests: Remove redundant `virtual` specifierDr. Dystopia
2025-04-23UnitTests: Use `constexpr`Dr. Dystopia
2025-04-23UnitTests: Rename lambda parameters which hide previous declarationsDr. Dystopia
2025-01-20Merge pull request #13204 from LillyJadeKatrin/retroachievements-allow-batchJosJuice
Gecko/AR Batch Approval
2025-01-06Fix several minor warningsSintendo
2024-12-10Add ReadVerified testing to PatchAllowlistTestLillyJadeKatrin
New code adds a test failure if there's a Patches/Gecko/AR_Retroachievements_Verified code that doesn't appear to actually exist in the file. This will catch if the allowed patch is formatted wrong, which I found happening several times already due to not realizing that the patch author's name would need to be omitted.
2024-11-29Add Gecko and AR codes to the Patch Allowlist TestLillyJadeKatrin
2024-10-19DolphinQt: JIT Widget Refreshmitaclaw
Fulfilling a certain six-year-old todo.
2024-10-19JITs: Add GetMemoryStats Functionmitaclaw
Using the updated rangeset library
2024-10-19JITs: Add EraseSingleBlock Functionmitaclaw
2024-10-10Modernize `std::count` with rangesmitaclaw
2024-08-15Use 'contains' methodmitaclaw
2024-07-07Add Unit Test for Patch AllowlistLillyJadeKatrin
This unit test compares ApprovedInis.json with the contents of the GameSettings folder to verify that every patch marked allowed for use with RetroAchievements has a hash in ApprovedInis.json. If not, that hash is reported in the test logs so that the hash may be updated more easily.
2024-05-03Replace Common::BitCast with std::bit_castPokechu22
2024-03-23DivUtils: Add unsigned division magic functionBram Speeckaert
Takes the logic from Jit64 and moves it into DivUtils, so it can be reused by other backends as well.
2024-01-31Migrate SConfig::bWii to System.Admiral H. Curtiss
2024-01-12Core/HW/MMIO: Pass System through Read() and Write().Admiral H. Curtiss
2023-12-16JitArm64: Use enum class for LogicalImm size parameterJosJuice
This should prevent issues like the one fixed in the previous commit from happening again.
2023-11-28JitArm64: Use LSL+CLS for classifying floatsJosJuice
This is a little trick I came up with that lets us restructure our float classification code so we can exit earlier when the float is normal, which is the case more often than not. First we shift left by 1 to get rid of the sign bit, and then we count the number of leading sign bits. If the result is less than 10 (for doubles) or 7 (for floats), the float is normal. This is because, if the float isn't normal, the exponent is either all zeroes or all ones.
2023-11-28Remove _M_X86 in favour of _M_X86_64Zopolis4
2023-11-05Skylanders: Improve figure data view and generationMandar1jn
Co-authored-by: deReeperJosh <joshua@dereeper.co.nz>
2023-08-29PageFaultTest: Use GTEST_SKIP instead of early returnDentomologist
Using GTEST_SKIP instead of just returning from the function shows that a test was skipped in the test summary. If GTEST_SKIP is called the rest of the function won't be run, just like with the return. GTEST_SKIP wasn't available until gtest 1.10, and we updated to 1.12 in 597f8f1b874bf93854ae178795c55117f680e457.
2023-08-17UnitTests: Declare as CPU thread when using CPUThreadConfigCallbackJosJuice
This fixes a bunch of DEBUG_ASSERTs in the unit tests.
2023-07-14UnitTests: Enable cluster check in FileSystemTest.GetDirectoryStats.Admiral H. Curtiss
2023-04-09PowerPC: Refactor to class, move to System.Admiral H. Curtiss
2023-04-05UnitTests: Avoid ppcState global.Admiral H. Curtiss
2023-03-26JitInterface: Convert m_jit to unique_ptr.Admiral H. Curtiss
2023-03-26JitInterface: Refactor to class, move to System.Admiral H. Curtiss
2023-03-25JitBase: Avoid System::GetInstance() and ppcState.Admiral H. Curtiss
2023-03-21Common: Move FPU-related helpers into Common namespaceLioncash
Makes these utilities' namespace consistent with the majority of the Common library.
2023-02-22use std-provided randomness for JitArm64 unittestsShawn Hoffman
decreases runtime significantly and lessens dependency on mbedtls
2023-01-27PowerPC: Move a few functions to PowerPCState.Admiral H. Curtiss
2022-11-27CoreTiming: Store Globals in CoreTimingManager.Admiral H. Curtiss
2022-11-27CoreTiming: Refactor to class.Admiral H. Curtiss