Skip to content

Commit aed3cf8

Browse files
committed
Attempt at writing ctest_with_model
1 parent 4b63355 commit aed3cf8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ci/run.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ function gg_sum_ctest_release {
131131
gg_printf '```\n'
132132
}
133133

134+
function gg_run_ctest_with_model {
135+
cd ${SRC}
136+
set -e
137+
(time ctest --output-on-failure -L model) 2>&1 | tee -a $OUT/${ci}-ctest_with_model.log
138+
set +e
139+
}
140+
141+
function gg_sum_ctest_with_model {
142+
gg_printf '### %s\n\n' "${ci}"
143+
144+
gg_printf 'Runs ctest with model files\n'
145+
gg_printf '- status: %s\n' "$(cat $OUT/${ci}.exit)"
146+
gg_printf '```\n'
147+
gg_printf '%s\n' "$(cat $OUT/${ci}-ctest_with_model.log)"
148+
gg_printf '```\n'
149+
}
150+
134151
# open_llama_3b_v2
135152

136153
function gg_run_open_llama_3b_v2 {
@@ -508,6 +525,7 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
508525
else
509526
test $ret -eq 0 && gg_run open_llama_7b_v2
510527
fi
528+
test $ret -eq 0 && gg_run ctest_with_model
511529
fi
512530
fi
513531

0 commit comments

Comments
 (0)