projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b1252
)
Detect cmake test result.
author
Zhang Xianyi
<traits.zhang@gmail.com>
Mon, 19 Oct 2015 19:35:25 +0000
(
03:35
+0800)
committer
Zhang Xianyi
<traits.zhang@gmail.com>
Mon, 19 Oct 2015 19:35:25 +0000
(
03:35
+0800)
test/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
index
446fb8a
..
cd44971
100644
(file)
--- a/
test/CMakeLists.txt
+++ b/
test/CMakeLists.txt
@@
-16,7
+16,14
@@
endforeach()
# $1 exec, $2 input, $3 output_result
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_helper.sh
"rm -f $3\n"
-"$1 < $2"
+"$1 < $2\n"
+"grep -q FATAL $3\n"
+"if [ $? -eq 0 ]; then\n"
+"echo Error\n"
+"exit 1\n"
+"else\n"
+"exit 0\n"
+"fi\n"
)
set(float_types s d c z)