This commit is contained in:
Sergio Martin 2024-01-16 22:39:18 +01:00
parent 28c1be6fe7
commit 2eee66cda8
2 changed files with 13 additions and 5 deletions

View File

@ -18,7 +18,7 @@ class EmuInstance
typedef uint8_t inputType;
// Deleting default constructors
~EmuInstance() = default;
virtual ~EmuInstance() = default;
// Controller input bits
// 0 - A / 1

View File

@ -17,17 +17,25 @@ testerArgs=${@:4}
mode="normal"
if [ "${4}" = "--fullCycle" ]; then mode="fullCycle"; fi
# Hash files
quickerNESHashFile="quickerNES.${script}.${mode}.hash"
quickNESHashFile="quickNES.${script}.${mode}.hash"
# Removing them if already present
rm -f ${quickerNESHashFile}
rm -f ${quickNESHashFile}
# Running script on quickerNES
${quickerNESExecutable} ${script} --hashOutputFile quickerNES.${script}.${mode}.hash ${testerArgs}
${quickerNESExecutable} ${script} --hashOutputFile ${quickerNESHashFile} ${testerArgs}
# Running script on quickNES
${quickNESExecutable} ${script} --hashOutputFile quickNES.${script}.${mode}.hash ${testerArgs}
${quickNESExecutable} ${script} --hashOutputFile ${quickNESHashFile} ${testerArgs}
# Comparing hashes
quickerNESHash=`cat quickerNES.hash`
quickerNESHash=`cat ${quickerNESHashFile}`
# Comparing hashes
quickNESHash=`cat quickNES.hash`
quickNESHash=`cat ${quickNESHashFile}`
# Compare hashes
if [ "${quickerNESHash}" = "${quickNESHash}" ]; then