mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix pm3_tests path to dicts with cmake
This commit is contained in:
parent
6630f3724b
commit
41259b8991
1 changed files with 12 additions and 9 deletions
|
@ -3,6 +3,9 @@
|
||||||
PM3PATH="$(dirname "$0")/.."
|
PM3PATH="$(dirname "$0")/.."
|
||||||
cd "$PM3PATH" || exit 1
|
cd "$PM3PATH" || exit 1
|
||||||
|
|
||||||
|
DICPATH="./client/dictionaries"
|
||||||
|
RESOURCEPATH="./client/resources"
|
||||||
|
|
||||||
SLOWTESTS=false
|
SLOWTESTS=false
|
||||||
GPUTESTS=false
|
GPUTESTS=false
|
||||||
TESTALL=true
|
TESTALL=true
|
||||||
|
@ -222,14 +225,14 @@ echo ""
|
||||||
while true; do
|
while true; do
|
||||||
if $TESTALL || $TESTCOMMON; then
|
if $TESTALL || $TESTCOMMON; then
|
||||||
echo -e "\n${C_BLUE}Testing common:${C_NC}"
|
echo -e "\n${C_BLUE}Testing common:${C_NC}"
|
||||||
if ! CheckFileExist "hardnested tables exists" "./client/resources/hardnested_tables/bitflip_0_001_states.bin.bz2"; then break; fi
|
if ! CheckFileExist "hardnested tables exists" "$RESOURCEPATH/hardnested_tables/bitflip_0_001_states.bin.bz2"; then break; fi
|
||||||
if ! CheckFileExist "simmodule fw file exists" "./client/resources/sim011.bin"; then break; fi
|
if ! CheckFileExist "simmodule fw file exists" "$RESOURCEPATH/sim011.bin"; then break; fi
|
||||||
if ! CheckFileExist "iCLASS dictionary exists" "./client/dictionaries/iclass_default_keys.dic"; then break; fi
|
if ! CheckFileExist "iCLASS dictionary exists" "$DICPATH/iclass_default_keys.dic"; then break; fi
|
||||||
if ! CheckFileExist "MFC dictionary exists" "./client/dictionaries/mfc_default_keys.dic"; then break; fi
|
if ! CheckFileExist "MFC dictionary exists" "$DICPATH/mfc_default_keys.dic"; then break; fi
|
||||||
if ! CheckFileExist "MFDES dictionary exists" "./client/dictionaries/mfdes_default_keys.dic"; then break; fi
|
if ! CheckFileExist "MFDES dictionary exists" "$DICPATH/mfdes_default_keys.dic"; then break; fi
|
||||||
if ! CheckFileExist "MFP dictionary exists" "./client/dictionaries/mfp_default_keys.dic"; then break; fi
|
if ! CheckFileExist "MFP dictionary exists" "$DICPATH/mfp_default_keys.dic"; then break; fi
|
||||||
if ! CheckFileExist "MFULC dictionary exists" "./client/dictionaries/mfulc_default_keys.dic"; then break; fi
|
if ! CheckFileExist "MFULC dictionary exists" "$DICPATH/mfulc_default_keys.dic"; then break; fi
|
||||||
if ! CheckFileExist "T55XX dictionary exists" "./client/dictionaries/t55xx_default_pwds.dic"; then break; fi
|
if ! CheckFileExist "T55XX dictionary exists" "$DICPATH/t55xx_default_pwds.dic"; then break; fi
|
||||||
|
|
||||||
echo -e "\n${C_BLUE}Testing tools:${C_NC}"
|
echo -e "\n${C_BLUE}Testing tools:${C_NC}"
|
||||||
if ! CheckExecute "xorcheck test" "tools/xorcheck.py 04 00 80 64 ba" "final LRC XOR byte value: 5A"; then break; fi
|
if ! CheckExecute "xorcheck test" "tools/xorcheck.py 04 00 80 64 ba" "final LRC XOR byte value: 5A"; then break; fi
|
||||||
|
@ -474,7 +477,7 @@ while true; do
|
||||||
if ! CheckExecute slow retry ignore "hf mf hardnested long test" "$CLIENTBIN -c 'hf mf hardnested -t --tk 000000000000'" "found:"; then break; fi
|
if ! CheckExecute slow retry ignore "hf mf hardnested long test" "$CLIENTBIN -c 'hf mf hardnested -t --tk 000000000000'" "found:"; then break; fi
|
||||||
if ! CheckExecute slow "hf iclass loclass long test" "$CLIENTBIN -c 'hf iclass loclass --long'" "verified (ok)"; then break; fi
|
if ! CheckExecute slow "hf iclass loclass long test" "$CLIENTBIN -c 'hf iclass loclass --long'" "verified (ok)"; then break; fi
|
||||||
if ! CheckExecute slow "emv long test" "$CLIENTBIN -c 'emv test -l'" "Test(s) \[ ok"; then break; fi
|
if ! CheckExecute slow "emv long test" "$CLIENTBIN -c 'emv test -l'" "Test(s) \[ ok"; then break; fi
|
||||||
if ! CheckExecute "hf iclass lookup test" "$CLIENTBIN -c 'hf iclass lookup --csn 9655a400f8ff12e0 --epurse f0ffffffffffffff --macs 0000000089cb984b -f iclass_default_keys.dic'" \
|
if ! CheckExecute "hf iclass lookup test" "$CLIENTBIN -c 'hf iclass lookup --csn 9655a400f8ff12e0 --epurse f0ffffffffffffff --macs 0000000089cb984b -f $DICPATH/iclass_default_keys.dic'" \
|
||||||
"valid key AE A6 84 A6 DA B2 32 78"; then break; fi
|
"valid key AE A6 84 A6 DA B2 32 78"; then break; fi
|
||||||
|
|
||||||
if ! $SLOWTESTS; then
|
if ! $SLOWTESTS; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue