Commit Graph

53 Commits

Author SHA1 Message Date
Rob McMullen
6e7497b3d3 Added bz2, xz containers, tests, sample data 2018-06-24 23:07:47 -07:00
Rob McMullen
1a7381b865 Classes no longer unnecessarily subclass from object, as in py3 it's the default 2018-06-24 17:20:32 -07:00
Rob McMullen
6b9cf6d4d2 Converted "from errors import *" to "from . import errors" 2018-06-24 12:10:59 -07:00
Rob McMullen
1968cd9717 Fixes to convert filenames to str rather than bytes 2018-06-23 22:05:35 -07:00
Rob McMullen
ab05cb1ae1 Changed start_addr to origin 2018-06-04 10:19:08 -07:00
Rob McMullen
017dd81734 Fixed tests for uuid type 2017-05-19 23:12:31 -07:00
Rob McMullen
8260774995 Fixed https://github.com/robmcmullen/omnivore/issues/209
* force unicode on uuid string conversion in py2
2017-05-18 22:48:45 -07:00
Rob McMullen
bdaa44755a Relaxed constraints for interleaving segments
* use size of smallest segment as size to interleave
* adjust downward if interleave factor not an integer multiple of size
2017-05-10 10:38:20 -07:00
Rob McMullen
8284ae23b3 Changed to floor division which works on both py2 and py3 2017-05-08 11:03:04 -07:00
Rob McMullen
c30f390fed All tests passing for python 3 2017-05-07 19:33:38 -07:00
Rob McMullen
841aa1dc9b WIP for py3 support 2017-05-07 18:58:10 -07:00
Rob McMullen
53bf63d506 Fixed kboot for py3 2017-05-07 14:13:48 -07:00
Rob McMullen
fa476b1eab Fixed cartridge for py3 2017-05-07 14:03:25 -07:00
Rob McMullen
bddae24cb1 Futurize --stage1 changes 2017-05-07 13:31:45 -07:00
Rob McMullen
f41f86c1b0 Changes to test_add_file to see why it's so slow
* profiling indicates that it's all the debug prints!
2017-05-07 09:58:29 -07:00
Rob McMullen
1e38dfb516 Added test_utils.py 2017-05-07 09:58:08 -07:00
Rob McMullen
5fcb646131 Added automatic pytest coverage annotated HTML report
* added automatic coverage branch warnings and ignorable statements
2017-05-07 09:26:09 -07:00
Rob McMullen
b3800e81ac Fixed test for segment start address 2017-05-06 22:41:03 -07:00
Rob McMullen
dc25b69d69 Added tests for binary file creation
* fixed return value mismatch in get_xex to create_executable_file_image
2017-05-03 12:00:34 -07:00
Rob McMullen
359e690b1c Added test cases for Atari enhanced density and double density disk images 2017-05-02 19:08:40 -07:00
Rob McMullen
3efb3d1afa Fixed segment resize that wasn't updating data/style attrs in DefaultSegment 2017-05-02 16:17:45 -07:00
Rob McMullen
a739b19cf2 Fixed comment test for change in get_comment_restore_data return value 2017-05-02 15:59:24 -07:00
Rob McMullen
77d11b9f78 Skip jsonpickle tests if jsonpickle not installed 2017-05-02 15:49:33 -07:00
Rob McMullen
053c7a773e Changed get_xex to return segments: root segment & list of sub-segments 2017-03-26 22:19:09 -07:00
Rob McMullen
6f29e6053a Added resizable segments 2017-03-22 22:34:21 -07:00
Rob McMullen
026417b295 Added better comment save/restore methods 2017-03-13 11:49:35 -07:00
Rob McMullen
f1b0f5ebac Added faster comment splitting
* added functions to copy a segment & its base so comments can be marked on the copy of the base and show up in the copy of the segment
2017-03-13 07:05:37 -07:00
Rob McMullen
afa9c9786a Fixed xex creation test 2017-03-12 21:48:13 -07:00
Rob McMullen
bdf0b67075 Fixed segment rawdata copy for non-indexed segments 2017-03-12 21:46:24 -07:00
Rob McMullen
bd4ff9569a Added copy function to raw data 2017-03-12 17:01:28 -07:00
Rob McMullen
68469e8e92 Added tests for deleting all files 2017-02-24 10:13:31 -08:00
Rob McMullen
3007e384a6 Changed size of last delete test so it will fit on the DOS 3.3 test disk image 2017-02-24 08:24:34 -08:00
Rob McMullen
7afa2a0e92 Changed file comparisons to numpy array_equals 2017-02-23 22:15:20 -08:00
Rob McMullen
6e8cf1c4c4 Moved some classes to different files, fixed Atari dos tests
* consolidated bytes_per_sector and sector_size (which mean the same thing) into sector_size
* moved AtrHeader, XfdHeader to ataridos.py
* moved base classes like WriteableSector, SectorList, etc. to utils.py
2017-02-23 14:23:29 -08:00
Rob McMullen
3157b13727 Added tests for DOS 33 disk images; code still failing all tests, but making progress 2017-02-22 12:11:56 -08:00
Rob McMullen
ea92e91865 Added file deletion for Atari DOS 2017-02-21 23:07:24 -08:00
Rob McMullen
7f2b07b221 More tests for writing Atari DOS files 2017-02-21 20:14:16 -08:00
Rob McMullen
c0340a1807 Fixed file number in Atari DOS files 2017-02-21 19:49:03 -08:00
Rob McMullen
767e76671b First code to add files to an Atari DOS image 2017-02-21 19:25:47 -08:00
Rob McMullen
f64ffb777b Added user data serialization and expanded user data to actually use the user_index field so multiple types of user data are actually supported 2016-06-06 14:31:51 -07:00
Rob McMullen
66bb7e63ea Added new test_data directory for test images 2016-06-06 11:53:55 -07:00
Rob McMullen
20feb9c96a Added checks for invalid cart type and added unit tests 2016-06-03 13:05:16 -07:00
Rob McMullen
68de323d3f Added better error checking for atari DOS executables 2016-06-01 15:37:28 -07:00
Rob McMullen
ea9466cda7 Added segment interleaving support 2016-05-17 14:53:52 -07:00
Rob McMullen
0f209cf50a Fixed indexing of sub-arrays 2016-05-10 11:37:01 -07:00
Rob McMullen
4c4da4bf38 Added add_atr_header and removed hack to insert a header into an already existing disk image
* until I think of a better solution, forcing you to create an entirely new disk image
2016-05-05 23:11:06 -07:00
Rob McMullen
6d2f483f40 Changed to my own bootloader rather than kboot 2016-05-05 17:44:20 -07:00
Rob McMullen
eaca5e166a Added XEX creator from a list of segments 2016-05-05 17:14:23 -07:00
Rob McMullen
b977322a4e Initial attempt at adding kboot header 2016-05-03 23:21:01 -07:00
Rob McMullen
a33e5aa6b2 Added segment parsing of DOS files within ATR images
* removed IndexedByteSegment; moved segment order info into SegmentData and OrderWrapper
2016-04-12 17:04:21 -07:00