Skip to content

Commit

Permalink
Adapt to stricter nihtest.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Dec 17, 2024
1 parent bf139b9 commit 6960a88
Show file tree
Hide file tree
Showing 74 changed files with 74 additions and 3 deletions.
1 change: 1 addition & 0 deletions regress/baddump.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file extra/baddump.zip baddump.zip {}
file roms/.ckmame.db {} <inline.ckmamedb>
hashes baddump.zip bad.rom cheap
end-of-inline-data
directory extra <> <>
stdout
In game baddump:
game baddump : correct
Expand Down
2 changes: 2 additions & 0 deletions regress/ckmame-all-sets-2.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ file extra/1-4.zip 1-4-ok.zip {}
file extra2/1-8.zip 1-8-ok.zip {}
file roms1/.ckmame.db {} <empty.ckmamedb>
file roms2/.ckmame.db {} <empty.ckmamedb>
directory extra <> <>
directory extra2 <> <>
file .ckmamerc <inline>
[global]
report-correct = true
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-all-sets-3.zip.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ file extra3/.ckmame.db {} <empty.ckmamedb-unzipped>
file roms1/.ckmame.db {} <empty.ckmamedb>
file roms3/.ckmame.db {} <empty.ckmamedb>
file roms4/.ckmame.db {} <empty.ckmamedb-unzipped>
directory roms2 {} <>
file .ckmamerc <inline>
[global]
report-correct = true
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-complete-list.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ baddump
nogood
norom
end-of-inline-data
directory roms {} <>
1 change: 1 addition & 0 deletions regress/ckmame-dont-update-database.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dat-directories = [ "dats" ]
dats = [ "ckmame test db" ]
rom-db = "output.db"
end-of-inline-data
directory roms {} <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-game-list.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file gamelist <inline>
1-4
end-of-inline-data
directory roms {} <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-missing-list.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ return 0
arguments --missing-list missing-list --no-report-missing
file mame.db mame.db
file missing-list missing-list.txt
directory roms {} <>
1 change: 1 addition & 0 deletions regress/ckmame-only-if-database-updated-1.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dat-directories = [ "dats" ]
dats = [ "ckmame test db" ]
rom-db = "output.db"
end-of-inline-data
directory roms {} <>
stdout
ckmame test db (1 -> 2)
In game 1-4:
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-update-database-1.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dat-directories = [ "dats" ]
dats = [ "ckmame test db" ]
rom-db = "output.db"
end-of-inline-data
directory roms {} <>
stdout
ckmame test db (1 -> 2)
In game 1-4:
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame-update-database-2.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dat-directories = [ "dats" ]
dats = [ "ckmame test db" ]
rom-db = "output.db"
end-of-inline-data
directory roms {} <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/ckmame.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ description test nothing to do, just check if ckmame runs
return 0
file mame.db mame.db
arguments --no-report-missing
directory roms {} <>
1 change: 1 addition & 0 deletions regress/ckmamedb-migrate-v2.zip.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file mame.db mame.db
file extra/1-8.zip 1-8-ok.zip
set-modification-time extra/1-8.zip 1715349226
file extra/.ckmame.db 1-8-ok-v2-ckmame.db 1-8-ok-v2-migrated.ckmamedb-dump
directory roms {} <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/config-complete-games-only.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ file .ckmamerc <inline>
[global]
complete-games-only = true
end-of-inline-data
directory roms {} <>
stdout
In game 2-48:
game 2-48 : incomplete
Expand Down
1 change: 1 addition & 0 deletions regress/config-create-fixdat.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ file .ckmamerc <inline>
[global]
create-fixdat = true
end-of-inline-data
directory roms {} <>
stdout
In game grandparent:
game grandparent : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/config-fixdat-directory.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ file .ckmamerc <>
create-fixdat = true
fixdat-directory = "home"
end-of-inline-data
directory roms {} <>
stdout
In game grandparent:
game grandparent : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/config-move-from-extra-2.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ file .ckmamerc <inline>
"search" = { "move-from-extra" = false }
"extra" = { "move-from-extra" = true }
end-of-inline-data
directory extra <> <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: is in 'search/1-4.zip/04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/config-move-from-extra.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ file .ckmamerc <inline>
[global]
move-from-extra = true
end-of-inline-data
directory search <> <>
stdout
In game 1-4:
rom 04.rom size 4 crc d87f7e0c: is in 'search/14.zip/04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/config-no-create-fixdat.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file .ckmamerc <inline>
[global]
create-fixdat = false
end-of-inline-data
directory roms {} <>
stdout
In game grandparent:
game grandparent : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/config-rom-db.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file .ckmamerc <inline>
[global]
rom-db = "../mamedb-merge-parent.db"
end-of-inline-data
directory roms {} <>
stdout
In game grandparent:
game grandparent : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/delete-unknown-pattern-superfluous.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description test single-rom game (no parent), superfluous file matches delete-un
return 0
arguments --no-status-db -Fvc --delete-unknown-pattern garb* -D ../mamedb-lost-parent-ok.db
file roms/unknown.zip garbage.zip {}
directory roms <> <>
stdout
In game clone-8:
game clone-8 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/detector-from-extra-cleanup-no-header.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hashes 1-8.zip * cheap
detector-hashes skip-some-bytes 20070429 1-8.zip *
end-of-inline-data
arguments --no-status-db -D mame-detector.db -Fvc -je extra
directory extra <> <>
stdout
In game 1-8:
game 1-8 : correct
Expand Down
1 change: 1 addition & 0 deletions regress/detector-from-extra-cleanup.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hashes 1-8.zip * cheap
detector-hashes skip-some-bytes 20070429 1-8.zip *
end-of-inline-data
arguments -D mame-detector.db -Fvc -je extra 1-8
directory extra <> <>
stdout
In game 1-8:
game 1-8 : correct
Expand Down
1 change: 1 addition & 0 deletions regress/detector-from-extra.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hashes 1-8.zip * cheap
detector-hashes skip-some-bytes 20070429 1-8.zip *
end-of-inline-data
arguments -D mame-detector.db -Fvc -je extra 1-8
directory extra <> <>
stdout
In game 1-8:
rom 08.rom size 8 crc 3656897d: is in 'extra/1-8-header.zip/08.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/disk-fixdat.zip.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description test single-rom game with disk, missing disk in fixdat
return 0
arguments --no-status-db -Fvj -D ../mamedb-disk.db --create-fixdat
file "fixdat_game-with-disk (1).dat" {} disk-fixdat.fixdat
directory roms {} <>
stdout
In game disk:
game disk : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/disk-from-extra-remove.zip.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ arguments --no-status-db -Fvj -D ../mamedb-disk.db -e extradir
file extradir/1234.chd 108-5.chd {}
file roms/disk/108-5.chd {} 108-5.chd
file roms/.ckmame.db {} <empty.ckmamedb>
directory extradir <> <>
stdout
In game disk:
rom 08.rom size 8 crc 3656897d: missing
Expand Down
1 change: 1 addition & 0 deletions regress/doublezip.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ file unknown/1-4.zip {} 1-4-ok-doublezip.zip
file unknown/.ckmame.db {} <inline.ckmamedb>
hashes 1-4.zip 1-4-ok.zip cheap
end-of-inline-data
directory roms {} <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/extra-size-mismatch.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file extra/1-4.zip 1-4-ok.zip
file extra/.ckmame.db {} <inline.ckmamedb>
hashes 1-4.zip 04.rom cheap
end-of-inline-data
directory roms {} <>
stdout
In game 1-8-is-4:
game 1-8-is-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/fixdat-missing-all.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ features HAVE_LIBXML2
return 0
arguments --no-status-db -Fvc -D ../mamedb-merge-parent.db --create-fixdat
file "fixdat_ckmame test db (1).dat" {} fixdat-missing-all.fixdat
directory roms {} <>
stdout
In game grandparent:
game grandparent : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/fixdat-xml-quoting.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ features HAVE_LIBXML2
return 0
arguments --no-status-db -Fvc -D ../mamedb-xml-quoting.db --create-fixdat
file "fixdat_ckmame test db <&> (1).dat" {} fixdat-xml-quoting.fixdat
directory roms {} <>
stdout
In game 2&4c<>;:
game 2&4c<>; : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/garbage-archive-exists.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ file unknown/1-4.zip 1-8-ok.zip garbage-1-8-ok.zip
file unknown/.ckmame.db {} <inline.ckmamedb>
hashes 1-4.zip * cheap
end-of-inline-data
directory roms <> <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/hasherr-extra.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ arguments -Fvc -e extra deadbeef
file mame.db mame.db
file extra/.ckmame.db {} <empty.ckmamedb>
file extra/deadbeef.zip deadfish.zip
directory roms {} <>
stdout
In game deadbeef:
game deadbeef : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/hasherr.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/deadbeef.zip deadpork.zip {}
file unknown/deadbeef.zip {} deadpork.zip
file unknown/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game deadbeef:
game deadbeef : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/hasherr2.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/deadbeef.zip deadfish.zip {}
file unknown/deadbeef.zip {} deadfish.zip
file unknown/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game deadbeef:
game deadbeef : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/ignore-macos-extra.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ return 0
arguments --no-status-db -D ../mamedb-lost-parent-ok.db -vFj -e extra
file extra/._clone-8.zip CMakeLists.txt
file extra/.DS_Store CMakeLists.txt
directory roms {} <>
stdout
In game clone-8:
game clone-8 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-basic-b.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip {}
file saved/d87f7e0c-000.zip {} 1-4-ok.zip
file saved/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 2-48:
save needed file '04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-basic.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip {}
file saved/d87f7e0c-000.zip {} 1-4-ok.zip
file saved/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 2-48:
game 2-48 : incomplete
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-existing-b.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip {}
file saved/d87f7e0c-000.zip 1-4-ok.zip
file saved/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 2-48:
delete unneeded file '04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-existing.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip {}
file saved/d87f7e0c-000.zip 1-4-ok.zip
file saved/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 2-48:
game 2-48 : incomplete
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-from-extra-b.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ arguments -FvCje extra --no-report-fixable --no-report-missing 2-48
file mame.db mame.db
file extra/.ckmame.db {} <empty.ckmamedb>
file extra/2-48.zip 1-4-ok.zip
directory roms {} <>
1 change: 1 addition & 0 deletions regress/incomplete-from-extra.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ arguments -FvcCj --report-detailed -e extra 2-48
file mame.db mame.db
file extra/.ckmame.db {} <empty.ckmamedb>
file extra/2-48.zip 1-4-ok.zip
directory roms {} <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: not checked
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-merge-b.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file extra/2-48.zip 1-8-ok.zip {}
file saved/d87f7e0c-000.zip 1-4-ok.zip {}
file roms/2-48.zip {} 2-48-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
directory extra <> <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: is in 'saved/d87f7e0c-000.zip/04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-merge.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file extra/2-48.zip 1-8-ok.zip {}
file saved/d87f7e0c-000.zip 1-4-ok.zip {}
file roms/2-48.zip {} 2-48-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
directory extra <> <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: is in 'saved/d87f7e0c-000.zip/04.rom'
Expand Down
1 change: 1 addition & 0 deletions regress/incomplete-second.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ file mame.db mame.db
file roms/2-48.zip 1-8-ok.zip {}
file saved/3656897d-000.zip {} 1-8-ok.zip
file saved/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: missing
Expand Down
1 change: 1 addition & 0 deletions regress/missing-mia-report.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description test single-rom game (no parent), zip is correct, ROM is mia
return 0
arguments -Fv --report-missing-mia 1-mia
file mame.db mamedb-mia.db
directory roms {} <>
stdout
In game 1-mia:
game 1-mia : not a single file found (all mia)
Expand Down
1 change: 1 addition & 0 deletions regress/missing-mia.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ arguments -Fv 1-mia
file mame.db mamedb-mia.db
stdout
end-of-inline-data
directory roms {} <>
2 changes: 1 addition & 1 deletion regress/needed-error.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ file mame.db mame.db
file roms/1-4.zip 1-8-ok.zip 2-48-ok.zip
file roms/2-48.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
mkdir saved
directory saved <> {}
read-only saved
stdout
In game 1-4:
Expand Down
1 change: 1 addition & 0 deletions regress/needed-exists-different.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ file saved/deadbeef-001.zip {} deadbeef.zip
file unknown/deadbeef-000.zip {} deadpork.zip
file saved/.ckmame.db {} <empty.ckmamedb>
file unknown/.ckmame.db {} <empty.ckmamedb>
directory roms <> <>
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
1 change: 1 addition & 0 deletions regress/nogood-allmissing-suppress.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ description test single-rom game with bad dump, no output expected
return 0
arguments -Fv nogood
file mame.db mame.db
directory roms {} <>
1 change: 1 addition & 0 deletions regress/nogood-allmissing.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description test single-rom game with bad dump; with --report-detail, so output
return 0
arguments --report-detailed nogood
file mame.db mame.db
directory roms {} <>
stdout
In game nogood:
rom 04.rom size 4 no good dump: missing
Expand Down
1 change: 1 addition & 0 deletions regress/nonexist.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description testing non-existing game
return 0
arguments -Fvc nosuchgame
file mame.db mame.db
directory roms {} <>
stderr
game 'nosuchgame' unknown
end-of-inline-data
1 change: 1 addition & 0 deletions regress/norom.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description test no-rom game
return 0
arguments -Fvc norom
file mame.db mame.db
directory roms {} <>
stdout
In game norom:
game norom : correct
Expand Down
1 change: 1 addition & 0 deletions regress/old-complete.vtest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ return 0
arguments -O ../mamedb-lost-parent-ok.db -Fvc 2-48
file mame.db mame.db
file roms/2-48.zip 2-48-ok.zip {}
directory roms <> <>
stdout
In game 2-48:
rom 04.rom size 4 crc d87f7e0c: duplicate (also in old 'clone-8')
Expand Down
Loading

0 comments on commit 6960a88

Please sign in to comment.