travis tuning
parent
3eccad8ee1
commit
a2ac03c210
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use Test::Command tests => 3;
|
||||
my $fping_bin = '/opt/fping/sbin/fping';
|
||||
|
||||
my $cmd1 = Test::Command->new(cmd => "sudo $fping_bin 127.0.0.1");
|
||||
$cmd1->exit_is_num(0);
|
||||
$cmd1->stdout_is_eq("127.0.0.1 is alive\n");
|
||||
$cmd1->stderr_is_eq("");
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d ci ]; then
|
||||
echo "you must run this in the root fping directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
sudo /opt/fping/sbin/fping 127.0.0.1
|
Loading…
Reference in New Issue