From 6b7678edeb4835e0741a894a11a2d5e7cedd814b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 26 Aug 2026 20:47:55 +0200 Subject: [PATCH] added some tests of etc annotations --- tools/pm3_tests.sh | 5 +++++ traces/smart_7816.trace | Bin 0 -> 169 bytes 2 files changed, 5 insertions(+) create mode 100644 traces/smart_7816.trace diff --git a/tools/pm3_tests.sh b/tools/pm3_tests.sh index 16bd3719b..6bbe32e19 100755 --- a/tools/pm3_tests.sh +++ b/tools/pm3_tests.sh @@ -474,6 +474,11 @@ while true; do if ! CheckExecute "analyse regex selftest" "$CLIENTBIN -c 'analyse regex --test'" "Tests \( ok \)"; then break; fi if ! CheckExecute "trace load/list 14a" "$CLIENTBIN -c 'trace load -f traces/hf_14a_mfu.trace; trace list -1 -t 14a;'" "READBLOCK\(8\)"; then break; fi if ! CheckExecute "trace load/list x" "$CLIENTBIN -c 'trace load -f traces/hf_14a_mfu.trace; trace list -x1 -t 14a;'" "0.0101840425"; then break; fi + if ! CheckExecute "trace list 7816 T=0 apdu" "$CLIENTBIN -c 'trace load -f traces/smart_7816.trace; trace list -1 -t 7816;'" "A0 A4 00 00 02 3F 00 .*SELECT FILE"; then break; fi + if ! CheckExecute "trace list 7816 getresp" "$CLIENTBIN -c 'trace load -f traces/smart_7816.trace; trace list -1 -t 7816;'" "A0 C0 00 00 22 .*GET RESPONSE"; then break; fi + if ! CheckExecute "trace list 7816 T=1 block" "$CLIENTBIN -c 'trace load -f traces/smart_7816.trace; trace list -1 -t 7816;'" "I-block N\(S\)=0"; then break; fi + if ! CheckExecute "smart pps help" "$CLIENTBIN -c 'smart pps -h'" "select protocol T=1"; then break; fi + if ! CheckExecute "smart raw help t1" "$CLIENTBIN -c 'smart raw -h'" "use protocol T=1"; then break; fi if ! CheckExecute "nfc decode test oob" "$CLIENTBIN -c 'nfc decode -d DA2010016170706C69636174696F6E2F766E642E626C7565746F6F74682E65702E6F6F62301000649201B96DFB0709466C65782032'" "Flex 2"; then break; fi if ! CheckExecute "nfc decode test device info" "$CLIENTBIN -c 'nfc decode -d d1025744690004536f6e79010752432d533338300220426c61636b204e46432052656164657220636f6e6e656374656420746f2050430310123e4567e89b12d3a45642665544000004124e464320506f72742d3130302076312e3032'" "NFC Port-100 v1.02"; then break; fi if ! CheckExecute "nfc decode test vcard" "$CLIENTBIN -c 'nfc decode -d d20ca3746578742f782d7643617264424547494e3a56434152440a56455253494f4e3a332e300a4e3a43687269733b4963656d616e3b3b3b0a464e3a476f7468656e627572670a5245563a323032312d30362d32345432303a31353a30385a0a6974656d322e582d4142444154453b747970653d707265663a323032302d30362d32340a4954454d322e582d41424c4142454c3a5f24213c416e6e69766572736172793e21245f0a454e443a56434152440a'" "END:VCARD"; then break; fi diff --git a/traces/smart_7816.trace b/traces/smart_7816.trace new file mode 100644 index 0000000000000000000000000000000000000000..e6a50720f0947c4b9f22356202435759bf961b9e GIT binary patch literal 169 zcmZQz00FTE>-p0fU>5 literal 0 HcmV?d00001