diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-16 00:38:15 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-16 00:38:15 -0700 |
commit | 7509f69f867b63d5fd7a8304176456a63f00971b (patch) | |
tree | 49c22095b0f4724f369406f0e5adabc4dc131e77 /test-data/sleep/empty | |
download | geniza-7509f69f867b63d5fd7a8304176456a63f00971b.tar.gz geniza-7509f69f867b63d5fd7a8304176456a63f00971b.zip |
add a bunch of test/example data
Diffstat (limited to 'test-data/sleep/empty')
-rw-r--r-- | test-data/sleep/empty/empty.hexdump | 2 | ||||
-rw-r--r-- | test-data/sleep/empty/empty.py | 27 | ||||
-rw-r--r-- | test-data/sleep/empty/empty.sleep | bin | 0 -> 32 bytes |
3 files changed, 29 insertions, 0 deletions
diff --git a/test-data/sleep/empty/empty.hexdump b/test-data/sleep/empty/empty.hexdump new file mode 100644 index 0000000..9bae6f1 --- /dev/null +++ b/test-data/sleep/empty/empty.hexdump @@ -0,0 +1,2 @@ +00000000: 0502 57ff 0000 0100 0000 0000 0000 0000 ..W............. +00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ diff --git a/test-data/sleep/empty/empty.py b/test-data/sleep/empty/empty.py new file mode 100644 index 0000000..2bed27d --- /dev/null +++ b/test-data/sleep/empty/empty.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 + +"""This script generates empty.sleep""" + +# Create file in binary mode +f = open('empty.sleep', 'wb') + +# Move to begining, set size +f.seek(0) +f.truncate(32) + +# Write header, with 0xFF as the dat file type +f.write(b'\x05\x02\x57\xFF') + +# Version 0 +f.write(b'\x00') + +# One-byte entry size +f.write(b'\x00\x01') + +# No Algorithm name +f.write(b'\x00') +for i in range(24): + f.write(b'\x00') + +assert(f.tell() == 32) +f.close() diff --git a/test-data/sleep/empty/empty.sleep b/test-data/sleep/empty/empty.sleep Binary files differnew file mode 100644 index 0000000..973d047 --- /dev/null +++ b/test-data/sleep/empty/empty.sleep |