Fixed static linking for coverage and fuzzing
Preparations for Clixon 5.3 release
This commit is contained in:
parent
5a875e3152
commit
51278d5901
12 changed files with 83 additions and 68 deletions
|
|
@ -8,25 +8,36 @@ if [ $# -ne 1 ]; then
|
|||
echo "usage: $0 <token>"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
TOKEN=$1
|
||||
|
||||
# LINKAGE=static
|
||||
# Configure (clixon)
|
||||
LDFLAGS=-coverage CFLAGS="-O2 -Wall -coverage" ./configure --with-restconf=native
|
||||
CFLAGS="-g -Wall" INSTALLFLAGS="" ./configure
|
||||
sudo ldconfig
|
||||
LDFLAGS=-coverage LINKAGE=static CFLAGS="-g -Wall -coverage" INSTALLFLAGS="" ./configure
|
||||
|
||||
# Build
|
||||
sh ./test/cicd/clixon-mk.sh
|
||||
make clean
|
||||
make -j10
|
||||
sudo make install
|
||||
sudo make install-include
|
||||
(cd example; make)
|
||||
(cd util; make)
|
||||
(cd example; sudo make install)
|
||||
(cd util; sudo make install)
|
||||
|
||||
# Kludge to run restconf as root, and touch all gcda files, cant do as wwwuser
|
||||
(cd test; clixon_restconf="/www-data/clixon_restconf -r" ./test_api.sh)
|
||||
# Kludge for netconf to add as non-root
|
||||
(cd test; ./test_netconf_hello.sh)
|
||||
find . -name "*.gcda" | xargs sudo chmod 777
|
||||
# Run all tests
|
||||
(cd test; ./sum.sh)
|
||||
|
||||
#GITHUB_SHA=
|
||||
# Push upstream
|
||||
# The -f dont seem to work
|
||||
bash <(curl -s https://codecov.io/bash) -t ${TOKEN}
|
||||
(cd test; clixon_restconf="clixon_restconf -r" ./sum.sh)
|
||||
|
||||
# Push coverage
|
||||
# PUSH $TOKEN
|
||||
|
||||
# remove all coverage files (after gcov push)
|
||||
find . -name "*.gcda" | xargs rm
|
||||
|
||||
sleep 1 # ensure OK is last
|
||||
echo OK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue