Skip to content

Commit

Permalink
tests: Remove unnecessary CONFIG_TEST_RANDOM_GENERATOR
Browse files Browse the repository at this point in the history
Remove CONFIG_TEST_RANDOM_GENERATOR from each test and sample where it
is not required.

Change-Id: I949f8e93c2cb1881622a5e48efeb87c43122a170
Signed-off-by: Marcus Shawcroft <[email protected]>
  • Loading branch information
mshawcroft authored and Anas Nashif committed Dec 13, 2016
1 parent de4727b commit fe8d044
Show file tree
Hide file tree
Showing 47 changed files with 1 addition and 142 deletions.
1 change: 0 additions & 1 deletion samples/bluetooth/peripheral_esp/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_BLUETOOTH=y
CONFIG_BLUETOOTH_PERIPHERAL=y
CONFIG_BLUETOOTH_GATT_DYNAMIC_DB=y
Expand Down
3 changes: 0 additions & 3 deletions samples/legacy/philosophers/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
3 changes: 0 additions & 3 deletions tests/bluetooth/test_bluetooth/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_BLUETOOTH=y
CONFIG_BLUETOOTH_NO_DRIVER=y
CONFIG_BLUETOOTH_DEBUG_LOG=y
Expand Down
1 change: 0 additions & 1 deletion tests/crypto/test_aes/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_MAIN_STACK_SIZE=5120
1 change: 0 additions & 1 deletion tests/crypto/test_cbc_mode/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_AES_CBC=y
1 change: 0 additions & 1 deletion tests/crypto/test_ccm_mode/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_AES_CCM=y
1 change: 0 additions & 1 deletion tests/crypto/test_cmac_mode/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_AES_CMAC=y
1 change: 0 additions & 1 deletion tests/crypto/test_ctr_mode/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_AES_CTR=y
1 change: 0 additions & 1 deletion tests/crypto/test_ctr_prng/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_CTR_PRNG=y
Expand Down
1 change: 0 additions & 1 deletion tests/crypto/test_hmac/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_SHA256=y
CONFIG_TINYCRYPT_SHA256_HMAC=y
Expand Down
1 change: 0 additions & 1 deletion tests/crypto/test_hmac_prng/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MAIN_STACK_SIZE=40960
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_SHA256=y
Expand Down
1 change: 0 additions & 1 deletion tests/crypto/test_sha256/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_SHA256=y
CONFIG_MAIN_STACK_SIZE=40960
4 changes: 0 additions & 4 deletions tests/kernel/test_sprintf/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_NUM_IRQS=2
CONFIG_FLOAT=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y
CONFIG_CPU_CLOCK_FREQ_MHZ=1800

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_CPU_CLOCK_FREQ_MHZ=32
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_CPU_CLOCK_FREQ_MHZ=32
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y
CONFIG_CPU_CLOCK_FREQ_MHZ=533
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y
CONFIG_CPU_CLOCK_FREQ_MHZ=1800

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_CPU_CLOCK_FREQ_MHZ=32
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_CPU_CLOCK_FREQ_MHZ=32
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CONFIG_PERFORMANCE_METRICS=y
CONFIG_BOOT_TIME_MEASUREMENT=y
CONFIG_CPU_CLOCK_FREQ_MHZ=533
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_context/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_NUM_DYNAMIC_EXC_NOERR_STUBS=1
Expand Down
5 changes: 0 additions & 5 deletions tests/legacy/kernel/test_critical/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
CONFIG_NUM_TASK_PRIORITIES=50

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_events/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_fifo/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
CONFIG_IRQ_OFFLOAD=y
Expand Down
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_fifo/nanokernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
Expand Down
1 change: 0 additions & 1 deletion tests/legacy/kernel/test_fp_sharing/microkernel/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ CONFIG_SSE=y
CONFIG_FP_SHARING=y
CONFIG_SSE_FP_MATH=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
5 changes: 0 additions & 5 deletions tests/legacy/kernel/test_fp_sharing/nanokernel/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@ CONFIG_FLOAT=y
CONFIG_SSE=y
CONFIG_FP_SHARING=y
CONFIG_SSE_FP_MATH=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_libs/prj.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_lifo/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
Expand Down
1 change: 0 additions & 1 deletion tests/legacy/kernel/test_mutex/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_NUM_TASK_PRIORITIES=64
CONFIG_NUM_IRQS=2
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_obj_tracing/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CONFIG_DEBUG_TRACING_KERNEL_OBJECTS=y
CONFIG_THREAD_MONITOR=y

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_pend/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_NANO_TIMERS=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_pipe/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NUM_IRQS=2
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_pipe_priv/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NUM_IRQS=2
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_pool/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NUM_IRQS=2
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_sema/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_sema/nanokernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_sema_priv/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_sleep/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_stack/nanokernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_static_idt/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_EXCEPTION_DEBUG=n
CONFIG_MDEF=y
4 changes: 0 additions & 4 deletions tests/legacy/kernel/test_static_idt/nanokernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_EXCEPTION_DEBUG=n
CONFIG_MDEF=y
5 changes: 0 additions & 5 deletions tests/legacy/kernel/test_task/prj.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
CONFIG_NUM_TASK_PRIORITIES=32

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
5 changes: 0 additions & 5 deletions tests/legacy/kernel/test_task_priv/prj.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
CONFIG_NUM_TASK_PRIORITIES=32

# Let stack canaries use non-random number generator.
# This option is NOT to be used in production code.

CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MDEF=y
1 change: 0 additions & 1 deletion tests/legacy/kernel/test_tickless/microkernel/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CONFIG_SYS_POWER_MANAGEMENT=y
CONFIG_TICKLESS_IDLE=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MDEF=y
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CONFIG_SYS_POWER_MANAGEMENT=y
CONFIG_TICKLESS_IDLE=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_ASSERT=y
CONFIG_RTC=y
CONFIG_RTC_QMSI=y
Expand Down

0 comments on commit fe8d044

Please sign in to comment.