Testing: Break out srcdump-save-check Originally I thought I would keep only one of the srcdump tests, but I have changed my mind. So we need to get rid of this clone-and-hack. srcdump-save-check was identical in the two scripts. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Testing: Rename srcdump-loginback.at (from srcdump.at) This actually tests a rather artificial use case, where the user bookmarks the url, then logs in normally, and then uses the saved url (or achieves the equivalent by using the back button). It should have a name that better reflects this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Licence: Add copyright and licence statement to many files The licence (including exception) applies to the whole project, as would be expected. Document this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Ian Jackson <ijackson@eu.citrix.com>
Testing: Move expect_before timeout to right place Otherwise it relates to the default spawn id which is stdin. The effect is that (a) the timeout is for the whole script, not each expect, and (b) when stdin is /dev/null Tcl gets EOF, closes it, and then complains error writing "stdout": bad file number (which is rather daft). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Testing: Introduce varying CAFTEST_TMP This defaults to tests/tmp, but we set it in autotest to a test-specific value. We are going to use make to do parallel test running, so they all need their own logfile. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Testing: Disable srcdump in tests by default We will want to introduce a new srcdump test, but that does not exist yet. In the meantime the srcdump_prepare runs during every test page load (because we have no fastcgi or speedy or similar), which makes the general (non-srcdump) tests unecessarily slow. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>