Skip to content

Commit 7241051

Browse files
committed
update example output validation
Since we added the DPCPP version information, we need to skip one additional line
1 parent b5143a0 commit 7241051

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if(GINKGO_RUN_EXAMPLES)
5959
COMMAND chmod +x ${example_path}/target-wrapper.sh && ${example_path}/target-wrapper.sh > ${example_path}/${example}.out
6060
WORKING_DIRECTORY ${example_path})
6161
file(WRITE ${example_path}/diff-command "#!/bin/bash
62-
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')")
62+
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')")
6363
add_custom_target("validate-${example}"
6464
COMMAND chmod +x ${example_path}/diff-command && ${example_path}/diff-command
6565
WORKING_DIRECTORY ${example_path})

0 commit comments

Comments
 (0)