You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
PATH=$(pwd)/ci/build/bin:$PATH
|
|
|
|
|
|
|
|
if [ ! -d ci ]; then
|
|
|
|
echo "you must run this in the root fping directory" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoreconf -i
|
|
|
|
./configure --enable-ipv4 --enable-ipv6 --prefix=/opt/fping
|
|
|
|
make CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
|
|
|
|
## setcap currently doesn't work anymore on travis-ci
|
|
|
|
#sudo setcap cap_net_raw+ep src/fping
|
|
|
|
## setcap debugging:
|
|
|
|
#pwd
|
|
|
|
#df -k .
|
|
|
|
#which setcap
|
|
|
|
#uname -a
|
|
|
|
#mount
|
|
|
|
#
|
|
|
|
#sudo apt-get install strace
|
|
|
|
#sudo strace setcap cap_net_raw+ep src/fping
|
|
|
|
|
|
|
|
# use setuid, since setcap is not available
|
|
|
|
sudo chown root src/fping
|
|
|
|
sudo chmod u+s src/fping
|