summaryrefslogtreecommitdiff
path: root/firmware/test (follow)
Commit message (Collapse)AuthorAge
* Limit more variables to file scopeThomas Jarosch2015-01-11
| | | | Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
* Add and adapt buflib shrink testsThomas Jarosch2015-01-03
| | | | Change-Id: I8aad86226c9c9b2c04727a3703941615638b3a49
* Add buflib test for maximum allocationThomas Jarosch2015-01-03
| | | | Change-Id: I9076b81d2fd2609ab3e9c8c5a087f8a387480f46
* Add and adapt buflib move testsThomas Jarosch2015-01-03
| | | | Change-Id: I57929f8f6a18cf9570f7358d48ad33f285b9ab0f
* Bring abroad second buflib testThomas Jarosch2015-01-03
| | | | | | | | | Interfaces with core_alloc_* instead of buflib directly. Provide UT_core_allocator_init() with a fixed buffer size for predictable results. Change-Id: I26a7b3101f7782063547940bded52d8202638394
* Enable printing of buflib allocationsThomas Jarosch2015-01-03
| | | | Change-Id: Ie446177931032d585f69e0651f05ff88ebc6e8ba
* Initial import of simple buflib unit testThomas Jarosch2015-01-03
| | | | | | | | | | | | | | | Taken from kugel's out-of-tree version: https://github.com/kugel-/buflib Needs some API adaptions. More test will follow. Note: The expected output needs an update since the in-tree version of buflib does buffer alignment and also progressed a bit. Still the tests are a very good start. Added Rockbox copyright header during import were needed. Change-Id: Ib39ec4301285f1dd53059b7bed0c0d6646297dc5
* Make fat test tool build again, and make its sector size configurable.Frank Gevaerts2014-01-03
| | | | Change-Id: Icfe7c4bb880c2f10918a7809f0f1f1c3838f6f48
* Cleanup MV/MD macros a little.Michael Sevakis2013-08-17
| | | | | | | | | | When using variadic macros there's no need for IF_MD2/IF_MV2 to deal with function parameters. IF_MD/IF_MV are enough. Throw in IF_MD_DRV/ID_MV_VOL that return the parameter if MD/MV, or 0 if not. Change-Id: I7605e6039f3be19cb47110c84dcb3c5516f2c3eb
* Fix test fat failing on 64bit system (second bit of FS#12646)Marcin Bukat2012-05-08
| | | | | | | | | | | | We use unsigned long/long in number of places in fat.c. When this is used to cast 32bit fat field it fails on 64bit systems. This patch introduces explicit types (uint16_t, uint32_t) only in places which influence how fat structures are interpreted. Change-Id: I0be44d0b355f9de20b4deb221698d095f55d4bde Reviewed-on: http://gerrit.rockbox.org/232 Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Reviewed-by: Torne Wuff <torne@wolfpuppy.org.uk>
* Fix fat test program not compiling (FS#12646).Marcin Bukat2012-05-08
| | | | | | | | | | | | | This changes the way creat() is wrapped around in native builds so more experienced devs should look at it. This patch forces to compile fat test in 32bit mode. Building natively on x86-64 works just fine but our fat code apparently can't deal with 64bit pointers/ints correctly. Change-Id: I000015094f7db957ce826c22672608cd419908b0 Reviewed-on: http://gerrit.rockbox.org/228 Reviewed-by: Thomas Martitz <kugel@rockbox.org>
* Add KEEP() around vectors in linker scripts.Boris Gjenero2011-12-18
| | | | | | | | | | | Vectors are needed by the CPU, but they don't need to be accessed by Rockbox. Without the KEEP(), they can be removed when liking with --gc-sections, creating a broken binary without any warnings. This tells the linker to not remove them. It should enable use of --gc-sections for all targets. When not using --gc-sections, this does not change the binary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657
* Added dummy autoconf.h for fat test.Björn Stenberg2011-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29457 a1c6a512-1295-4272-9138-f99709370657
* Made the fat test code compile again.Björn Stenberg2011-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657
* All kernel objects in code shared amongs targets (core, plugins, codecs) ↵Michael Sevakis2011-02-14
| | | | | | should be declared SHAREDBSS_ATTR as any core could potentially touch them even though they seem only to involve threads on one core. The exception is target code for particular CPUs where proper allocation is fixed. playlist.c was a little odd too-- use one mutex for the current playlist and a separate one for created playlists (still pondering the necessity of more than one). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29305 a1c6a512-1295-4272-9138-f99709370657
* Redo r28026 so that all .S files get the __ASSEMBLER__ define.Thomas Martitz2010-12-27
| | | | | | Patch by Thomas Jarosch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28913 a1c6a512-1295-4272-9138-f99709370657
* Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. ↵Marcin Bukat2010-10-31
| | | | | | FS#11189 by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz2010-05-06
| | | | | | the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
* Fix even more tabsAndree Buschmann2010-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24155 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#9545, storage cleanup and multi-driver supportFrank Gevaerts2009-07-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21933 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic fix: remove duplicate semicolonsBertrik Sikken2009-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20198 a1c6a512-1295-4272-9138-f99709370657
* Added keymaps for ZVM to plugins. Enabled zvm plugin building in ↵Björn Stenberg2008-12-04
| | | | | | tools/configure. FS#9605 by Adam Hogan and Robert Menes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19335 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Do core interrupt masking in a less general fashion and save some ↵Michael Sevakis2008-03-26
| | | | | | instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
* Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis2007-10-16
| | | | | | towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
* Removed second testBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11969 a1c6a512-1295-4272-9138-f99709370657
* More testing...Björn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11968 a1c6a512-1295-4272-9138-f99709370657
* Removed executable flagLinus Nielsen Feltzing2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11967 a1c6a512-1295-4272-9138-f99709370657
* Removed test textBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11965 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11964 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11963 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11962 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11961 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11960 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11959 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11958 a1c6a512-1295-4272-9138-f99709370657
* Reverted testBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11957 a1c6a512-1295-4272-9138-f99709370657
* Test commitBjörn Stenberg2007-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11955 a1c6a512-1295-4272-9138-f99709370657
* Replaced remaining '#pragma interrupt' with ↵Jens Arnold2006-04-26
| | | | | | __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
* 64 sectors are 64 sectors...Jens Arnold2005-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6313 a1c6a512-1295-4272-9138-f99709370657
* Display return code.Björn Stenberg2005-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6312 a1c6a512-1295-4272-9138-f99709370657
* rename() requires path on destination name nowBjörn Stenberg2005-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6311 a1c6a512-1295-4272-9138-f99709370657
* Don't create /dir in buildimageBjörn Stenberg2005-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6310 a1c6a512-1295-4272-9138-f99709370657
* FAT test case builds againBjörn Stenberg2005-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6309 a1c6a512-1295-4272-9138-f99709370657
* prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn2004-12-28
| | | | | | useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
* test code portable nowJörg Hohensohn2004-10-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5145 a1c6a512-1295-4272-9138-f99709370657
* Added rmdir, and changed atoi() to strtol(), to be able to enter hex values ↵Linus Nielsen Feltzing2004-04-16
| | | | | | as arguments git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4507 a1c6a512-1295-4272-9138-f99709370657
* Minor corrections for the mkdir function, and some cleanupLinus Nielsen Feltzing2004-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4506 a1c6a512-1295-4272-9138-f99709370657
* Implemented the mkdir() function in the FAT32 driverLinus Nielsen Feltzing2004-01-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4238 a1c6a512-1295-4272-9138-f99709370657