From acd63a915eeb0e1f0ddf5501bd7380a350dd38ff Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 24 Mar 2023 19:22:13 +0100 Subject: [PATCH] Add breakdown switch option in tests --- test/macros.cmake | 6 +++++- test/ovni-driver.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/macros.cmake b/test/macros.cmake index d73baed..f2e8201 100644 --- a/test/macros.cmake +++ b/test/macros.cmake @@ -53,7 +53,7 @@ function(unit_test source) endfunction(unit_test) function(ovni_test source) - set(switches MP SHOULD_FAIL SORT UNIT) + set(switches MP SHOULD_FAIL SORT UNIT BREAKDOWN) set(single NPROC REGEX NAME) set(multi ENV) @@ -102,6 +102,10 @@ function(ovni_test source) list(APPEND OVNI_TEST_ENV "OVNI_DO_SORT=1") endif() + if(OVNI_TEST_BREAKDOWN) + list(APPEND OVNI_TEST_ENV "OVNI_EMU_ARGS=-b") + endif() + include_directories( "${CMAKE_SOURCE_DIR}/src/include" "${CMAKE_SOURCE_DIR}/src/emu" diff --git a/test/ovni-driver.sh b/test/ovni-driver.sh index fef91a4..d144464 100755 --- a/test/ovni-driver.sh +++ b/test/ovni-driver.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2021 Barcelona Supercomputing Center (BSC) +# Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC) # SPDX-License-Identifier: GPL-3.0-or-later set -ex @@ -39,7 +39,7 @@ if [ -n "$OVNI_DO_SORT" ]; then fi # Then launch the emulator in lint mode -"$emubin" -l "$tracedir" +"$emubin" $OVNI_EMU_ARGS -l "$tracedir" # Run any post script that was generated ls -1 *.sh | while read sh; do