Skip to content

Commit

Permalink
Adapt more directives to new syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Nov 24, 2023
1 parent 4ba2dcc commit 6326141
Show file tree
Hide file tree
Showing 80 changed files with 110 additions and 132 deletions.
2 changes: 1 addition & 1 deletion regress/config-extra-directories-append.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file roms/2-48.zip {} 2-48-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extra/.ckmame.db {} <empty.ckmamedb>
file search/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
extra-directories = [ "extra" ]
["Test"]
Expand Down
2 changes: 1 addition & 1 deletion regress/config-extra-directories.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file search/14.zip 1-4-ok.zip
file roms/1-4.zip {} 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file search/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
extra-directories = [ "search" ]
end-of-inline-data
Expand Down
4 changes: 2 additions & 2 deletions regress/config-home-set.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test config in home directory is used, set overrides
return 0
setenv HOME ./home
environment-set HOME ./home
arguments --set "Test" -F 1-4 1-8
file mame.db mame.db
file roms-set/1-4.zip 1-4-ok.zip
file roms-set/.ckmame.db {} <empty.ckmamedb>
file-data home/.config/ckmame/ckmamerc
file home/.config/ckmame/ckmamerc <inline>
[global]
rom-directory = "roms-home"
["Test"]
Expand Down
4 changes: 2 additions & 2 deletions regress/config-home.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test config in home directory is used
return 0
setenv HOME ./home
environment-set HOME ./home
arguments -F 1-4 1-8
file mame.db mame.db
file roms-home/1-4.zip 1-4-ok.zip
file roms-home/.ckmame.db {} <empty.ckmamedb>
file-data home/.config/ckmame/ckmamerc
file home/.config/ckmame/ckmamerc <inline>
[global]
rom-directory = "roms-home"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-invalid-array.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description check config parser for invalid booleans
return 1
file-data .ckmamerc
file .ckmamerc <inline>
[global]
dat-directories = "something"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-invalid-boolean.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description check config parser for invalid booleans
return 1
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-missing = "something"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-invalid-string.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description check config parser for invalid booleans
return 1
file-data .ckmamerc
file .ckmamerc <inline>
[global]
rom-directory = [ "an", "array" ]
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-keep-old-duplicate.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 2-4a
file mame.db mame.db
file roms/2-4a.zip 2-4a-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
old-db = "../makedb-lost-parent-ok.db"
keep-old-duplicate = true
Expand Down
4 changes: 2 additions & 2 deletions regress/config-local-overrides-home.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test config in local directory overrides the one in HOME directory
return 0
setenv HOME ./home
environment-set HOME ./home
arguments -F 1-4 1-8
file mame.db mame.db
file roms-local/1-4.zip 1-4-ok.zip
file roms-local/.ckmame.db {} <empty.ckmamedb>
file-data home/.config/ckmame/ckmamerc
file home/.config/ckmame/ckmamerc <inline>
[global]
rom-directory = "roms-home"
end-of-inline-data
Expand Down
4 changes: 2 additions & 2 deletions regress/config-local-set-overrides-home-set.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test config in local directory overrides the one in HOME directory (with set)
return 0
setenv HOME ./home
environment-set HOME ./home
arguments --set "Test" -F 1-4 1-8
file mame.db mame.db
file roms-set/1-4.zip 1-4-ok.zip
file roms-set/.ckmame.db {} <empty.ckmamedb>
file-data home/.config/ckmame/ckmamerc
file home/.config/ckmame/ckmamerc <inline>
[global]
rom-directory = "roms-home"
["Test"]
Expand Down
4 changes: 2 additions & 2 deletions regress/config-local-set.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test config in local directory is used, set overrides
return 0
setenv HOME ./home
environment-set HOME ./home
arguments --set "Test" -F 1-4 1-8
file mame.db mame.db
file roms-set/1-4.zip 1-4-ok.zip
file roms-set/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
rom-directory = "roms-local"
["Test"]
Expand Down
4 changes: 2 additions & 2 deletions regress/config-move-from-extra-2.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description test single-rom game (no parent), move-from-extra specific to extra-directory
return 0
setenv HOME ./home
environment-set HOME ./home
arguments -F 2-48
file mame.db mame.db
file search/1-4.zip 1-4-ok.zip
Expand All @@ -9,7 +9,7 @@ file roms/2-48.zip {} 2-48-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extra/.ckmame.db {} <empty.ckmamedb>
file search/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
[global.extra-directories]
"search" = { "move-from-extra" = false }
Expand Down
2 changes: 1 addition & 1 deletion regress/config-move-from-extra.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file search/14.zip 1-4-ok.zip {}
file roms/1-4.zip {} 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file search/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
move-from-extra = true
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-complete-games-only.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 2-48
file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
complete-games-only = false
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-create-fixdat.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description test all games, no files found, do not create fixdat based on config setting
return 0
arguments -F -D ../mamedb-merge-parent.db
file-data .ckmamerc
file .ckmamerc <inline>
[global]
create-fixdat = false
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-report-correct.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 1-4 1-8
file mame.db mame.db
file roms/1-4.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-correct = false
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-report-detailed.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 1-4 1-8
file mame.db mame.db
file roms/1-4.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-detailed = false
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-report-fixable.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file roms/1-4.zip 1-4-ok.zip
file extra/1-8.zip 1-8-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extra/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-fixable = false
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-no-report-missing.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments 2-48 1-8
file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-missing = false
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-old-db.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 2-4a
file mame.db mame.db
file roms/2-4a.zip 2-4a-ok.zip 1-a-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
old-db = "../mamedb-lost-parent-ok.db"
end-of-inline-data
Expand Down
4 changes: 2 additions & 2 deletions regress/config-profile-unknown.test
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
description report error for unknown profile in config file
return 1
setenv HOME ./home
environment-set HOME ./home
arguments --set Test 1-4
file mame.db mame.db
file-data .ckmamerc
file .ckmamerc <inline>
[global]
verbose = false
[profile.verbose]
Expand Down
4 changes: 2 additions & 2 deletions regress/config-profile.test
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description test profiles and their selection work
return 0
setenv HOME ./home
environment-set HOME ./home
arguments --set Test -F 1-4 1-8
file mame.db mame.db
file roms-local/1-4.zip 1-4-ok.zip
file roms-local/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-correct = true
report-missing = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-report-correct.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 1-4 1-8
file mame.db mame.db
file roms/1-4.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-correct = true
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-report-detailed.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments -F 1-4 1-8
file mame.db mame.db
file roms/1-4.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-detailed = true
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-report-fixable.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file roms/1-4.zip 1-4-ok.zip
file extra/1-8.zip 1-8-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extra/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-fixable = true
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-report-missing.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments 2-48 1-8
file mame.db mame.db
file roms/2-48.zip 1-4-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-missing = true
verbose = true
Expand Down
2 changes: 1 addition & 1 deletion regress/config-report-no-good-dump.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments nogood-2
file mame.db mame.db
file roms/nogood-2.zip 1-8-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
report-no-good-dump = true
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-rom-db.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description test all games, no files found, use rom-db from config
return 0
arguments -F
file-data .ckmamerc
file .ckmamerc <inline>
[global]
rom-db = "../mamedb-merge-parent.db"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-rom-directory.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ arguments 1-4
file mame.db mame.db
file roms-local/1-4.zip 1-4-ok.zip
file roms-local/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
rom-directory = "roms-local"
end-of-inline-data
2 changes: 1 addition & 1 deletion regress/config-roms-zipped.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description test all games, no files found, unzipped per config
return 0
arguments -v 1-4
file mame.db mame.db
file-data .ckmamerc
file .ckmamerc <inline>
[global]
roms-zipped = false
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-saved-directory.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file roms/1-4.zip 2-48-ok.zip 1-4-ok.zip
file extra-later/3656897d-000.zip {} 1-8-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extra-later/.ckmame.db {} <empty.ckmamedb>
file-data .ckmamerc
file .ckmamerc <inline>
[global]
saved-directory = "extra-later"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-sets-file.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description read sets list from file
#variants zip
return 0
arguments --list-sets
file-data .ckmamerc
file .ckmamerc <inline>
[global]
sets = [ "standard set 1", "standard set 2" ]
sets-file = "sets-list"
Expand Down
2 changes: 1 addition & 1 deletion regress/config-unknown-variable.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description config parameter unknown
return 1
arguments -F
file-data .ckmamerc
file .ckmamerc <inline>
[global]
unknown = "defined"
end-of-inline-data
Expand Down
2 changes: 1 addition & 1 deletion regress/config-use-central-cache-directory.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description test single-rom game (no parent), file is in search dir from config, keep, use central cache
#variants zip
return 0
setenv HOME ./home
environment-set HOME ./home
arguments -F 1-4
file mame.db mame.db
file search/1-4.zip 1-4-ok.zip
Expand Down
2 changes: 1 addition & 1 deletion regress/disk-from-extra-using-copy-remove.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description test single-rom game with disk, get missing disk from extra, rename
#variants zip
return 0
preload fwrite.so
setenv RENAME_FAILS roms/108-5.chd
environment-set RENAME_FAILS roms/108-5.chd
arguments -Fvj -D ../mamedb-disk.db -e extradir
file extradir/1234.chd 108-5.chd {}
file roms/disk/108-5.chd {} 108-5.chd
Expand Down
4 changes: 1 addition & 3 deletions regress/disk-nogood-copy.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ file extras/108-nogood.chd 12-1.chd
file roms/.ckmame.db {} <empty.ckmamedb>
file extras/.ckmame.db {} <empty.ckmamedb>
no-hashes roms disk-nogood.zip 04.rom
# file name alone shouldn't be enough
stdout
In game disk-nogood:
rom 04.rom size 4 crc d87f7e0c: correct
end-of-inline-data
# file name alone shouldn't be enough
stdout
disk 108-nogood no good dump : missing
In game disk-nogood2:
rom 08.rom size 8 crc 3656897d: missing
Expand Down
4 changes: 2 additions & 2 deletions regress/diskfull-zip.test
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
description test copying file from extra, failing (disk full) and cleaning up extra
#variants zip
return 0
setenv FWRITE_MAX_WRITE 5
environment-set FWRITE_MAX_WRITE 5
preload fwrite.so
arguments -Fjvc -D ../mamedb-lost-parent-ok.db -e extra
ckmamedb-after extra ckmamedb-wrongname-nohash.dump
file extra/wrongname.zip 2-48-ok.zip
touch 1422359238 extra/wrongname.zip
set-modification-time extra/wrongname.zip 1422359238
stdout
In game clone-8:
rom 04.rom size 4 crc d87f7e0c: is in 'extra/wrongname.zip/04.rom'
Expand Down
2 changes: 1 addition & 1 deletion regress/dumpgame-list-sets.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ return 0
arguments --list-sets
file mame.db mame.db
program dumpgame
file-data .ckmamerc
file .ckmamerc <inline>
[global]
sets = [ "standard set 1", "standard set 2" ]
["non-standard set 1"]
Expand Down
Loading

0 comments on commit 6326141

Please sign in to comment.