-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.sh
executable file
·33 lines (25 loc) · 1.17 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
function chkrun {
erc=$1
shift
echo "TEST: $@"
$@
rc=$?
echo -ne "RC=$rc\t"
if [[ "$erc" = "$rc" ]]; then
echo "OK"
else
echo "FAIL"
fi
echo
}
chkrun 0 ./check_lg-ripestat --asn=15372 --prefix=212.111.224.0/19 --peerings=3320,13237,20676,174
chkrun 0 ./check_lg-ripestat --asn=15372 --prefix=2a01:7700::/32 --peerings=3320,13237,20676,174
chkrun 2 ./check_lg-ripestat --asn=15372 --prefix=212.111.224.0/19 --peerings=3320,20676,174
chkrun 2 ./check_lg-ripestat --asn=15372 --prefix=2a01:7700::/32 --peerings=3320,20676,174
chkrun 2 ./check_lg-ripestat --asn=42 --prefix=212.111.224.0/19 --peerings=3320,20676,174
chkrun 2 ./check_lg-ripestat --asn=42 --prefix=2a01:7700::/32 --peerings=3320,20676,174
chkrun 1 ./check_lg-ripestat --asn=15372 --prefix=212.111.224.0/19 --peerings=3320,13237,20676,174 -w 500:,,
chkrun 2 ./check_lg-ripestat --asn=15372 --prefix=2a01:7700::/32 --peerings=3320,13237,20676,174 -c 500:
chkrun 1 ./check_lg-ripestat --asn=15372 --prefix=212.111.224.0/19 --peerings=3320,13237,20676,174 --pw=500:
chkrun 2 ./check_lg-ripestat --asn=15372 --prefix=212.111.224.0/19 --peerings=3320,13237,20676,174 --pc=500: