Skip to content

Commit

Permalink
update example output validation
Browse files Browse the repository at this point in the history
Since we added the DPCPP version information, we need to skip one
additional line
  • Loading branch information
upsj committed Jun 29, 2021
1 parent b5143a0 commit 7241051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if(GINKGO_RUN_EXAMPLES)
COMMAND chmod +x ${example_path}/target-wrapper.sh && ${example_path}/target-wrapper.sh > ${example_path}/${example}.out
WORKING_DIRECTORY ${example_path})
file(WRITE ${example_path}/diff-command "#!/bin/bash
diff <(sed -n '7,$p' ${example_path}/${example}.out | sed -E 's/([^a-z,\":\\s\\)\\(\\{\\}_]+)//g') <(sed -n '6,$p' ${CMAKE_SOURCE_DIR}/examples/${example}/doc/results.dox | head -n -4 | sed -E 's/([^a-z,\":\\s\\)\\(\\{\\}_]+)//g')")
diff <(sed -n '8,$p' ${example_path}/${example}.out | sed -E 's/([^a-z,\":\\s\\)\\(\\{\\}_]+)//g') <(sed -n '6,$p' ${CMAKE_SOURCE_DIR}/examples/${example}/doc/results.dox | head -n -4 | sed -E 's/([^a-z,\":\\s\\)\\(\\{\\}_]+)//g')")
add_custom_target("validate-${example}"
COMMAND chmod +x ${example_path}/diff-command && ${example_path}/diff-command
WORKING_DIRECTORY ${example_path})
Expand Down

0 comments on commit 7241051

Please sign in to comment.