aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
* 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.
* add test case for unterminated """ stringJoey Hess2009-06-05
| | | | | | | | | | | | A directive that contains an unterminated """ string should not cause each word of the string to be treated as a bare word. Instead, the directive should fail to parse. There are two tests. One just checks that a complete directive containing such a string fails to parse. The other checks for a case where a directive ends with a very long unterminated """ string, and the directive is itself not closed. While this test won't fail, it does trigger a nasty perl warning.
* 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.
* add test case for multiline pagespecJoey Hess2009-05-21
|
* Allow curly braces to be used in pagespecsJoey Hess2009-05-18
| | | | | | | And avoid a whole class of potential security problems (though none that I know of actually existing..), by avoiding performing any string interpolation on user-supplied data when translating pagespecs.
* Fix git test suite to use a bare repo.Joey Hess2009-04-04
| | | | | | | | This works around an enormous (and, in this context, enormously confusing) message that git has begun to print when one attempts to push changes into a non-bare repo. As a bonus, it now tests whether ikiwiki-makerepo works.
* Add noextension parameter to htmlize hooks to support, eg, Makefile.Joey Hess2009-02-19
|
* add keepextension testsJoey Hess2009-02-19
|
* fix pagename, pagetype testsJoey Hess2009-02-19
| | | | | | Put tests in right file. Set internal variable to hash, the functions expect that.
* fix pagetype testJoey Hess2009-02-19
| | | | | File had wrong name, and made wrong assumption about what pagetype does for bare files.
* rename apache404 -> 404Joey Hess2009-01-31
| | | | | | This may already work with other web servers that have copied apache's interface, and it should be easy to add support to it for web servers that use some other interface. So, make the name more general.
* Split apache404 into an independent pluginSimon McVittie2009-01-31
| | | | | Also make it ignore the 'do' parameter at Joey's suggestion, to have one less thing to remember when configuring.
* CGI: add cgi_page_from_404(), which remaps a path like $REDIRECT_URL to an ↵Simon McVittie2009-01-31
| | | | | | IkiWiki page name Also add a regression test
* load rpc xml lib on the flyJoey Hess2009-01-17
| | | | | This way, enabling the plugin via websetup is safe, it can't leave ikiwiki in a broken state.
* blogspam: New plugin, adding spam filtering for page editing / comment ↵Joey Hess2009-01-16
| | | | posting using the BlogSpam.net API.
* yesno: Always accept English even when localised.Joey Hess2009-01-03
| | | | | | | | | | | | | | It seems to be a failing of i18n in unix that the translation stops at the commands and the parameters to them, and ikiwiki is no exception with its currently untranslated directives. So the little bit that's translated sticks out like a sore thumb. It also breaks building of wikis if a different locale happens to be set. I suppose the best thing to do is either give up on the localisation of this part completly, or make it recognise English in addition to the locale. I've tenatively chosen the latter. (Also accept 1 and 0 as input.)
* remove globlist supportJoey Hess2008-12-23
| | | | | No transition code implemented, but I will probably make a 2.x release that warns about found globlists.
* fix to use prefix directivesJoey Hess2008-12-23
|
* fix to use prefix directivesJoey Hess2008-12-23
|
* avoid an uninitialized value warningJoey Hess2008-12-21
|
* Merge commit 'smcv/openid'Joey Hess2008-12-21
|\
| * Add a regression test for &openiduserSimon McVittie2008-12-21
| |
* | add another testJoey Hess2008-12-21
| |
* | beautify_urlpath: add a regression testSimon McVittie2008-12-21
|/
* use HTML::EntitiesJoey Hess2008-11-17
|
* modify to skip tests if the neccessary perl modules are not availableJoey Hess2008-11-17
|
* htmlbalance: new plugin that balances tags by parsing and re-serializingSimon McVittie2008-11-17
|
* Fix the link() pagespec to match links that are internally recorded as absolute.Joey Hess2008-11-09
| | | | | | | | | | | | | | This fixes a problem exposed by the recent change to tags (a2839de9362187b67b0e3a564461e272e64fd9b4). That recorded tag links as absolute by including a leading slash in the link. The same could also be done with an absolute wikilink. In either case, link() would not match such links, unless the leading slash was included in the link to match. But that's not right, because pagespecs match absolute by default. So strip the leading slash. Note that to keep any existing `link(/foo)` pagespecs working after this change, the leading slash is removed from there, too.
* add test for empty, and for entirely negated pagespecsJoey Hess2008-09-30
|
* Export pagetitle, titlepage, linkpage.Joey Hess2008-09-27
|
* Add keepextension parameter to htmlize hook. (Willu)Joey Hess2008-09-23
|
* test for brokenlinks when listdirectives is enabled, tooJoey Hess2008-09-11
|
* display broken links on failureJoey Hess2008-09-11
|
* test skeleton.pm.exampleJoey Hess2008-08-03
|
* update rcs tests for new rcs plugin load methodJoey Hess2008-08-01
| | | | | As a side effect, since loadplugins is called, mdwn is loaded, so rcs_recentchanges will return page names, not filenames, for mdwn files.
* finish with rcs plugin conversionJoey Hess2008-07-26
|
* Version control backends promoted to first-class pluginsJoey Hess2008-07-26
|
* add a test caseJoey Hess2008-07-26
|
* add test dataJoey Hess2008-07-25
|
* add a regression test to ensure that permalinks never changeJoey Hess2008-07-25
|
* 2 was apparently correctJoey Hess2008-07-25
| | | | I don't think it really matters whether directories are returned or not.
* bring git test to parity with bazaar testJoey Hess2008-07-25
| | | | Also, fixed bug I introduced in bazaar test.
* expose a bug in bzr renameing codeJoey Hess2008-07-25
|
* add missing --quietJoey Hess2008-07-25
|
* Merge commit 'jelmer/master'Joey Hess2008-07-25
|\
| * Support staging commands in bzr backend.Jelmer Vernooij2008-07-24
| |
* | fix encoding issues with link conversionJoey Hess2008-07-24
| | | | | | | | | | | | Have to convert link text to page name going in. And on the way out, need to replace spaces with underscores in the link text, which is not normally done with titles.
* | test suite and partial fix for encoding issues in link renamingJoey Hess2008-07-23
|/
* preserve case of subpageJoey Hess2008-07-23
|