aboutsummaryrefslogtreecommitdiff
path: root/t/trail.t
Commit message (Collapse)AuthorAge
* trail: Allow unescaped punctuation in pagenamesSimon McVittie2019-02-03
| | | | | | | By processing the pagenames through linkpage, we let users specify page names that contain non-alphanumerics in a more natural way. Signed-off-by: Simon McVittie <smcv@debian.org>
* trail.t: Exercise numeric escapes in pagenames parameterSimon McVittie2019-02-03
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* 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.
* If the title of a trail or trail-member changes, rebuild affected pagesSimon McVittie2013-01-02
| | | | | | | | If the title of a trail changes, each member of that trail must be rebuilt, for its prev/up/next box to reflect the new title. If the title of a member changes, its next and previous items (if any) must be rebuilt, for their prev/up/next boxes to reflect the new title.
* Add more trail regression testsSimon McVittie2013-01-02
| | | | | Some of these untested bits have in fact regressed, and as such, are marked as TODO.
* trail, inline: treat pagenames as a list of literal names, not linksSimon McVittie2012-04-06
|
* add some seatbelts to toad's jalopyJoey Hess2012-04-04
| | | | | This does not change the number of failing tests I see, but it does make it show the expected result, which makes analysis easier.
* Use utime to make initial files in trail test come from the pastSimon McVittie2012-03-19
| | | | | | This ensures that when we do the second phase of the test (edit some files and refresh), the changes get a different mtime and are picked up, even if the entire test happened between two 1-second "clock ticks".
* Replace [[!trailinline]] directive with [[!inline trail=yes]]Simon McVittie2012-03-18
|
* Split trail directive into trailitems, trailoptionsSimon McVittie2011-11-12
|
* trail: improve and test sortingSimon McVittie2011-11-12
|
* trail: new plugin (3rd attempt)Simon McVittie2011-11-09