]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - tools/perfTest.sh
Installmake bearbeitet. (TESTING)
[people/pmueller/ipfire-2.x.git] / tools / perfTest.sh
1 #!/bin/bash
2 #
3 ############################################################################
4 # #
5 # This file is part of the IPCop Firewall. #
6 # #
7 # IPCop is free software; you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation; either version 2 of the License, or #
10 # (at your option) any later version. #
11 # #
12 # IPCop is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
16 # #
17 # You should have received a copy of the GNU General Public License #
18 # along with IPCop; if not, write to the Free Software #
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
20 # #
21 # Copyright (C) 2005 Mark Wormgoor <mark@wormgoor.com>. #
22 # #
23 ############################################################################
24 #
25 # $Id: perfTest.sh,v 1.1.2.1 2005/01/26 19:43:36 riddles Exp $
26 #
27 # This script will do a get request for all links on an IPCop box.
28 # You can time this using:
29 # time ./perfTest.sh
30 #
31 # This will give you a basic idea of the speed of your IPCop machine
32 # and will make it possible for you to test new updates for performance.
33 # With just network overhead on a sufficiently fast machine, expect
34 # something around 5 seconds for the entire test.
35 #
36 ## Basic settings
37 CGI_HOST=$1
38 CGI_PORT=444
39 CGI_URL="https://$CGI_HOST:$CGI_PORT/cgi-bin"
40 USER=admin
41 PASS=test
42 CMD="wget -q -O /dev/null --http-user=$USER --http-passwd=$PASS"
43
44 doTest() {
45 $CMD $CGI_URL/aliases.cgi
46 $CMD $CGI_URL/backup.cgi
47 $CMD $CGI_URL/changepw.cgi
48 $CMD $CGI_URL/connections.cgi
49 $CMD $CGI_URL/credits.cgi
50 $CMD $CGI_URL/ddns.cgi
51 $CMD $CGI_URL/dhcp.cgi
52 $CMD $CGI_URL/dial.cgi
53 $CMD $CGI_URL/dmzholes.cgi
54 $CMD $CGI_URL/graphs.cgi
55 $CMD $CGI_URL/gui.cgi
56 $CMD $CGI_URL/hosts.cgi
57 $CMD $CGI_URL/ids.cgi
58 $CMD $CGI_URL/index.cgi
59 $CMD $CGI_URL/ipinfo.cgi
60 $CMD $CGI_URL/modem.cgi
61 $CMD $CGI_URL/netstatus.cgi
62 $CMD $CGI_URL/portfw.cgi
63 $CMD $CGI_URL/pppsetup.cgi
64 $CMD $CGI_URL/proxy.cgi
65 $CMD $CGI_URL/proxygraphs.cgi
66 $CMD $CGI_URL/remote.cgi
67 $CMD $CGI_URL/shaping.cgi
68 $CMD $CGI_URL/shutdown.cgi
69 $CMD $CGI_URL/status.cgi
70 $CMD $CGI_URL/time.cgi
71 $CMD $CGI_URL/updates.cgi
72 $CMD $CGI_URL/upload.cgi
73 $CMD $CGI_URL/vpnmain.cgi
74 $CMD $CGI_URL/wireless.cgi
75 $CMD $CGI_URL/xtaccess.cgi
76 $CMD $CGI_URL/logs.cgi/config.dat
77 $CMD $CGI_URL/logs.cgi/firewalllog.dat
78 $CMD $CGI_URL/logs.cgi/ids.dat
79 $CMD $CGI_URL/logs.cgi/log.dat
80 $CMD $CGI_URL/logs.cgi/proxylog.dat
81 $CMD $CGI_URL/logs.cgi/summary.dat
82 }
83
84 doTest