Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Source/Samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ PURC_COPY_FILES(ScriptToRunSamples
FILES run_all_samples.sh
)

set(sample_HTML_input_FILES
"DOMRuler/layout_html/window.html"
"DOMRuler/layout_html/window.css"
)

PURC_COPY_FILES(sampleHTMLinputFILES
DESTINATION "${CMAKE_CURRENT_BINARY_DIR}"
FILES ${sample_HTML_input_FILES}
)

set(sample_HVML_FILES
"hvml/hello.hvml"
"hvml/hello-except.hvml"
Expand Down
15 changes: 12 additions & 3 deletions Source/Samples/run_all_samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ sample_failed=""
sample_crashed=""

for x in $SAMPLE_PROGS; do
echo ">> Start of $x"
if test $USE_VALGRIND -eq 0; then
./$x 2> /dev/null
if [[ "$x" =~ .*"layout_html".* ]]; then
./$x -f Source/Samples/DOMRuler/layout_html/window.html \
-c Source/Samples/DOMRuler/layout_html/window.css 2> /dev/null
else
./$x 2> /dev/null
fi
else
${VALGRIND} ./$x || exit
if [[ "$x" =~ .*"layout_html".* ]]; then
${VALGRIND} ./$x -f Source/Samples/DOMRuler/layout_html/window.html \
-c Source/Samples/DOMRuler/layout_html/window.css || exit
else
${VALGRIND} ./$x || exit
fi
fi
if test "$?" -eq 0; then
total_passed=$((total_passed + 1))
Expand Down