blob: cfbe80c2f021dbc6c5846b1f9772a800db78f60a [file] [log] [blame]
Philipp Wagner03aaf322020-09-09 19:11:44 +01001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
Philipp Wagnera3adde22020-11-06 14:25:04 +00005# List of self-checking test applications, which return PASS or FAIL after
6# completion.
7#
8# Each list entry is a dict with the following keys:
9#
10# name:
11# Name of the test (required)
12# binary_name:
13# Basename of the test binary. Default: name (optional)
14# verilator_extra_args:
15# A list of additional command-line arguments passed to the Verilator
16# simulation (optional).
17# targets:
18# List of targets for which the test is executed. The test will be executed
19# on all targets if not given (optional).
Philipp Wagner03aaf322020-09-09 19:11:44 +010020TEST_APPS_SELFCHECKING = [
Philipp Wagnera3adde22020-11-06 14:25:04 +000021 {
Philipp Wagnera3adde22020-11-06 14:25:04 +000022 "name": "crt_test",
23 },
24 {
Philipp Wagner8654b022020-11-17 19:06:36 +000025 "name": "dif_otbn_smoketest_rtl",
26 "binary_name": "dif_otbn_smoketest",
Philipp Wagner07aab342020-11-06 14:26:09 +000027 "verilator_extra_args": ['+OTBN_USE_MODEL=0'],
28 },
Rupert Swarbrick4a4b5272020-12-18 14:46:24 +000029 {
30 "name": "dif_otbn_smoketest_model",
31 "binary_name": "dif_otbn_smoketest",
32 "verilator_extra_args": ['+OTBN_USE_MODEL=1'],
33 "targets": ["sim_verilator"],
34 },
Philipp Wagnerf52bf202021-02-15 19:17:11 +000035 # The OTBN end-to-end tests can be run in simulation, but take a long time
36 # there. Run them on FPGAs only for faster test results.
Philipp Wagner351c14b2020-11-13 11:55:16 +000037 {
38 "name": "otbn_rsa_test",
39 "targets": ["fpga_nexysvideo"],
40 },
Philipp Wagner07aab342020-11-06 14:26:09 +000041 {
Philipp Wagnerf52bf202021-02-15 19:17:11 +000042 "name": "otbn_ecdsa_p256_test",
43 "targets": ["fpga_nexysvideo"],
44 },
45 {
Silvestrs Timofejevs282e0092021-01-25 15:44:08 +000046 "name": "dif_aes_smoketest",
47 },
48 {
Silvestrs Timofejevsa558aaa2021-03-17 15:48:03 +000049 "name": "dif_aon_timer_smoketest",
50 },
51 {
Miguel Young de la Sota8a4cf452020-11-04 09:57:10 -050052 "name": "dif_otp_ctrl_smoketest",
53 },
54 {
Sam Elliottf8456182020-11-19 12:21:30 +000055 "name": "dif_plic_smoketest",
Philipp Wagnera3adde22020-11-06 14:25:04 +000056 },
57 {
Sam Elliottf8456182020-11-19 12:21:30 +000058 "name": "dif_rstmgr_smoketest",
Philipp Wagnera3adde22020-11-06 14:25:04 +000059 },
60 {
Sam Elliottf8456182020-11-19 12:21:30 +000061 "name": "dif_rv_timer_smoketest",
Philipp Wagnera3adde22020-11-06 14:25:04 +000062 },
63 {
Sam Elliottf8456182020-11-19 12:21:30 +000064 "name": "dif_uart_smoketest",
Philipp Wagnera3adde22020-11-06 14:25:04 +000065 },
66 {
Michael Mundayef8f82d2021-01-27 11:35:33 +000067 "name": "dif_clkmgr_smoketest",
68 },
69 {
Miguel Osorio5bf75e92021-03-31 11:33:08 -070070 "name": "dif_csrng_smoketest",
71 },
Timothy Chen28047082021-04-08 09:18:13 -070072 # TODO: The entropy smoketest is too unstable without #5941.
73 # Any change in the processor sequence causes the timing of the disable / enable to change
74 # and thus might produce different results. This test will be completely removed for
75 # now until the feature is ready.
Miguel Osoriobcd505f2021-04-14 22:41:23 -070076 # {
Timothy Chen28047082021-04-08 09:18:13 -070077 # "name": "dif_entropy_smoketest",
78 # "targets": ["sim_verilator"],
Miguel Osoriobcd505f2021-04-14 22:41:23 -070079 # },
Miguel Osoriodf7aa712021-03-27 17:25:14 -070080 {
Philipp Wagnera3adde22020-11-06 14:25:04 +000081 "name": "flash_ctrl_test",
82 },
83 {
Sam Elliottf8456182020-11-19 12:21:30 +000084 "name": "pmp_smoketest_napot",
Philipp Wagnera3adde22020-11-06 14:25:04 +000085 },
86 {
Sam Elliottf8456182020-11-19 12:21:30 +000087 "name": "pmp_smoketest_tor",
Philipp Wagnera3adde22020-11-06 14:25:04 +000088 },
89 {
90 "name": "sha256_test",
91 },
92 {
93 "name": "usbdev_test",
94 "targets": ["sim_verilator"],
95 },
Alphan Ulusoy60168382020-12-08 10:08:48 -050096 # Cannot run on sim_verilator due to the differences in the top level.
97 {
98 "name": "dif_gpio_smoketest",
99 "targets": ["fpga_nexysvideo"],
100 },
Philipp Wagner03aaf322020-09-09 19:11:44 +0100101]