[squid-dev] How to run the unit tests of Squid?

Amos Jeffries squid3 at treenet.co.nz
Tue Oct 14 03:54:27 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/10/2014 2:39 p.m., Tianyin Xu wrote:
> Hi all,
> 
> Could anyone point me how to run the unit tests of Squid?
> 
> I think the "src/tests" contains all the unit tests available, am I
> right?
> 

Yes, that contains all the unit-tests. A standard autotools "make
check" runs those for any copy of the code.

If you are building from a repository checkout you will also have the
test-builds.sh script at the top directory. Running that will execute
a longer set of tests with several permutations of ./configure options.

NP: the full test suite can take 1-6hrs depending on your CPU speed.


> But I failed to find information related to how to conduct these
> tests.
> 
> Also, I see a couple of "tasks needing a volunteer." Does it still
> need to be done or it's obsolete?

If you are referring to http://wiki.squid-cache.org/RoadMap/Tasks then
yes, all those tasks still need to be completed.

It is also just a small set of the items that we/I think need doing
first to make the code generally easier to read and work with. If
there is any other thing in particular you want to help get fixed up
instead all ideas are welcome (there are ~400 open bugs for example).

Thank you for your assistance with Squid.
Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUPJ5zAAoJELJo5wb/XPRjQYwH/1AU0GzmEZLy6pyGfdmDbJkT
ndDbSCCwDTobY0h4IK5dpbfi9ZQZef5S+QN6+iB8OCNIe/VZ/p6pmW++EyYcFt3t
sKHfVfsdx5H4Ecwo5Yh5ia1EW2LwfqxNesh+5KOuyTTFcLVEDYSsz8ZZTxbbVamy
KOqvhJvH1zwcv/8DTRnbkyZyR1ixuA4/mNlcI8kDNB22E0G+6p6tmnGOIgW+32IJ
Qv2CkCNOLW5895onlWFyDdKfRseKkWNxlrJxTFio32fFrafgoOLYWjKNz+cOssdX
9l/BWuqfjLdOne2idSzVADmL/Wf0JFhWqlPj5ZpUI8GLMYKGFabiqBdcOrLrSBk=
=XCxo
-----END PGP SIGNATURE-----


More information about the squid-dev mailing list