components/squid/TESTING
changeset 7898 b6036d22c840
equal deleted inserted replaced
7897:f06ee12b3c74 7898:b6036d22c840
       
     1 Squid comes with a set of tests, so don't forget to run "gmake test"
       
     2 and make sure that the output matches the master test results.
       
     3 
       
     4 These squid tests use cppunit. Currently this requires a version of cppunit
       
     5 installed that have been built with the GNU version 5.3 compilers.
       
     6 
       
     7 
       
     8 To test manually follow along in the book
       
     9 Squid Proxy Server 3.1 Beginner's Guide Page 34
       
    10 
       
    11 Add these three lines to the top of /etc/squid/squid.conf:
       
    12 
       
    13 cache_dir ufs /var/squid/cache/ 500 16 256
       
    14 acl my_machine src 192.0.2.21    # Replace this IP address with your IP address
       
    15 http_access allow my_machine
       
    16 
       
    17 You might need to remove or comment out the following lines or Squid
       
    18 will fail to start:
       
    19 
       
    20   # acl manager proto cache_object
       
    21 
       
    22 Make sure apache is running.
       
    23 
       
    24   $ sudo svcs apache24
       
    25 
       
    26 Start squid:
       
    27 
       
    28   $ sudo svcadm enable squid
       
    29 
       
    30 On your desktop set your web browser to proxy through this squid:
       
    31 
       
    32 Edit -> Preferences -> Advanced -> Network -> Settings
       
    33 
       
    34       Check: Manual proxy configuration
       
    35       HTTP Proxy: <squid servers IP address>    Port: 3128
       
    36 
       
    37   Save
       
    38 
       
    39 Enter <squid server URL> in your web browser. You should be accessing squid
       
    40 and seeing files stored in the http server on that machine.
       
    41 
       
    42 Enter <squid server URL>:897 in your web browser and squid should complain.
       
    43 If those two things happen, then squid is working properly.