Skip to content

Commit 9b37dac

Browse files
committed
Added support for dynamic seed generation.
1 parent 50df180 commit 9b37dac

27 files changed

+625
-109
lines changed

docs/run/img/list.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py --list
2+
lib.tb_fail_on_warning.Test that fails on an assert
3+
lib.tb_fail_on_warning.Test that crashes on boundary problems
4+
lib.tb_fail_on_warning.Test that fails on VUnit check procedure
5+
lib.tb_fail_on_warning.Test that a warning passes
26
lib.tb_magic_paths.all
37
lib.tb_minimal.all
48
lib.tb_running_test_case.Test scenario A
59
lib.tb_running_test_case.Test scenario B
610
lib.tb_running_test_case.Test something else
711
lib.tb_run_all_in_same_sim.Test to_string for integer again
812
lib.tb_run_all_in_same_sim.Test to_string for boolean again
13+
lib.tb_seed.all
914
lib.tb_standalone.Test that fails on VUnit check procedure
1015
lib.tb_standalone.Test to_string for boolean
1116
lib.tb_stopping_failure.Test that fails on an assert
1217
lib.tb_stopping_failure.Test that crashes on boundary problems
1318
lib.tb_stopping_failure.Test that fails on VUnit check procedure
19+
lib.tb_stopping_failure.Test that a warning passes
1420
lib.tb_stop_level.Test that fails multiple times but doesn't stop
1521
lib.tb_with_lower_level_control.Test something
1622
lib.tb_with_lower_level_control.Test something else
@@ -19,5 +25,5 @@
1925
lib.tb_with_watchdog.Test that stalls
2026
lib.tb_with_watchdog.Test to_string for boolean
2127
lib.tb_with_watchdog.Test that needs longer timeout
22-
Listed 20 tests
28+
Listed 26 tests
2329
</pre></div>
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py -v
22
Starting lib.tb_magic_paths.all
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_magic_paths.all_243b3c717ce1d4e82490245d1b7e8fe8797f5e94\output.txt
4+
Seed for lib.tb_magic_paths.all: 3680f2e2321cdac3
45
0 fs - default - INFO - Directory containing testbench: C:/github/vunit/docs/run/src/
56
0 fs - default - INFO - Test output directory: C:/github/vunit/docs/run/src/vunit_out/test_output/lib.tb_magic_paths.all_243b3c717ce1d4e82490245d1b7e8fe8797f5e94/
67
simulation stopped @0ms with status 0
7-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=1) lib.tb_magic_paths.all (0.5 seconds)
8+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=1) lib.tb_magic_paths.all (0.6 s)
89

910
==== Summary ==================================
10-
<span style="color: #008000; ">pass</span> lib.tb_magic_paths.all (0.5 seconds)
11+
<span style="color: #008000; ">pass</span> lib.tb_magic_paths.all (0.6 s)
1112
===============================================
1213
<span style="color: #008000; ">pass</span> 1 of 1
1314
===============================================
14-
Total time was 0.5 seconds
15-
Elapsed time was 0.5 seconds
15+
Total time was 0.6 s
16+
Elapsed time was 0.6 s
1617
===============================================
1718
<span style="color: #008000; ">All passed!</span>
1819
</pre></div>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_minimal.all
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_minimal.all_42aa262c7c96c708ab3f3960f033f2328c642136\output.txt
4-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=1) lib.tb_minimal.all (0.5 seconds)
4+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=1) lib.tb_minimal.all (0.6 s)
55

66
==== Summary ==============================
7-
<span style="color: #008000; ">pass</span> lib.tb_minimal.all (0.5 seconds)
7+
<span style="color: #008000; ">pass</span> lib.tb_minimal.all (0.6 s)
88
===========================================
99
<span style="color: #008000; ">pass</span> 1 of 1
1010
===========================================
11-
Total time was 0.5 seconds
12-
Elapsed time was 0.5 seconds
11+
Total time was 0.6 s
12+
Elapsed time was 0.6 s
1313
===========================================
1414
<span style="color: #008000; ">All passed!</span>
1515
</pre></div>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_running_test_case.Test scenario A
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_running_test_case.Test_scenario_A_b118fcdf82c6ba5772e038ce7455962692f50c2a\output.txt
4-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=3) lib.tb_running_test_case.Test scenario A (0.5 seconds)
4+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=3) lib.tb_running_test_case.Test scenario A (0.6 s)
55

6-
Starting lib.tb_running_test_case.Test scenario B
6+
(22:55:49) Starting lib.tb_running_test_case.Test scenario B
77
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_running_test_case.Test_scenario_B_8cd407ec92589901f9b4594c0f27835478242f2c\output.txt
8-
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=3) lib.tb_running_test_case.Test scenario B (0.5 seconds)
8+
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=3) lib.tb_running_test_case.Test scenario B (0.6 s)
99

10-
Starting lib.tb_running_test_case.Test something else
10+
(22:55:50) Starting lib.tb_running_test_case.Test something else
1111
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_running_test_case.Test_something_else_27dcc1aa8d44993b6b2d0b0a017fa6001b4c2aa7\output.txt
12-
<span style="color: #008000; ">pass</span> (P=3 S=0 F=0 T=3) lib.tb_running_test_case.Test something else (0.5 seconds)
12+
<span style="color: #008000; ">pass</span> (P=3 S=0 F=0 T=3) lib.tb_running_test_case.Test something else (0.6 s)
1313

1414
==== Summary ========================================================
15-
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test scenario A (0.5 seconds)
16-
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test scenario B (0.5 seconds)
17-
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test something else (0.5 seconds)
15+
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test scenario A (0.6 s)
16+
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test scenario B (0.6 s)
17+
<span style="color: #008000; ">pass</span> lib.tb_running_test_case.Test something else (0.6 s)
1818
=====================================================================
1919
<span style="color: #008000; ">pass</span> 3 of 3
2020
=====================================================================
21-
Total time was 1.6 seconds
22-
Elapsed time was 1.6 seconds
21+
Total time was 1.8 s
22+
Elapsed time was 1.8 s
2323
=====================================================================
2424
<span style="color: #008000; ">All passed!</span>
2525
</pre></div>
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_stop_level.Test that fails multiple times but doesn't stop
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_stop_level.Test_that_fails_multiple_times_but_doesn't_stop_d08f48d859442d0bc71e2bcdd8b429119f7cc17c\output.txt
4+
Seed for lib.tb_stop_level.Test that fails multiple times but doesn't stop: 7a0e979de335b966
45
0 fs - check - ERROR - Equality check failed - Got 17. Expected 18.
56
0 fs - check - ERROR - Equality check failed - Got 17. Expected 19.
67
FAILURE - Logger check has 2 errors
7-
C:\github\vunit\vunit\vhdl\core\src\core_pkg.vhd:84:7:@0ms:(report failure): Final log check failed
8-
C:\ghdl\bin\ghdl.exe:error: report failed
9-
in process .tb_stop_level(tb).test_runner
10-
from: vunit_lib.logger_pkg.final_log_check at logger_pkg-body.vhd:1249
11-
from: vunit_lib.run_pkg.test_runner_cleanup at run.vhd:114
12-
from: process lib.tb_stop_level(tb).test_runner at tb_stop_level.vhd:29
13-
C:\ghdl\bin\ghdl.exe:error: simulation failed
14-
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=1 T=1) lib.tb_stop_level.Test that fails multiple times but doesn't stop (0.5 seconds)
8+
C:\github\vunit\vunit\vhdl\core\src\core_pkg.vhd:85:7:@0ms:(report failure): Final log check failed
9+
ghdl:error: report failed
10+
ghdl:error: simulation failed
11+
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=1 T=1) lib.tb_stop_level.Test that fails multiple times but doesn't stop (0.6 s)
1512

1613
==== Summary =============================================================================
17-
<span style="color: #cb4b16; ">fail</span> lib.tb_stop_level.Test that fails multiple times but doesn't stop (0.5 seconds)
14+
<span style="color: #cb4b16; ">fail</span> lib.tb_stop_level.Test that fails multiple times but doesn't stop (0.6 s)
1815
==========================================================================================
1916
<span style="color: #008000; ">pass</span> 0 of 1
2017
<span style="color: #cb4b16; ">fail</span> 1 of 1
2118
==========================================================================================
22-
Total time was 0.5 seconds
23-
Elapsed time was 0.5 seconds
19+
Total time was 0.6 s
20+
Elapsed time was 0.6 s
2421
==========================================================================================
2522
<span style="color: #cb4b16; ">Some failed!</span>
2623
</pre></div>
Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_stopping_failure.Test that fails on an assert
3-
Output file: C:\repos\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_fails_on_an_assert_f53b930e2c7649bc33253af52f8ea89a9c05f07b\output.txt
4-
C:\repos\vunit\docs\run\src\tb_stopping_failure.vhd:24:9:@0ms:(assertion error): Assertion violation
3+
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_fails_on_an_assert_f53b930e2c7649bc33253af52f8ea89a9c05f07b\output.txt
4+
Seed for lib.tb_stopping_failure.Test that fails on an assert: a866d0986a663e6b
5+
C:\github\vunit\docs\run\src\tb_stopping_failure.vhd:24:9:@0ms:(assertion error): Assertion violation
56
ghdl:error: assertion failed
67
ghdl:error: simulation failed
7-
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=1 T=4) lib.tb_stopping_failure.Test that fails on an assert (0.5 s)
8+
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=1 T=4) lib.tb_stopping_failure.Test that fails on an assert (0.6 s)
89

9-
(11:35:31) Starting lib.tb_stopping_failure.Test that crashes on boundary problems
10-
Output file: C:\repos\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_crashes_on_boundary_problems_b53105615efefaa16d0cf9ee1bad37b5d3369e95\output.txt
11-
ghdl:error: index (314) out of bounds (1 to 17) at C:\repos\vunit\docs\run\src\tb_stopping_failure.vhd:26
10+
(22:55:55) Starting lib.tb_stopping_failure.Test that crashes on boundary problems
11+
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_crashes_on_boundary_problems_b53105615efefaa16d0cf9ee1bad37b5d3369e95\output.txt
12+
Seed for lib.tb_stopping_failure.Test that crashes on boundary problems: cbcb543764149e78
13+
ghdl:error: index (340) out of bounds (1 to 17) at C:\github\vunit\docs\run\src\tb_stopping_failure.vhd:26
1214
ghdl:error: simulation failed
13-
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=2 T=4) lib.tb_stopping_failure.Test that crashes on boundary problems (0.5 s)
15+
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=2 T=4) lib.tb_stopping_failure.Test that crashes on boundary problems (0.6 s)
1416

15-
(11:35:31) Starting lib.tb_stopping_failure.Test that fails on VUnit check procedure
16-
Output file: C:\repos\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_fails_on_VUnit_check_procedure_717a6f8ff044e3d5fa7d7d3ec5a32971d74864dd\output.txt
17+
(22:55:55) Starting lib.tb_stopping_failure.Test that fails on VUnit check procedure
18+
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_fails_on_VUnit_check_procedure_717a6f8ff044e3d5fa7d7d3ec5a32971d74864dd\output.txt
19+
Seed for lib.tb_stopping_failure.Test that fails on VUnit check procedure: 6581894e9ea614b1
1720
0 fs - check - ERROR - Equality check failed - Got 17. Expected 18.
18-
C:\repos\vunit\vunit\vhdl\core\src\core_pkg.vhd:85:7:@0ms:(report failure): Stop simulation on log level error
21+
C:\github\vunit\vunit\vhdl\core\src\core_pkg.vhd:85:7:@0ms:(report failure): Stop simulation on log level error
1922
ghdl:error: report failed
2023
ghdl:error: simulation failed
21-
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=3 T=4) lib.tb_stopping_failure.Test that fails on VUnit check procedure (0.5 s)
24+
<span style="color: #cb4b16; ">fail</span> (P=0 S=0 F=3 T=4) lib.tb_stopping_failure.Test that fails on VUnit check procedure (0.6 s)
2225

23-
(11:35:32) Starting lib.tb_stopping_failure.Test that a warning passes
24-
Output file: C:\repos\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_a_warning_passes_7db91f3b27aea5f89e74e39ea51ce6d61558674e\output.txt
25-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=3 T=4) lib.tb_stopping_failure.Test that a warning passes (0.4 s)
26+
(22:55:56) Starting lib.tb_stopping_failure.Test that a warning passes
27+
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_stopping_failure.Test_that_a_warning_passes_7db91f3b27aea5f89e74e39ea51ce6d61558674e\output.txt
28+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=3 T=4) lib.tb_stopping_failure.Test that a warning passes (0.6 s)
2629

2730
==== Summary ============================================================================
28-
<span style="color: #008000; ">pass</span> lib.tb_stopping_failure.Test that a warning passes (0.4 s)
29-
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that fails on an assert (0.5 s)
30-
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that crashes on boundary problems (0.5 s)
31-
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that fails on VUnit check procedure (0.5 s)
31+
<span style="color: #008000; ">pass</span> lib.tb_stopping_failure.Test that a warning passes (0.6 s)
32+
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that fails on an assert (0.6 s)
33+
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that crashes on boundary problems (0.6 s)
34+
<span style="color: #cb4b16; ">fail</span> lib.tb_stopping_failure.Test that fails on VUnit check procedure (0.6 s)
3235
=========================================================================================
3336
<span style="color: #008000; ">pass</span> 1 of 4
3437
<span style="color: #cb4b16; ">fail</span> 3 of 4
3538
=========================================================================================
36-
Total time was 1.8 s
37-
Elapsed time was 1.8 s
39+
Total time was 2.4 s
40+
Elapsed time was 2.4 s
3841
=========================================================================================
3942
<span style="color: #cb4b16; ">Some failed!</span>
4043
</pre></div>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_with_lower_level_control.Test something
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_with_lower_level_control.Test_something_a280708dc2f527dff5e45e7a7d2b48df39330b4f\output.txt
4-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=2) lib.tb_with_lower_level_control.Test something (0.5 seconds)
4+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=2) lib.tb_with_lower_level_control.Test something (0.6 s)
55

6-
Starting lib.tb_with_lower_level_control.Test something else
6+
(22:55:51) Starting lib.tb_with_lower_level_control.Test something else
77
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_with_lower_level_control.Test_something_else_e47dc199cab8c612d9a0f46b8be7d141576fc970\output.txt
8-
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=2) lib.tb_with_lower_level_control.Test something else (0.5 seconds)
8+
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=2) lib.tb_with_lower_level_control.Test something else (0.6 s)
99

1010
==== Summary ===============================================================
11-
<span style="color: #008000; ">pass</span> lib.tb_with_lower_level_control.Test something (0.5 seconds)
12-
<span style="color: #008000; ">pass</span> lib.tb_with_lower_level_control.Test something else (0.5 seconds)
11+
<span style="color: #008000; ">pass</span> lib.tb_with_lower_level_control.Test something (0.6 s)
12+
<span style="color: #008000; ">pass</span> lib.tb_with_lower_level_control.Test something else (0.6 s)
1313
============================================================================
1414
<span style="color: #008000; ">pass</span> 2 of 2
1515
============================================================================
16-
Total time was 1.1 seconds
17-
Elapsed time was 1.1 seconds
16+
Total time was 1.2 s
17+
Elapsed time was 1.2 s
1818
============================================================================
1919
<span style="color: #008000; ">All passed!</span>
2020
</pre></div>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<div class="highlight" style="background: #002b36; color: #eee8d5;"><pre style="line-height: 125%; background: #002b36; color: #eee8d5;">> python run.py
22
Starting lib.tb_with_test_cases.Test to_string for integer
33
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_with_test_cases.Test_to_string_for_integer_f5d39e15e865eddcda2b57f65dddc2428c994af4\output.txt
4-
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=2) lib.tb_with_test_cases.Test to_string for integer (0.6 seconds)
4+
<span style="color: #008000; ">pass</span> (P=1 S=0 F=0 T=2) lib.tb_with_test_cases.Test to_string for integer (0.6 s)
55

6-
Starting lib.tb_with_test_cases.Test to_string for boolean
6+
(22:55:48) Starting lib.tb_with_test_cases.Test to_string for boolean
77
Output file: C:\github\vunit\docs\run\src\vunit_out\test_output\lib.tb_with_test_cases.Test_to_string_for_boolean_38c3f897030cff968430d763a9bbc23202de1a7b\output.txt
8-
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=2) lib.tb_with_test_cases.Test to_string for boolean (0.5 seconds)
8+
<span style="color: #008000; ">pass</span> (P=2 S=0 F=0 T=2) lib.tb_with_test_cases.Test to_string for boolean (0.6 s)
99

1010
==== Summary =============================================================
11-
<span style="color: #008000; ">pass</span> lib.tb_with_test_cases.Test to_string for integer (0.6 seconds)
12-
<span style="color: #008000; ">pass</span> lib.tb_with_test_cases.Test to_string for boolean (0.5 seconds)
11+
<span style="color: #008000; ">pass</span> lib.tb_with_test_cases.Test to_string for integer (0.6 s)
12+
<span style="color: #008000; ">pass</span> lib.tb_with_test_cases.Test to_string for boolean (0.6 s)
1313
==========================================================================
1414
<span style="color: #008000; ">pass</span> 2 of 2
1515
==========================================================================
16-
Total time was 1.1 seconds
17-
Elapsed time was 1.1 seconds
16+
Total time was 1.2 s
17+
Elapsed time was 1.2 s
1818
==========================================================================
1919
<span style="color: #008000; ">All passed!</span>
2020
</pre></div>

0 commit comments

Comments
 (0)