mirror of
https://frontier.innolan.net/rainlance/amiga-fping.git
synced 2026-03-17 11:11:46 +00:00
add coveralls.io
This commit is contained in:
1
.coveralls.yml
Normal file
1
.coveralls.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
service_name: travis-ci
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
.*.swp
|
.*.swp
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*~
|
*~
|
||||||
|
src/*.gcno
|
||||||
.deps
|
.deps
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
|||||||
@ -5,10 +5,11 @@ env:
|
|||||||
- secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ="
|
- secure: "CoI8hwHH1yfQoQxIfWGRS0WfTyScox+5aJn0fDDgz2uKrrIxmBvIw/WKX8wcSiV6fLmLuwgNkKqSM3hdO4qaG+JxfWcuEiZZHm+kxSGMkWbGb/fvAI+gHg8ldKyYttcIX71O5rlZiC2QpNKQi2v18S6pI5p8eqnx7DYx4YrmguQ="
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
before_install:
|
||||||
|
- sudo pip install cpp-coveralls --use-mirrors
|
||||||
install:
|
install:
|
||||||
- ci/build-1-autotools.sh
|
- ci/build-1-autotools.sh
|
||||||
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
||||||
@ -19,3 +20,4 @@ script:
|
|||||||
- ci/test-tarball.sh
|
- ci/test-tarball.sh
|
||||||
after_success:
|
after_success:
|
||||||
- ci/deploy-bintray.sh
|
- ci/deploy-bintray.sh
|
||||||
|
- coveralls
|
||||||
|
|||||||
@ -9,5 +9,6 @@ fi
|
|||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
./configure --enable-ipv4 --enable-ipv6 --prefix=/opt/fping
|
./configure --enable-ipv4 --enable-ipv6 --prefix=/opt/fping
|
||||||
make
|
make CFLAGS="-g -fprofile-arcs -ftest-coverage"
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo setcap cap_net_raw+ep /opt/fping/sbin/fping
|
||||||
|
|||||||
@ -7,19 +7,19 @@ my $fping6_bin = '/opt/fping/sbin/fping6';
|
|||||||
#my $fping6_bin = '/home/dws/checkouts/fping/src/fping6';
|
#my $fping6_bin = '/home/dws/checkouts/fping/src/fping6';
|
||||||
|
|
||||||
# ping 127.0.0.1
|
# ping 127.0.0.1
|
||||||
my $cmd1 = Test::Command->new(cmd => "sudo $fping_bin 127.0.0.1");
|
my $cmd1 = Test::Command->new(cmd => "$fping_bin 127.0.0.1");
|
||||||
$cmd1->exit_is_num(0);
|
$cmd1->exit_is_num(0);
|
||||||
$cmd1->stdout_is_eq("127.0.0.1 is alive\n");
|
$cmd1->stdout_is_eq("127.0.0.1 is alive\n");
|
||||||
$cmd1->stderr_is_eq("");
|
$cmd1->stderr_is_eq("");
|
||||||
|
|
||||||
# ping ::1
|
# ping ::1
|
||||||
my $cmd2 = Test::Command->new(cmd => "sudo $fping6_bin ::1");
|
my $cmd2 = Test::Command->new(cmd => "$fping6_bin ::1");
|
||||||
$cmd2->exit_is_num(0);
|
$cmd2->exit_is_num(0);
|
||||||
$cmd2->stdout_is_eq("::1 is alive\n");
|
$cmd2->stdout_is_eq("::1 is alive\n");
|
||||||
$cmd2->stderr_is_eq("");
|
$cmd2->stderr_is_eq("");
|
||||||
|
|
||||||
# ping 3 times 127.0.0.1
|
# ping 3 times 127.0.0.1
|
||||||
my $cmd3 = Test::Command->new(cmd => "sudo $fping_bin -p 100 -C3 127.0.0.1");
|
my $cmd3 = Test::Command->new(cmd => "$fping_bin -p 100 -C3 127.0.0.1");
|
||||||
$cmd3->exit_is_num(0);
|
$cmd3->exit_is_num(0);
|
||||||
$cmd3->stdout_like(qr{127\.0\.0\.1 : \[0\], 84 bytes, 0\.\d+ ms \(0\.\d+ avg, 0% loss\)
|
$cmd3->stdout_like(qr{127\.0\.0\.1 : \[0\], 84 bytes, 0\.\d+ ms \(0\.\d+ avg, 0% loss\)
|
||||||
127\.0\.0\.1 : \[1\], 84 bytes, 0\.\d+ ms \(0.\d+ avg, 0% loss\)
|
127\.0\.0\.1 : \[1\], 84 bytes, 0\.\d+ ms \(0.\d+ avg, 0% loss\)
|
||||||
|
|||||||
Reference in New Issue
Block a user