Skip compilation when no tests match filter#1191
Skip compilation when no tests match filter#1191robindust-ce wants to merge 2 commits intoVUnit:masterfrom
Conversation
|
I see what your coming from but I think automatically skipping compilation when there are no matching tests would undermine the purpose of the To fix the current issue with the Makes sense? |
|
Yes that makes sense and would be satisfactory for me. However, I have never considered library ieee;
use ieee.std_logic_1164.all;
library vunit_lib;
context vunit_lib.vunit_context;
library common;
entity tb_component is
generic (runner_cfg : string);
end entity;
architecture struct of tb_component is
component dut is
port (
clk : in std_logic;
data : out std_logic
);
end component;
signal clk : std_logic := '0';
signal data : std_logic;
begin
-- Component instantiation: default binding resolves to common.ram_ecc
i_dut : dut port map (clk => clk, data => data);
main : process
begin
test_runner_setup(runner, runner_cfg);
clk <= '1';
wait for 10 ns;
check_equal(data, '1', "data should be driven");
test_runner_cleanup(runner);
end process;
end architecture; |
Suggestion for #1157
Compilation is skipped when no tests match the active filters (e.g.
--with-attributes), avoiding unnecessary work when no tests would run.