##
## This file is part of haec_sim (https://tu-dresden.de/zih/haec_sim)
## haec_sim - A trace-based parallel discrete event simulation framework
##
## Copyright (c) 2013-2015 Technische Universitaet Dresden, Germany
##
## haec_sim is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## haec_sim is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with haec_sim.  If not, see <http://www.gnu.org/licenses/>.
##

add_test(NAME trace_network_model_dor_1_hop_create_test
    COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 $<TARGET_FILE:haec_sim> 
    -o ${CMAKE_CURRENT_BINARY_DIR}/output
    -p ${CMAKE_CURRENT_SOURCE_DIR}/positions.map
    -c ${CMAKE_SOURCE_DIR}/etc/haec_sim.conf
    --conf-override .modules.static_network_model.communication_model:"DOR"
    ${CMAKE_CURRENT_SOURCE_DIR}/input/traces.otf2)
    
add_test(NAME trace_network_model_dor_1_hop_compare_test
    COMMAND ${CMAKE_SOURCE_DIR}/tests/compare_traces.sh
    ${CMAKE_CURRENT_BINARY_DIR}/output/sim_traces.otf2
    ${CMAKE_CURRENT_SOURCE_DIR}/reference/sim_traces.otf2
    ${OTF2_PRINT}
)