split slow tests

This commit is contained in:
Philippe Teuwen
2019-09-21 18:32:07 +02:00
parent e7d67fc2b0
commit 782feb934a
9 changed files with 43 additions and 17 deletions

View File

@@ -637,7 +637,7 @@ static int _testHash1() {
return 0;
}
int testElite() {
int testElite(bool slowtests) {
PrintAndLogEx(INFO, "Testing iClass Elite functinality...");
PrintAndLogEx(INFO, "Testing hash2");
uint8_t k_cus[8] = {0x5B, 0x7C, 0x62, 0xC4, 0x91, 0xC1, 0x1B, 0x39};
@@ -669,6 +669,7 @@ int testElite() {
errors += _testHash1();
PrintAndLogEx(INFO, "Testing key diversification ...");
errors += _test_iclass_key_permutation();
errors += _testBruteforce();
if (slowtests)
errors += _testBruteforce();
return errors;
}