Skip to content

Commit

Permalink
Use set-modification-time instead of touch.
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Nov 25, 2023
1 parent 6326141 commit 620dad2
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion regress/config-use-central-cache-directory.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file search/1-4.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>
touch 1419260288 search/1-4.zip
set-modification-time search/1-4.zip 1419260288
ckmamedb-after home/.cache/ckmame/@SANDBOX@/search ckmamedb-1-4-ok-with-mtime.dump
ckmamedb-after search ckmamedb-empty.dump
file-data .ckmamerc
Expand Down
2 changes: 1 addition & 1 deletion regress/mkmamedb-use-central-cache-directory.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ program mkmamedb
environment-set HOME ./home
arguments --list-available-dats
file dats/mamedb.dat mamedb-header-only.dat
touch 1644506227 dats/mamedb.dat
set-modification-time dats/mamedb.dat 1644506227
file home/.cache/ckmame/@SANDBOX@/dats/.mkmamedb.db {} mkmamedb-datdb-1.dump
file-data .ckmamerc
[global]
Expand Down
2 changes: 1 addition & 1 deletion regress/rom-from-extra-ckmamedb.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file roms/2-48.zip 1-4-ok.zip 2-48-ok.zip
file roms/.ckmame.db {} <empty.ckmamedb>
file extradir/.ckmame.db {} <empty.ckmamedb>
ckmamedb-before roms ckmamedb-1-4-as-2-48.dump
touch 1422359238 roms/2-48.zip
set-modification-time roms/2-48.zip 1422359238
no-hashes extradir 2-48.zip 04.rom
stdout
In game 2-48:
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-add-game.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ arguments -jFvc 1-8
file roms/1-4.zip 1-4-ok.zip
file roms/1-8.zip 1-8-ok.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump <empty.ckmamedb>
touch 1422359238 roms/1-4.zip
set-modification-time roms/1-4.zip 1422359238
stdout
In game 1-8:
game 1-8 : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-changed-new-mtime.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ckmamedb-before roms
file unknown/1-4.zip {} 1-4-wrong.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump <empty.ckmamedb>
file unknown/.ckmame.db {} <empty.ckmamedb>
touch 1047614103 roms/1-4/04.rom
set-modification-time roms/1-4/04.rom 1047614103
stdout
In game 1-4:
game 1-4 : not a single file found
Expand Down
4 changes: 2 additions & 2 deletions regress/uncompressed-ckmamedb-changed-same-mtime-nofix.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ return 0
arguments -D ../mamedb-small.db -jc
file roms/1-4.zip 1-4-wrong.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump ckmamedb-1-4-ok.dump
touch 1047617702 roms/1-4/04.rom
touch 1422359238 roms/1-4
set-modification-time roms/1-4/04.rom 1047617702
set-modification-time roms/1-4 1422359238
stdout
In game 1-4:
game 1-4 : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-changed-same-mtime-zip.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description test single-rom game (no parent), incorrect ckmame db exists, but archive has same mtime
#variants zip
return 0
touch 1419260288 roms/1-4.zip
set-modification-time roms/1-4.zip 1419260288
arguments -D ../mamedb-small.db -jFvc
file roms/1-4.zip 1-4-crcerror.zip
file roms/.ckmame.db ckmamedb-1-4-ok-with-mtime.dump <ckmamedb-1-4-ok-with-mtime.dump>
Expand Down
4 changes: 2 additions & 2 deletions regress/uncompressed-ckmamedb-changed-same-mtime.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ return 0
arguments -D ../mamedb-small.db -jFvc
file roms/1-4.zip 1-4-wrong.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump <ckmamedb-1-4-ok.dump>
touch 1047617702 roms/1-4/04.rom
touch 1422359238 roms/1-4
set-modification-time roms/1-4/04.rom 1047617702
set-modification-time roms/1-4 1422359238
stdout
In game 1-4:
game 1-4 : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-no-change.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return 0
arguments -D ../mamedb-small.db -jFvc
file roms/1-4.zip 1-4-ok.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump <empty.ckmamedb>
touch 1047614102 roms/1-4/04.rom
set-modification-time roms/1-4/04.rom 1047614102
stdout
In game 1-4:
game 1-4 : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-remove-game.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return 0
arguments -jFvc 1-8
file roms/1-8.zip 1-8-ok.zip
file roms/.ckmame.db ckmamedb-1-4-ok.dump ckmamedb-1-4-ok-1-8-ok.dump
touch 1422359888 roms/1-8.zip
set-modification-time roms/1-8.zip 1422359888
stdout
In game 1-8:
game 1-8 : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-sort-order-reverse.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return 0
arguments -D ../mamedb-one-game-two-roms.db -jFvc 2-4c
file roms/2-4c.zip 2-4c-reverse.zip
file roms/.ckmame.db {} ckmamedb-2-4c-reverse.dump
touch 1419271683 roms/2-4c.zip
set-modification-time roms/2-4c.zip 1419271683
stdout
In game 2-4c:
game 2-4c : correct
Expand Down
2 changes: 1 addition & 1 deletion regress/uncompressed-ckmamedb-sort-order.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return 0
arguments -D ../mamedb-one-game-two-roms.db -jFvc 2-4c
file roms/2-4c.zip 2-4c-ok.zip
file roms/.ckmame.db {} ckmamedb-2-4c-ok.dump
touch 1419271671 roms/2-4c.zip
set-modification-time roms/2-4c.zip 1419271671
stdout
In game 2-4c:
game 2-4c : correct
Expand Down

0 comments on commit 620dad2

Please sign in to comment.