mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-06 00:00:10 -05:00
testing: Simplify fetching of swanctl --list-* output
This commit is contained in:
parent
bde9fb6fa1
commit
12f08e07e1
@ -504,32 +504,20 @@ do
|
|||||||
|
|
||||||
scp $SSHCONF $HOSTLOGIN:/etc/strongswan.conf \
|
scp $SSHCONF $HOSTLOGIN:/etc/strongswan.conf \
|
||||||
$TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
|
||||||
|
|
||||||
if [ -n "$SWANCTL" ]
|
if [ -n "$SWANCTL" ]
|
||||||
then
|
then
|
||||||
scp $SSHCONF $HOSTLOGIN:/etc/swanctl/swanctl.conf \
|
scp $SSHCONF $HOSTLOGIN:/etc/swanctl/swanctl.conf \
|
||||||
$TESTRESULTDIR/${host}.swanctl.conf > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.swanctl.conf > /dev/null 2>&1
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-conns \
|
for subsys in conns certs pools authorities sas pols
|
||||||
> $TESTRESULTDIR/${host}.swanctl.conns 2>/dev/null
|
do
|
||||||
|
ssh $SSHCONF $HOSTLOGIN swanctl --list-$subsys \
|
||||||
|
> $TESTRESULTDIR/${host}.swanctl.$subsys 2>/dev/null
|
||||||
|
done
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-certs \
|
# this is quite slow due to allocation stats via leak-detective
|
||||||
> $TESTRESULTDIR/${host}.swanctl.certs 2>/dev/null
|
ssh $SSHCONF $HOSTLOGIN swanctl --stats \
|
||||||
|
> $TESTRESULTDIR/${host}.swanctl.stats 2>/dev/null
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-pools \
|
|
||||||
> $TESTRESULTDIR/${host}.swanctl.pools 2>/dev/null
|
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-authorities \
|
|
||||||
> $TESTRESULTDIR/${host}.swanctl.authorities 2>/dev/null
|
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-sas \
|
|
||||||
> $TESTRESULTDIR/${host}.swanctl.sas 2>/dev/null
|
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --list-pols \
|
|
||||||
> $TESTRESULTDIR/${host}.swanctl.pols 2>/dev/null
|
|
||||||
|
|
||||||
ssh $SSHCONF $HOSTLOGIN swanctl --stats \
|
|
||||||
> $TESTRESULTDIR/${host}.swanctl.stats 2>/dev/null
|
|
||||||
else
|
else
|
||||||
for file in ipsec.conf ipsec.secrets
|
for file in ipsec.conf ipsec.secrets
|
||||||
do
|
do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user