tests/archive: comments: specs only
This commit is contained in:
1 parent
54f53a35f6
commit
96602286f8
33 files changed
+34
-226
No files matched your search
+1
-10
@@ -1,9 +1,4 @@
|
||||
-- archive/iso tests (and containers/Iso9660): xorriso images (plain names, Joliet, Rock Ridge, Joliet + Rock Ridge with
|
||||
-- deep directories / a 200-byte name / a long symlink target) and a genisoimage -J -R image (rr_moved relocation, CE
|
||||
-- areas) list what the source tree holds (Rock Ridge: names, modes, symlink targets, mtimes, data CRCs) or what pycdlib
|
||||
-- reads (plain and Joliet names, sizes, data CRCs); prefer = "joliet" on a -J -R image; an El Torito boot catalog as
|
||||
-- xorriso reports it; a crafted multi-extent file reads whole; an interleaved file is UNSUPPORTED; errors; the fuzz pass.
|
||||
-- Fixtures: tools/fixtures/iso.py.
|
||||
-- archive/iso tests (and containers/Iso9660) against xorriso, genisoimage and pycdlib (tools/fixtures/iso.py).
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Iso = require("@rosetta/archive/iso")
|
||||
@@ -65,12 +60,10 @@ do
|
||||
t:eq(p.format, "iso", "F.load")
|
||||
t:eq(p.meta.iso.tree, "iso9660", "plain")
|
||||
t:check(p.meta.iso.blockSize == 2048 and p.meta.iso.blocks > 0, "volume facts")
|
||||
-- any Archive converts: iso -> tar
|
||||
local tar = F.load(assert(F.save(jr, nil, { format = "tar" })))
|
||||
t:eq(buffer.tostring(tar:read("hello.txt")), "hello, iso\n", "iso -> tar")
|
||||
end
|
||||
|
||||
-- El Torito
|
||||
do
|
||||
local a = Iso.decode(Bytes.reader(buffer.fromstring(Fx.boot.data)))
|
||||
local bt = a.meta.boot
|
||||
@@ -83,7 +76,6 @@ do
|
||||
t:check(bt.valid, "boot: validation entry checksum")
|
||||
end
|
||||
|
||||
-- multi-extent and interleaved records
|
||||
do
|
||||
local a = Iso.decode(Bytes.reader(buffer.fromstring(Fx.multi.data)))
|
||||
local n = 0
|
||||
@@ -100,7 +92,6 @@ do
|
||||
t:check(e and e.code == Err.UNSUPPORTED, "interleaved: " .. tostring(e))
|
||||
end
|
||||
|
||||
-- errors
|
||||
do
|
||||
local good = Fx.images[1].data
|
||||
local _, e1 = Iso.decode(Bytes.reader(buffer.fromstring(string.sub(good, 1, 20000))))
|
||||
|
||||
Reference in new issue
Block a user