Skip to content

Commit

Permalink
fix tests using the wrong path to the targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Oct 23, 2023
1 parent 57309d6 commit f5d66e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endforeach()

function(spv_outputting_test)
cmake_parse_arguments(PARSE_ARGV 0 F "" "NAME;COMPILER" "EXTRA_ARGS" )
add_test(NAME ${F_NAME} COMMAND ${CMAKE_COMMAND} -DCOMPILER=${PROJECT_BINARY_DIR}/bin/${F_COMPILER} -DT=${F_NAME} "-DTARGS=${F_EXTRA_ARGS}" -DSRC=${PROJECT_SOURCE_DIR} -DDST=${PROJECT_BINARY_DIR} -P ${PROJECT_SOURCE_DIR}/test/test_with_val.cmake)
add_test(NAME ${F_NAME} COMMAND ${CMAKE_COMMAND} -DCOMPILER="$<TARGET_FILE:${F_COMPILER}>" -DT=${F_NAME} "-DTARGS=${F_EXTRA_ARGS}" -DSRC=${PROJECT_SOURCE_DIR} -DDST=${PROJECT_BINARY_DIR} -P ${PROJECT_SOURCE_DIR}/test/test_with_val.cmake)
endfunction()

spv_outputting_test(NAME samples/fib.slim COMPILER slim EXTRA_ARGS --entry-point main)
Expand Down

0 comments on commit f5d66e1

Please sign in to comment.