Skip to content

Commit

Permalink
testing: replace 'ipsec look' with .../ipsec-look.sh
Browse files Browse the repository at this point in the history
The latter, in addition to invoking 'ipsec look', dumps
raw 'ip ...' output (wrapped in cut/tuc) to stdout.

Capturing the raw output in *.console.verbose.txt makes debugging
'ipsec look's managed output possible.
  • Loading branch information
cagney committed Jun 10, 2018
1 parent bf1b1af commit 11b2921
Show file tree
Hide file tree
Showing 1,370 changed files with 1,484 additions and 1,473 deletions.
1 change: 1 addition & 0 deletions programs/look/look.in
Expand Up @@ -3,6 +3,7 @@
# Copyright (C) 1998, 1999 Henry Spencer.
# Copyright (C) 2012 Paul Wouters
# Copyright (C) 2015 Tuomo Soini <tis@foobar.fi>
# Copyright (C) 2018 Andrew Cagney
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-01/east.console.txt
Expand Up @@ -30,7 +30,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-01/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-01/west.console.txt
Expand Up @@ -79,7 +79,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-02/east.console.txt
Expand Up @@ -30,7 +30,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-02/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-02/west.console.txt
Expand Up @@ -79,7 +79,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-04/east.console.txt
Expand Up @@ -30,7 +30,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-04/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/aggr-pluto-04/west.console.txt
Expand Up @@ -83,7 +83,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-01/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-01/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-01/west.console.txt
Expand Up @@ -61,7 +61,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-02/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-02/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-02/west.console.txt
Expand Up @@ -58,7 +58,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-03/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-03/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-03/west.console.txt
Expand Up @@ -58,7 +58,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-04/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-04/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-04/west.console.txt
Expand Up @@ -58,7 +58,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-05/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-05/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-05/west.console.txt
Expand Up @@ -58,7 +58,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-07-klips-netkey/east.console.txt
Expand Up @@ -32,7 +32,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
192.0.2.0/24 -> 192.0.1.0/24 => tun0xIPIP@192.1.2.45 ah0xAHSPI@192.1.2.45
192.0.2.111/32 -> 192.0.1.111/32 => tun0xIPIP@192.1.2.45 ah0xAHSPI@192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-07-klips-netkey/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-07-klips-netkey/west.console.txt
Expand Up @@ -81,7 +81,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-09/east.console.txt
Expand Up @@ -3,7 +3,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-09/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-09/west.console.txt
Expand Up @@ -14,7 +14,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
XFRM policy:
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-12/east.console.txt
Expand Up @@ -11,7 +11,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-12/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-12/west.console.txt
Expand Up @@ -60,7 +60,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-13/east.console.txt
Expand Up @@ -31,7 +31,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-13/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/ah-pluto-13/west.console.txt
Expand Up @@ -80,7 +80,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-01/east.console.txt
Expand Up @@ -31,7 +31,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-01/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-01/west.console.txt
Expand Up @@ -81,7 +81,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-04/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
4 changes: 2 additions & 2 deletions testing/pluto/algo-pluto-04/westrun.sh
@@ -1,6 +1,6 @@
ipsec auto --up westnet-eastnet-esp-sha1-pfs
ipsec look
../../pluto/bin/ipsec-look.sh
ipsec auto --delete westnet-eastnet-esp-sha1-pfs
ipsec auto --up westnet-eastnet-esp-md5-pfs
ipsec look
../../pluto/bin/ipsec-look.sh
echo done
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-08/east.console.txt
Expand Up @@ -31,7 +31,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-08/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-08/west.console.txt
Expand Up @@ -81,7 +81,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-09/east.console.txt
Expand Up @@ -31,7 +31,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-09/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-09/west.console.txt
Expand Up @@ -79,7 +79,7 @@ west #
echo done
done
west #
ipsec look
../../pluto/bin/ipsec-look.sh
west NOW
XFRM state:
src 192.1.2.23 dst 192.1.2.45
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-10/east.console.txt
Expand Up @@ -30,7 +30,7 @@ east #
echo "initdone"
initdone
east #
ipsec look
../../pluto/bin/ipsec-look.sh
east NOW
XFRM state:
src 192.1.2.45 dst 192.1.2.23
Expand Down
2 changes: 1 addition & 1 deletion testing/pluto/algo-pluto-10/final.sh
@@ -1,4 +1,4 @@
ipsec look
../../pluto/bin/ipsec-look.sh
: ==== cut ====
ipsec auto --status
: ==== tuc ====
Expand Down

0 comments on commit 11b2921

Please sign in to comment.