From adf9bd8f273f4662eedff10a5a32bfe80d881351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Risto=20Peja=C5=A1inovi=C4=87?= Date: Sun, 6 Oct 2024 09:01:17 +0200 Subject: [PATCH] remove unused duplicate tests --- tests/tests/iverilog_multi_top/CMakeLists.txt | 23 ----------------- tests/tests/iverilog_multi_top/inc/header.vh | 1 - tests/tests/iverilog_multi_top/top1.v | 6 ----- tests/tests/iverilog_multi_top/top2.v | 7 ------ tests/tests/iverilog_mutlitop/CMakeLists.txt | 23 ----------------- .../tests/iverilog_simple_test/CMakeLists.txt | 25 ------------------- .../tests/iverilog_simple_test/inc/header.vh | 1 - tests/tests/iverilog_simple_test/tb.v | 20 --------------- 8 files changed, 106 deletions(-) delete mode 100644 tests/tests/iverilog_multi_top/CMakeLists.txt delete mode 100644 tests/tests/iverilog_multi_top/inc/header.vh delete mode 100644 tests/tests/iverilog_multi_top/top1.v delete mode 100644 tests/tests/iverilog_multi_top/top2.v delete mode 100644 tests/tests/iverilog_mutlitop/CMakeLists.txt delete mode 100644 tests/tests/iverilog_simple_test/CMakeLists.txt delete mode 100644 tests/tests/iverilog_simple_test/inc/header.vh delete mode 100644 tests/tests/iverilog_simple_test/tb.v diff --git a/tests/tests/iverilog_multi_top/CMakeLists.txt b/tests/tests/iverilog_multi_top/CMakeLists.txt deleted file mode 100644 index d2c7b07..0000000 --- a/tests/tests/iverilog_multi_top/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -cmake_minimum_required(VERSION 3.25) -project(iverilog_multi_top NONE) - -add_ip(iverilog_multi_top - VENDOR tests - LIBRARY iverilog - VERSION 1 - ) - -ip_sources(${IP} VERILOG - ${PROJECT_SOURCE_DIR}/top1.v - ${PROJECT_SOURCE_DIR}/top2.v - ) - -iverilog(${IP} - TOP_MODULE top2 - ) - -include(CTest) - -add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_BINARY_DIR}/tb) - -add_dependencies(check ${IP}_iverilog) diff --git a/tests/tests/iverilog_multi_top/inc/header.vh b/tests/tests/iverilog_multi_top/inc/header.vh deleted file mode 100644 index 2e493ca..0000000 --- a/tests/tests/iverilog_multi_top/inc/header.vh +++ /dev/null @@ -1 +0,0 @@ -`define INCLUDED_NUM 55 diff --git a/tests/tests/iverilog_multi_top/top1.v b/tests/tests/iverilog_multi_top/top1.v deleted file mode 100644 index 10312c1..0000000 --- a/tests/tests/iverilog_multi_top/top1.v +++ /dev/null @@ -1,6 +0,0 @@ -module top1; - initial begin - $display("Module top1\n"); - $fatal(); - end -endmodule diff --git a/tests/tests/iverilog_multi_top/top2.v b/tests/tests/iverilog_multi_top/top2.v deleted file mode 100644 index 6456bb2..0000000 --- a/tests/tests/iverilog_multi_top/top2.v +++ /dev/null @@ -1,7 +0,0 @@ -module top2; - initial begin - $display("Module top2\n"); - $finish(); - end -endmodule - diff --git a/tests/tests/iverilog_mutlitop/CMakeLists.txt b/tests/tests/iverilog_mutlitop/CMakeLists.txt deleted file mode 100644 index 4aa2fbb..0000000 --- a/tests/tests/iverilog_mutlitop/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -cmake_minimum_required(VERSION 3.25) -project(iverilog_multitop NONE) - -add_ip(iverilog_multitop - VENDOR tests - LIBRARY iverilog - VERSION 1 - ) - -ip_sources(${IP} VERILOG - ${PROJECT_SOURCE_DIR}/top1.v - ${PROJECT_SOURCE_DIR}/top2.v - ) - -iverilog(${IP} - EXECUTABLE ${PROJECT_BINARY_DIR}/tb - ) - -include(CTest) - -add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_BINARY_DIR}/tb) - -add_dependencies(check ${IP}_iverilog) diff --git a/tests/tests/iverilog_simple_test/CMakeLists.txt b/tests/tests/iverilog_simple_test/CMakeLists.txt deleted file mode 100644 index 85af082..0000000 --- a/tests/tests/iverilog_simple_test/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -cmake_minimum_required(VERSION 3.25) -project(iverilog_simple_test NONE) - -add_ip(iverilog_simple_test - VENDOR tests - LIBRARY iverilog - VERSION 1.2.3 - ) - -ip_sources(${IP} VERILOG - ${PROJECT_SOURCE_DIR}/tb.v - ) - -ip_compile_definitions(${IP} VERILOG SOME_DEF1=100) -ip_include_directories(${IP} VERILOG ${PROJECT_SOURCE_DIR}/inc) - -iverilog(${IP} - EXECUTABLE ${PROJECT_BINARY_DIR}/tb - ) - -include(CTest) - -add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_BINARY_DIR}/tb) - -add_dependencies(check ${IP}_iverilog) diff --git a/tests/tests/iverilog_simple_test/inc/header.vh b/tests/tests/iverilog_simple_test/inc/header.vh deleted file mode 100644 index 2e493ca..0000000 --- a/tests/tests/iverilog_simple_test/inc/header.vh +++ /dev/null @@ -1 +0,0 @@ -`define INCLUDED_NUM 55 diff --git a/tests/tests/iverilog_simple_test/tb.v b/tests/tests/iverilog_simple_test/tb.v deleted file mode 100644 index 510ba07..0000000 --- a/tests/tests/iverilog_simple_test/tb.v +++ /dev/null @@ -1,20 +0,0 @@ -`include "header.vh" - -module tb; - initial begin - $display("Simulated with Iverilog, from SoCMake build system\n"); - - if(`SOME_DEF1 != 100) begin - $warning("Macro SOME_DEF1 either not defined or not equal to 100\n Error with SoCMake ip_compile_definitions()"); - $fatal(); - end - - if(`INCLUDED_NUM != 55) begin - $warning("File header.vh not included\n Error with SoCMake ip_include_directories()"); - $fatal(); - end - - $finish(); - end - - endmodule