aboutsummaryrefslogtreecommitdiffstats
path: root/autoscan/tests/test_autoscan.sh
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-11-01 23:07:03 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2013-11-01 23:07:03 +0100
commit8f821f0ca589fda38166e1b1a025d1ceb1a92910 (patch)
treed4a173d107b1fa247f72428a3ed9f47c76cf1bd8 /autoscan/tests/test_autoscan.sh
parentmove wifcap to github (diff)
downloadlaurent-tools-master.tar.xz
laurent-tools-master.zip
autoscan: move to https://github.com/P1sec/autoscanHEADmaster
git clone https://github.com/P1sec/autoscan.git
Diffstat (limited to 'autoscan/tests/test_autoscan.sh')
-rwxr-xr-xautoscan/tests/test_autoscan.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/autoscan/tests/test_autoscan.sh b/autoscan/tests/test_autoscan.sh
deleted file mode 100755
index 4c488cc..0000000
--- a/autoscan/tests/test_autoscan.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-err() {
- echo "ERROR: $1"
- exit 1
-}
-
-sudo PATH="./spoofbin/:$PATH" ../autoscan.py -v -p 127.0.0.1 -o test_output/ -r eth0 ||err "autoscan execution failed"
-
-# XXX test output dirs
-dir="test_output/$(ls -1 test_output |tail -n1)"
-[[ -e $dir/pcap/tcpdump.pcap ]] ||err "pcap/tcpdump.pcap"
-[[ $(cat $dir/ifconfig/ip4) = "10.137.2.9" ]] ||err "ifconfig/ip4"
-[[ $(cat $dir/ifconfig/ip6) = "fe80::216:3eff:fe5e:6c07" ]] ||err "ifconfig/ip6"
-[[ $(cat $dir/route/gw) = "10.137.2.1" ]] ||err "route/gw"
-[[ $(cat $dir/pubip_ping/code) = "0" ]] ||err "pubip_ping/code"
-[[ -e $dir/resolv/resolv.conf ]] ||err "resolv/resolv.conf"
-[[ $(cat $dir/pubip_get/ip) = "1.2.3.4" ]] ||err "pubip_get/ip"
-[[ -e $dir/pubip_traceroute/out ]] ||err "pubip_traceroute/out"
-[[ -e $dir/resolv_traceroute/out ]] ||err "resolv_traceroute/out"
-[[ -e "$dir/explor_traceroute/out_192.168.0.1" ]] ||err "explor_traceroute/out_192.168.0.1"
-[[ -e $dir/explor_scan/localnet.nmap ]] ||err "explor_scan/localnet.nmap"
-
-echo "TEST OK"