Convert more cc_binary to cc_test Add test size attribute to the targets Change-Id: I08fc2dadd37dcf710218e0f2bfbed81ce96d175d
diff --git a/tests/verilator_sim/BUILD b/tests/verilator_sim/BUILD index 5820f32..0de78fc 100644 --- a/tests/verilator_sim/BUILD +++ b/tests/verilator_sim/BUILD
@@ -39,7 +39,21 @@ ) cc_binary( + name = "kelvin_tb", + srcs = [ + "matcha/kelvin_if.h", + "matcha/kelvin_tb.cc", + ], + deps = [ + ":kelvin_if", + ":sim_libs", + "//hdl/chisel:kelvin_cc_library", + ], +) + +cc_test( name = "dbus2axi_tb", + size = "small", srcs = [ "kelvin/dbus2axi_tb.cc", ], @@ -61,8 +75,9 @@ ], ) -cc_binary( +cc_test( name = "l1icache_tb", + size = "small", srcs = [ "kelvin/l1icache_tb.cc", ], @@ -100,8 +115,9 @@ ], ) -cc_binary( +cc_test( name = "vcmdq_tb", + size = "small", srcs = [ "kelvin/vcmdq_tb.cc", ], @@ -113,8 +129,9 @@ ], ) -cc_binary( +cc_test( name = "vconvalu_tb", + size = "small", srcs = [ "kelvin/vconvalu_tb.cc", ], @@ -127,6 +144,7 @@ cc_test( name = "vconvctrl_tb", + size = "small", srcs = [ "kelvin/vconvctrl_tb.cc", ], @@ -140,6 +158,7 @@ cc_test( name = "vdecodeinstruction_tb", + size = "small", srcs = [ "kelvin/vdecodeinstruction_tb.cc", ], @@ -153,6 +172,7 @@ cc_test( name = "vdecode_tb", + size = "small", srcs = [ "kelvin/vdecode_tb.cc", ], @@ -166,6 +186,7 @@ cc_test( name = "vldst_tb", + size = "small", srcs = [ "kelvin/vldst_tb.cc", ], @@ -179,6 +200,7 @@ cc_test( name = "vld_tb", + size = "small", srcs = [ "kelvin/vld_tb.cc", ], @@ -190,8 +212,9 @@ ], ) -cc_binary( +cc_test( name = "vregfilesegment_tb", + size = "small", srcs = [ "kelvin/vregfilesegment_tb.cc", ], @@ -202,7 +225,7 @@ ], ) -cc_binary( +cc_test( name = "vregfile_tb", srcs = [ "kelvin/vregfile_tb.cc", @@ -216,6 +239,7 @@ cc_test( name = "vst_tb", + size = "small", srcs = [ "kelvin/vst_tb.cc", ], @@ -226,16 +250,3 @@ "//hdl/chisel:vst_cc_library", ], ) - -cc_binary( - name = "kelvin_tb", - srcs = [ - "matcha/kelvin_if.h", - "matcha/kelvin_tb.cc", - ], - deps = [ - ":kelvin_if", - ":sim_libs", - "//hdl/chisel:kelvin_cc_library", - ], -)