-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #19: Simplify ST, only support LINUX and DARWIN
1. Remove examples and extensions. 2. Remove OS support, except LINUX and DARWIN. 3. Rename md.S to md_linux.S, remove __ia64__ support. 4. Remove events support, except kqueue and epoll. 5. Refine utest, add auto/fast.sh support.
- Loading branch information
Showing
29 changed files
with
94 additions
and
5,905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
PWD=$(cd `dirname $0`/.. && pwd) | ||
|
||
pushd $PWD | ||
echo "Run UTest in $(pwd)" | ||
|
||
IS_LINUX=yes | ||
uname -s|grep Darwin >/dev/null && IS_DARWIN=yes && IS_LINUX=no | ||
echo "IS_LINUX: $IS_LINUX, IS_DARWIN: $IS_DARWIN" | ||
|
||
echo "Clean gcda files" | ||
rm -f ./obj/*.gcda | ||
|
||
echo "Build and run utest" | ||
if [[ $IS_DARWIN == yes ]]; then | ||
make darwin-debug-gcov && ./obj/st_utest | ||
else | ||
make linux-debug-gcov && ./obj/st_utest | ||
fi | ||
ret=$?; if [[ 0 -ne $ret ]]; then echo "Make ST utest fail, ret=$ret"; exit $ret; fi | ||
|
||
echo "Generating coverage" | ||
mkdir -p coverage && | ||
gcovr -r . -e LINUX -e DARWIN -e examples --html --html-details -o coverage/st.html && | ||
echo "Coverage report at coverage/st.html" && | ||
open coverage/st.html | ||
|
||
popd | ||
echo "UTest done, restore $(pwd)" |
Oops, something went wrong.
eda23b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#19 (comment)