linux-packaging-xsp/unittests
Xamarin Public Jenkins (auto-signing) 734d5f011b Imported Upstream version 4.7.1 2020-01-21 19:51:50 +00:00
..
Tests.XSP.Security Imported Upstream version 4.7.1 2020-01-21 19:51:50 +00:00
webroot Imported Upstream version 4.7.1 2020-01-21 19:51:50 +00:00
ChangeLog Imported Upstream version 3.8 2014-09-10 17:12:59 +01:00
Makefile.am Imported Upstream version 3.8 2014-09-10 17:12:59 +01:00
Makefile.in Imported Upstream version 4.7.1 2020-01-21 19:51:50 +00:00
NOACCESS Imported Upstream version 3.8 2014-09-10 17:12:59 +01:00
README Imported Upstream version 3.8 2014-09-10 17:12:59 +01: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