Browse Source

tests: new fsck tests

tags/nilmdb-2.2.0
Jim Paris 8 months ago
parent
commit
7056c5b4ec
7 changed files with 8 additions and 0 deletions
  1. BIN
      tests/fsck-data/test2w1/data.sql
  2. BIN
      tests/fsck-data/test2w1/data/a/b/0000/0000
  3. BIN
      tests/fsck-data/test2w1/data/a/b/_format
  4. BIN
      tests/fsck-data/test2w2/data.sql
  5. BIN
      tests/fsck-data/test2w2/data/a/b/0000/0000
  6. BIN
      tests/fsck-data/test2w2/data/a/b/_format
  7. +8
    -0
      tests/test_fsck.py

BIN
tests/fsck-data/test2w1/data.sql View File


BIN
tests/fsck-data/test2w1/data/a/b/0000/0000 View File


BIN
tests/fsck-data/test2w1/data/a/b/_format View File


BIN
tests/fsck-data/test2w2/data.sql View File


BIN
tests/fsck-data/test2w2/data/a/b/0000/0000 View File


BIN
tests/fsck-data/test2w2/data/a/b/_format View File


+ 8
- 0
tests/test_fsck.py View File

@@ -168,3 +168,11 @@ class TestFsck(object):
self.failmsg("test2v1", "bad bulkdata table")
self.failmsg("test2v2", "empty, with corrupted format file", fix=False)
self.okmsg("test2v2", "empty, with corrupted format file")

self.failmsg("test2w1", "out of range, and zero", fix=False)
self.okmsg("test2w1", "Will try truncating table")
self.contain("Deleting the entire interval")

self.failmsg("test2w2", "non-monotonic, and zero", fix=False)
self.okmsg("test2w2", "Will try truncating table")
self.contain("new end: time 237000001, pos 238")

Loading…
Cancel
Save