Subversion Repositories vgwhois

Compare Revisions

Regard whitespace Rev 3 → Rev 4

/trunk/maintenance/qa-monitor/testcases/loc_gwhois
17,18 → 17,20
 
. "$DIR/../../config/testcases.conf"
 
GWI_EXEC="$DIR"/../../../main/gwhois
 
if [ $trytor -eq 1 ]; then
if [ -e "/usr/bin/vtor" ]; then
# We use vtor first, because it needs to cleanup temp files, which is only possible if it is not killed... Does this work?
vtor -a -r 1 -- "$DIR"/timeout.sh -t 10 -- gwhois $@
vtor -a -r 1 -- "$DIR"/timeout.sh -t 10 -- "$GWI_EXEC" $@
elif [ -e "/usr/bin/usewithtor" ]; then
"$DIR"/timeout.sh -t 10 -- usewithtor -- gwhois $@
"$DIR"/timeout.sh -t 10 -- usewithtor "$GWI_EXEC" $@
elif [ -e "/usr/bin/torify" ]; then
"$DIR"/timeout.sh -t 10 -- torify -- gwhois $@
"$DIR"/timeout.sh -t 10 -- torify "$GWI_EXEC" $@
else
echo "Warning: Cannot find any TOR proxy software. Will do the query without TOR." >&2
"$DIR"/timeout.sh -t 10 -- gwhois $@
"$DIR"/timeout.sh -t 10 -- "$GWI_EXEC" $@
fi
else
"$DIR"/timeout.sh -t 10 -- gwhois $@
"$DIR"/timeout.sh -t 10 -- "$GWI_EXEC" $@
fi