Fixed testing issues introduced by expanding superblocks

This was mostly tweaking test cases to be accommodating for variable
sized superblock-lists. Though there were a few bugs that needed fixing:
- Changed compact to use source dir for move since the original dir
  could have changed as a result of an expand.
- Created copy of current directory so we don't overwrite ourselves
  during an internal commit update.

Also made sure all of the test suites provide reproducable results when
ran independently (the entry tests were behaving differently based on
which tests were ran before).

(Some where legitimate test failures)
This commit is contained in:
Christopher Haster
2018-08-07 14:10:03 -05:00
parent d8f930eeab
commit 3b3981eb74
3 changed files with 86 additions and 32 deletions

View File

@@ -4,7 +4,8 @@ set -eu
# Note: These tests are intended for 512 byte inline size at different
# inline sizes they should still pass, but won't be testing anything
echo "=== Directory tests ==="
echo "=== Entry tests ==="
rm -rf blocks
function read_file {
cat << TEST