Add breakdown switch option in tests
This commit is contained in:
parent
30812e134e
commit
acd63a915e
@ -53,7 +53,7 @@ function(unit_test source)
|
|||||||
endfunction(unit_test)
|
endfunction(unit_test)
|
||||||
|
|
||||||
function(ovni_test source)
|
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(single NPROC REGEX NAME)
|
||||||
set(multi ENV)
|
set(multi ENV)
|
||||||
|
|
||||||
@ -102,6 +102,10 @@ function(ovni_test source)
|
|||||||
list(APPEND OVNI_TEST_ENV "OVNI_DO_SORT=1")
|
list(APPEND OVNI_TEST_ENV "OVNI_DO_SORT=1")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(OVNI_TEST_BREAKDOWN)
|
||||||
|
list(APPEND OVNI_TEST_ENV "OVNI_EMU_ARGS=-b")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"${CMAKE_SOURCE_DIR}/src/include"
|
"${CMAKE_SOURCE_DIR}/src/include"
|
||||||
"${CMAKE_SOURCE_DIR}/src/emu"
|
"${CMAKE_SOURCE_DIR}/src/emu"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
@ -39,7 +39,7 @@ if [ -n "$OVNI_DO_SORT" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Then launch the emulator in lint mode
|
# Then launch the emulator in lint mode
|
||||||
"$emubin" -l "$tracedir"
|
"$emubin" $OVNI_EMU_ARGS -l "$tracedir"
|
||||||
|
|
||||||
# Run any post script that was generated
|
# Run any post script that was generated
|
||||||
ls -1 *.sh | while read sh; do
|
ls -1 *.sh | while read sh; do
|
||||||
|
Loading…
Reference in New Issue
Block a user