-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·26 lines (19 loc) · 715 Bytes
/
test.sh
File metadata and controls
executable file
·26 lines (19 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
rm -rf .coverage coverage.info
time ./build/cld --src ./data/fingerprint.jpg -o output.jpg --ETF_iter 3 --CLD_iter 8 --debug_img
echo '10459bb86077235db3f85fe64d25f2d8 output.jpg' | md5sum -c -
echo '3ea95ae0f6f92478af7fbf97e96b2763 anti-alias.jpg' | md5sum -c -
echo '1a68133901751c29efe4febec29d014e visualize-etf.jpg' | md5sum -c -
echo '365b29b4d15520b5c92eb78bc6c236b8 arrow-etf.jpg' | md5sum -c -
if ! which lcov; then
exit 0
fi
lcov \
--capture \
--directory build/CMakeFiles/cld.dir/src \
--output-file coverage.info \
--test-name coverageHtml
lcov --remove coverage.info '/usr/*' -o coverage.info > /dev/null
genhtml -o .coverage coverage.info
# clean up
rm *.jpg