TESTING "fileheader access" ./test-fileheader

TEST "fileheader, basic creation" create_basic <<END
err: ECHO: .*: fileheader: TEST  0
err: ECHO: .*: .*          $
err: ECHO: .*: main: e
err: ECHO: .*: :
END


TEST "fileheader, create on readlonly fails" create_nowrite <<END
return: 0
END


TEST "fileheader, fourcc mismatch" acquire_wrongheader <<END
return: 0
END


TEST "fileheader, reopen" acquire_basic <<END
err: ECHO: .*: fileheader: TEST  0
err: ECHO: .*: .*          $
err: ECHO: .*: main: e
err: ECHO: .*: :
END


TEST "fileheader, reopen" acquire_basic_readonly <<END
err: ECHO: .*: fileheader: TEST  0
err: ECHO: .*: .*          $
err: ECHO: .*: main: e
err: ECHO: .*: :
END


#TEST "fileheader, " <<END
#END


rm ,tmp-fileheader 2>/dev/null
