From 98b698473d4b3401e2cba41a3cc4f197a3dad37a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 20 Feb 2023 19:21:33 +0100 Subject: [PATCH] Remove unused unit tests --- test/unit/CMakeLists.txt | 11 +---------- test/unit/emu.c | 32 -------------------------------- test/unit/trace.c | 14 -------------- 3 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 test/unit/emu.c delete mode 100644 test/unit/trace.c diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 0c2aedd..b92b931 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -1,13 +1,7 @@ -# Copyright (c) 2022 Barcelona Supercomputing Center (BSC) +# Copyright (c) 2022-2023 Barcelona Supercomputing Center (BSC) # SPDX-License-Identifier: GPL-3.0-or-later unit_test(version.c) -#unit_test(task.c) -#unit_test(taskstack.c) -#unit_test(taskstack-bad.c) -#unit_test(taskmodel.c) -#unit_test(tbm.c) -#unit_test(tbm_trace.c) unit_test(chan.c) unit_test(bay.c) #unit_test(bay-hash-speed.c) @@ -15,9 +9,6 @@ unit_test(mux.c) unit_test(value.c) unit_test(prv.c) unit_test(cfg.c) -#unit_test(ovni_model.c) -#unit_test(trace.c) -#unit_test(emu.c) unit_test(clkoff.c) unit_test(stream.c) unit_test(loom.c) diff --git a/test/unit/emu.c b/test/unit/emu.c deleted file mode 100644 index 6a92ca1..0000000 --- a/test/unit/emu.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "emu/emu.h" -#include "common.h" - -int main(void) -{ - char *argv[] = { - "ovniemu", - "/home/ram/bsc/ovni/traces/test/ovni", - NULL - }; - - int argc = 2; - - struct emu emu; - - if (emu_init(&emu, argc, argv) != 0) - die("emu_init failed\n"); - - if (emu_connect(&emu) != 0) - die("emu_connect failed\n"); - - int ret = 0; - - while ((ret = emu_step(&emu)) == 0) { - //err("event clock %ld\n", emu.player.deltaclock); - } - - if (ret < 0) - die("emu_step failed\n"); - - return 0; -} diff --git a/test/unit/trace.c b/test/unit/trace.c deleted file mode 100644 index 3e4e879..0000000 --- a/test/unit/trace.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "emu/trace.h" -#include "common.h" - -int main(void) -{ - char *tracedir = "/home/ram/bsc/ovni/traces/test/ovni"; - - struct trace trace; - - if (trace_load(&trace, tracedir) != 0) - die("trace_load failed\n"); - - return 0; -}