CIRCT 24.0.0git
Loading...
Searching...
No Matches
test_verilator.TestCompileCommands Class Reference

Public Member Functions

 test_uses_verilator_bin (self, tmp_path)
 test_cmake_and_ninja_commands (self, tmp_path, monkeypatch)
 test_configure_skips_when_inputs_unchanged (self, tmp_path, monkeypatch)
 test_configure_leaves_cmakelists_changes_to_ninja (self, tmp_path, monkeypatch)
 test_configure_runs_when_environment_changes (self, tmp_path, monkeypatch)
 test_failed_configure_is_not_cached (self, tmp_path, monkeypatch)
 test_no_exe_or_build_flags_cmake (self, tmp_path)
 test_no_cflags_or_ldflags_cmake (self, tmp_path)
 test_driver_not_in_verilator_cmd_cmake (self, tmp_path)
 test_trace_flags_in_debug (self, tmp_path)
 test_respects_verilator_path_env (self, tmp_path)
 test_verilator_path_redirects_perl_wrapper (self, tmp_path)
 test_verilator_path_overrides_path (self, tmp_path)
 test_compile_commands_requires_verilator_bin (self, tmp_path)
 test_macro_definitions (self, tmp_path)
 test_get_simulator_macro_definitions (self, tmp_path, name)

Detailed Description

Definition at line 141 of file test_verilator.py.

Member Function Documentation

◆ test_cmake_and_ninja_commands()

test_verilator.TestCompileCommands.test_cmake_and_ninja_commands ( self,
tmp_path,
monkeypatch )

Definition at line 150 of file test_verilator.py.

References test_verilator._make_cmake_verilator().

◆ test_compile_commands_requires_verilator_bin()

test_verilator.TestCompileCommands.test_compile_commands_requires_verilator_bin ( self,
tmp_path )

Definition at line 299 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_configure_leaves_cmakelists_changes_to_ninja()

test_verilator.TestCompileCommands.test_configure_leaves_cmakelists_changes_to_ninja ( self,
tmp_path,
monkeypatch )

Definition at line 180 of file test_verilator.py.

References test_verilator._make_cmake_verilator().

◆ test_configure_runs_when_environment_changes()

test_verilator.TestCompileCommands.test_configure_runs_when_environment_changes ( self,
tmp_path,
monkeypatch )

Definition at line 196 of file test_verilator.py.

References test_verilator._make_cmake_verilator().

◆ test_configure_skips_when_inputs_unchanged()

test_verilator.TestCompileCommands.test_configure_skips_when_inputs_unchanged ( self,
tmp_path,
monkeypatch )

Definition at line 165 of file test_verilator.py.

References test_verilator._make_cmake_verilator().

◆ test_driver_not_in_verilator_cmd_cmake()

test_verilator.TestCompileCommands.test_driver_not_in_verilator_cmd_cmake ( self,
tmp_path )
When using cmake, driver.cpp should not be in the verilator command.

Definition at line 251 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_failed_configure_is_not_cached()

test_verilator.TestCompileCommands.test_failed_configure_is_not_cached ( self,
tmp_path,
monkeypatch )

Definition at line 212 of file test_verilator.py.

References test_verilator._make_cmake_verilator().

◆ test_get_simulator_macro_definitions()

test_verilator.TestCompileCommands.test_get_simulator_macro_definitions ( self,
tmp_path,
name )

Definition at line 316 of file test_verilator.py.

◆ test_macro_definitions()

test_verilator.TestCompileCommands.test_macro_definitions ( self,
tmp_path )

Definition at line 309 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_no_cflags_or_ldflags_cmake()

test_verilator.TestCompileCommands.test_no_cflags_or_ldflags_cmake ( self,
tmp_path )
When using cmake, -CFLAGS and -LDFLAGS should not appear.

Definition at line 241 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_no_exe_or_build_flags_cmake()

test_verilator.TestCompileCommands.test_no_exe_or_build_flags_cmake ( self,
tmp_path )
When using cmake, --exe and --build should not appear.

Definition at line 231 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_respects_verilator_path_env()

test_verilator.TestCompileCommands.test_respects_verilator_path_env ( self,
tmp_path )

Definition at line 267 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_trace_flags_in_debug()

test_verilator.TestCompileCommands.test_trace_flags_in_debug ( self,
tmp_path )

Definition at line 260 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_uses_verilator_bin()

test_verilator.TestCompileCommands.test_uses_verilator_bin ( self,
tmp_path )

Definition at line 144 of file test_verilator.py.

References test_verilator._make_verilator().

◆ test_verilator_path_overrides_path()

test_verilator.TestCompileCommands.test_verilator_path_overrides_path ( self,
tmp_path )

Definition at line 285 of file test_verilator.py.

◆ test_verilator_path_redirects_perl_wrapper()

test_verilator.TestCompileCommands.test_verilator_path_redirects_perl_wrapper ( self,
tmp_path )

Definition at line 275 of file test_verilator.py.

References test_verilator._make_verilator().


The documentation for this class was generated from the following file: