Add a simple filesystem write test (currently fails)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add string_of_location function

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix Update.split, to avoid generating -ve offsets

Obviously when splitting an update starting at offset x
into sectors, we should start at (x/sector_size * sector_size)

This fixes the broken unit test.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
test: enhance test by reading after writing

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
test: read back writes at offsets > 0

These tests fail.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Write (then read back) to a variety of filenames, at a variety of
offsets
Remove dead code; change a 'List.tl' into a 'List.rev' (!)

The unit tests now pass.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #4 from djs55/new-tests

Add more unit tests, make them pass