runners: Added optional BENCH/TEST_NAND geometry

Having BENCH/TEST_NAND ifdefs that enable the relevant timings, but
_not_ the relevant geometry, is certainly a choice.

Defaulting to NAND geometry when BENCH/TEST_NAND is defined is more
useful, if only for minimizing confusion.
This commit is contained in:
Christopher Haster
2026-01-31 21:49:56 -06:00
parent f76bd279ba
commit b1d8114889
2 changed files with 25 additions and 5 deletions
+11 -3
View File
@@ -4,9 +4,17 @@
// preconfigured defines that control how tests run
#ifdef TEST_DEFINE
// name value (overridable)
TEST_DEFINE(READ_SIZE, 1 )
TEST_DEFINE(PROG_SIZE, 1 )
TEST_DEFINE(BLOCK_SIZE, 4096 )
#ifndef TEST_NAND
// NOR flash geometry
TEST_DEFINE(READ_SIZE, 1 )
TEST_DEFINE(PROG_SIZE, 1 )
TEST_DEFINE(BLOCK_SIZE, 4096 )
#else
// NAND flash geometry
TEST_DEFINE(READ_SIZE, 1 )
TEST_DEFINE(PROG_SIZE, 512 )
TEST_DEFINE(BLOCK_SIZE, 131072 )
#endif
TEST_DEFINE(BLOCK_COUNT, DISK_SIZE/BLOCK_SIZE )
TEST_DEFINE(DISK_SIZE, 1024*1024 )
TEST_DEFINE(BLOCK_RECYCLES, -1 )