xsp/unittests
Raja R Harinath 90b112c224 * Makefile.am (security_test_sources): Files are in $(srcdir).
svn path=/trunk/xsp/; revision=96577
2008-02-25 17:29:05 +00:00
..
Tests.XSP.Security * Makefile.am (security_test_sources): Files are in $(srcdir). 2008-02-25 17:29:05 +00:00
webroot include unittests in the distribution, install them in lib/unittests/ 2007-11-14 21:34:53 +00:00
ChangeLog In Tests.XSP.Security: 2007-01-08 16:40:57 +00:00
Makefile.am include unittests in the distribution, install them in lib/unittests/ 2007-11-14 21:34:53 +00:00
NOACCESS In Tests.XSP.Security: 2007-01-08 16:40:57 +00:00
README include unittests in the distribution, install them in lib/unittests/ 2007-11-14 21:34:53 +00:00

README

This directory contains a small test suite to check for any regressions
in XSP that could cause security vulnerabilities. Contributions are welcome!

Directory structure for the tests

/NOACCESS
/webroot/
	index.aspx

Some tests try to access index.aspx to retrieve its source code. Other 
tests try to access the file NOACCESS that resides outside the root of
the web server.

* Tests execution (using the same computer)

From a terminal window:

	cd xsp/unittests/webroot
	xsp

From another terminal window:

	cd xsp/unittests/Tests.XSP.Security
	make run-test-local


* Tests execution (using different computers)

From the server computer (e.g. named "server.test.my"):

	cd xsp/unittests/webroot
	xsp --port 80

From the client computer

	cd xsp/unittests/Tests.XSP.Security
	XSP_TEST_HOST=server.test.my:80 make run-test