aboutsummaryrefslogtreecommitdiff
path: root/t/basewiki_brokenlinks.t
Commit message (Collapse)AuthorAge
* t: Consistently remove temp directory before testing, not afterSimon McVittie2019-02-03
| | | | | | When a test fails, it's useful to be able to inspect the output. Signed-off-by: Simon McVittie <smcv@debian.org>
* Exclude working directory from library path (CVE-2016-1238)Simon McVittie2016-07-28
| | | | | | | | | | | | | | | | | | | | | Current Perl versions put '.' at the end of the library search path @INC, although this will be fixed in a future Perl release. This means that when software loads an optionally-present module, it will be looked for in the current working directory before giving up. An attacker could use this to execute arbitrary Perl code from ikiwiki's current working directory. Removing '.' from the library search path in Perl is the correct fix for this vulnerability, but is not trivial to do due to backwards-compatibility concerns. Mitigate this (even if ikiwiki is run with a vulnerable Perl version) by explicitly removing '.' from the search path, and instead looking for ikiwiki's own modules relative to the absolute path of the executable when run from the source directory. In tests that specifically want to use the current working directory, use "-I".getcwd instead of "-I." so we use its absolute path, which is immune to the removal of ".".
* Run autopkgtest tests using autodep8 and the pkg-perl team's infrastructureSimon McVittie2015-11-30
|
* Standardize on --long-option instead of -long-optionSimon McVittie2015-03-01
| | | | | | | | | | [[forum/refresh_and_setup]] indicates some confusion between --setup and -setup. Both work, but it's clearer if we stick to one in documentation and code. A 2012 commit to [[plugins/theme]] claims that "-setup" is required and "--setup" won't work, but I cannot find any evidence in ikiwiki's source code that this has ever been the case.
* override LC_ALL, not LANGJoey Hess2009-10-15
|
* build wiki in C locale, to ensure that the "no broken links" message is not ↵Joey Hess2009-10-14
| | | | translated
* use underlay_install as optimisatonJoey Hess2009-07-21
|
* Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not ↵Joey Hess2009-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | available. The test suite was emitting a lot of ugly gettext warnings; setting LC_ALL didn't solve the problem for all locale setups (since ikiwiki remaps it to LANG, and ikiwiki didn't know about the C locale). People also seem generally annoyed by the messages when Locale::Gettext is not installed, and I suspect will be generally happier if it just silently doesn't localize. The optimisation came about when I noticed that the gettext sub was doing rather a lot of work each call just to see if localisation is needed. We can avoid that work by caching, and the best thing to cache is a version of the gettext sub that does exactly the right thing. This was slightly complicated by the locale setting, which might need to override the original locale (or lack thereof) after gettext has been called. So it needs to invalidate the cache in that case. It used to do it via a global variable, which I am happy to have also gotten rid of.
* Fix test suite to not rely on an installed copy of ikiwiki after underlaydir ↵Joey Hess2009-05-25
| | | | change. Closes: #530502
* stop using perl -T hereJoey Hess2009-05-22
| | | | | | | See bug #411786. Perl's random corruption of the taint flag is even effecting the untainting of source filenames now (which AFAICS, is a proper untaint and always worked before..), and that makes using ikiwiki in perl taint mode not work at all.
* test for brokenlinks when listdirectives is enabled, tooJoey Hess2008-09-11
|
* display broken links on failureJoey Hess2008-09-11
|
* add a regression test to ensure that permalinks never changeJoey Hess2008-07-25
|
* Hopefully fix regression tests in non-English environmentsSimon McVittie2008-07-12
|
* fix path issue when runnign testjoey2007-09-05
|
* * Support for looking in multiple directories for underlay files.joey2007-08-28
| | | | | | | * Plugins can add new directories to the search path with the add_underlay function. * Split out smiley underlay files into a separate underlay, so if the plugin isn't used, the wiki isn't bloated with all those files.
* test suite fixesjoey2007-08-21
|
* * Patch fixing various additional problems with test suite. Closes: #425891joey2007-06-26
| | | | once more.
* * Fix FTBFS in test suite introduced in last version. Closes: #425891joey2007-05-24
|
* build fixesjoey2007-05-20
|
* * Add a test ensuring that the basewiki is self-contained and has no brokenjoey2007-05-20
links.