summaryrefslogtreecommitdiff
path: root/Source/UnitTests
AgeCommit message (Collapse)Author
2014-05-29Remove the min/max functions in CommonFuncs.Lioncash
The algorithm header has the same functions.
2014-04-19BitFieldTest: fix warningsTillmann Karras
2014-04-14Merge pull request #271 from delroth/threading-stuffPierre Bourdon
Threading improvements: add Common::Flag and improve Common::Event
2014-04-14Common::Flag: Add support for TestAndSet + test by implementing basic spinlocks.Pierre Bourdon
2014-04-14UnitTests: Add a test for BitField behavior on odd structure alignment.Tony Wasserka
2014-04-14Common: Move the Event class to a separate file, and add tests for it. Fix ↵Pierre Bourdon
includes everywhere to match this.
2014-04-14Common: Add a 'Flag' class that is used to encapsulate a boolean flag ↵Pierre Bourdon
manipulated from several threads
2014-03-25UnitTests: Add tests for BitField.Tony Wasserka
2014-03-24MathUtilTest: add test for FlushToZeroTillmann Karras
2014-03-17Tests: fix signed/unsigned comparison warningTillmann Karras
2014-03-09clang-modernize -add-overrideTillmann Karras
2014-03-09MathUtil: fix IsQNAN()Tillmann Karras
The constants were one nibble too short and the lower 51 bits don't actually have to be zero.
2014-03-09MMIOTest: fix sign warningTillmann Karras
2014-03-09Add more tests for Common and Core/MMIOPierre Bourdon
2014-03-03UnitTests: ensure the Binaries/Tests directory exists before linking.Pierre Bourdon
2014-03-03Unittests: Always use GTest from Externals (recommended way from GTest FAQ).Pierre Bourdon
2014-03-03Do not hard fail when running 'make unittests' without GTest.Pierre Bourdon
2014-03-03Tests: Add more MMIO tests as an example.Pierre Bourdon
2014-03-03Add the infrastructure required to easily add unit tests and test it with a ↵Pierre Bourdon
very simple test file.
2014-02-23Remove Source/{Unittests,TestSuite}.Pierre Bourdon
These directories have been unused for several years and without any automated way of running the tests, they are pretty much useless. While they might be useful as a reference, in their present state they should not be kept in the repository.
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre
2013-12-31Convert all vcxproj files to UNIX line endingsJasper St. Pierre
2013-11-03Run code through the advanced tool 'sed' to remove trailing whitespace.comex
2013-05-22Adding unit test project to VS solutionJohn Peterson
because that inform about compile errors because of changes in function identity DSP unit test build fix
2012-03-25Remove scons-related filesShawn Hoffman
2011-12-14Let "make install" on OS X copy the bundle to /Applications.Maarten ter Huurne
The "dsptool" executable is not included in the bundle. The "tester" executable is not included in the bundle and it no longer installed on other platforms, since it is neither expected nor useful to install unit tests.
2011-07-18Add the DSPTool and UnitTests to the cmake build. They are optional, and to ↵Glenn Rice
enable them add -DDSTPTOOL and -DUNITTESTS to the cmake command line. Also, don't check to see if a directory is a wad file. They aren't. This removes an annoying and invalid debug assertion with the debug build. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7682 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-03Move SConscript files out from the Src subdirectories to beSoren Jorvang
consistent with the other build systems. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7282 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-03Prepare for the release of Xcode 4, which has working LTOSoren Jorvang
with static libraries. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7280 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-05LTCG (link time code gen) was off in some projects, so turn it off in all of ↵hrydgard
them so that the linker doesn't have to restart halfway through. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7084 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-05The compiler need not obey the static keyword, so to avoid linkerSoren Jorvang
problems, whole functions in .h files need to also be static in case they are included in several .cpp files. Also a few other minor LTO fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7082 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-04Turn back on unit tests in SCons.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7057 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-02Remove the global namespace a bit and remove some dead code.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7043 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-02Remove PluginSpecs.h. Merge the few needed enums from that file into ↵Glenn Rice
Common.h for now. I am up for suggestions on a better place for those. Fix frame dumping on linux. Make sure that on screen messages get cleared between games. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7039 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-30Move async checking for pressed keys into Host_GetKeyState()Soren Jorvang
and use wxGetKeyState on platforms other than Windows. I am not sure if wxGetKeyState is unreliable on Windows or if the use of GetAsyncKeyState() is simply historical, but for now I've left the Windows call in there just in case. This does mean that Host_GetKeyState() is currently only valid for the small set of keycodes that overlap between wx and Win32, one of which is VK_TAB/WXK_TAB. Anyway, please test wxGetKeyState on Windows and remove the ifdef if it works, so we can extend it to the remaining hotkeys. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6988 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-29Try to fix Windows build.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6968 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-29Core and DSPCore now have mutual dependencies, which breaks theSoren Jorvang
assumption on the part of many linkers that static libraries make up a DAG, so merge libdspcore into libcore. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6967 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-28Some preliminary cleanup of the global namespace for LTO.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6942 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-29Core/DSPCore: Changed g_dsp._r back to g_dsp.r. Removed the check*Excludepierre
functions accidentally added. Fixed the jitted ar register arithmetic. Added a CMakeList.txt for the UnitTests, but did not add the subdirectory to Source/CMakeLists.txt. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6687 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-29Compile fix for Unittests.j4ck.fr0st
A lot of tests are failing right now, not sure yet if this is caused by the recent reg changes or other stuff (at least broken according to tests: iar, subarn, addarn, 'ir, 'nr, 'l, 's, 'sn, 'ln, 'lsn, 'lsm, 'lsnm, 'sl etc - err, most/all that use increase/decrease) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6683 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-10StringUtil cleanup. Nothing seems broken.Jordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6367 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-07Core/DSPCore: Make Jit read from coefficient ROM when told to do so,pierre
change the unit test to catch this bug if it turns up again and two more zeroWriteBackLog() calls. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6356 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-31Core/DSPCore: Extended opcode handling fixespierre
* Make writeToBackLog private to DSPIntExtOps.cpp (JIT variants of 'l and 'ln are disabled and broken as is) * Make zeroing of the backlog conditional on doing an interpreter fallback and do it at a few more places * Fix selection of cleanup for extended opcodes. * Fix the DSP unit tests to correctly emit the function prolog/epilog (else EBX wouldn't be saved) * Add a few more DSP unit tests git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6325 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-22Build but don't install the dsptool/tester/MemcardManager toolsSoren Jorvang
which aren't really useful to typical users. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5935 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-20Fix the global build on linux.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5923 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-20Some pathnames are used both by SCons and cpp which can be a bit tricky.Soren Jorvang
Should revisit and make the distinction more explicit. Put the Data and Sys directories under Resources in the OS X app bundle. Construct config.h (now lower-case to avoid confusion with other Config.h instances in the tree) in the root. One tiny step towards a read-only and cross-buildable source tree. Some minor bits of non-Linux Unix portability. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5921 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-19Get rid of a number of unnecessary env.Clones.Soren Jorvang
Use SCons' convenient # shorthand for the root of our tree. Also various minor cleanup of SConscripts. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5915 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-16include the MP compiler option, which will allow for faster compiling + some ↵luisr142004
minorly stuff :p git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5882 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-10Simplify the SCons build:Soren Jorvang
On OS X, build all code as Objective-C(++). Centralize framework handling. Cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5645 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-03Warp back to 5578. Sorry for the lost changes, please re-apply. Reason: ↵hrydgard
5579 is a complete disaster. Not only does it change tons of files to switch to a new and non-working (it doesn't parse my ini files, at least) ini parser, it also reshuffles a lot of code and removes a plugin. The latter part is fine, but doing these two major switches in one revision, one of which is broken, is completely unacceptable. I said to merge tiny changes, not massive reworkings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5589 8ced0084-cf51-0410-be5f-012b33b47a6e