TESTING "File mmaping" ./test-filemmap


TEST "chunksize not initialised" mmap_missing_chunksize <<END
return: 0
END


TEST "mmap not released should fail" mmap_forget_releasing <<END
return: 134
END

rm ,tmp-filemmap 2>/dev/null

TEST "basic mmap" mmap_simple <<END
return: 0
END

rm ,tmp-filemmap 2>/dev/null

TEST "use mmap twice" mmap_checkout_twice <<END
return: 0
END

rm ,tmp-filemmap 2>/dev/null

TEST "reuse mmap" mmap_checkout_again <<END
return: 0
END

TEST "grow file" mmap_grow_existing_file <<END
return: 0
END

TEST "readonly file" mmap_readonly_file <<END
return: 0
END

TEST "accessing file" file_access <<END
return: 0
END

TEST "exact mmap" exact_mmap <<END
return: 0
END

TEST "mmaped secion" mmap_section <<END
return: 0
END

TEST "mmaped secion, error" mmap_section_err <<END
return: !0
END

rm ,tmp-filemmap 2>/dev/null
