aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* config-parser: improved error reporting, added bc_config_get_with_defaultRafael G. Martins2016-12-201-4/+13
|
* git-receiver: test manual mirror pushRafael G. Martins2016-11-191-0/+30
|
* git-receiver: when rebuilding, change to repo dir asapRafael G. Martins2016-11-171-5/+17
|
* git-receiver: allow users to re-run the last successful buildRafael G. Martins2016-11-171-0/+16
| | | | | running the pre-receive hook manually on the server will re-run the last successful build.
* blogc: added some "integration" testsRafael G. Martins2016-10-151-0/+379
|
* build: use bash, but get it properly during build timeRafael G. Martins2016-10-123-3/+3
| | | | hardcoding it for travis, as bash is always installed there.
* build: man: tests: do not use bashRafael G. Martins2016-10-123-3/+3
| | | | tested with busybox' ash, that is not exactly posix.
* tests: git-receiver: avoid removing directories for safetyRafael G. Martins2016-10-113-20/+15
|
* git-receiver: added tests for shell, fixed bugRafael G. Martins2016-10-111-0/+73
|
* git-receiver: added test for post-receive. fixed leakRafael G. Martins2016-10-111-0/+148
|
* Revert "trying to fix tests on travis"Rafael G. Martins2016-10-101-4/+4
| | | | This reverts commit 84dbde7d04a04434721ec9d2965af6d946713e5d.
* trying to fix tests on travisRafael G. Martins2016-10-101-4/+4
|
* removed uneeded error code. export LC_ALL=C in test scriptRafael G. Martins2016-10-101-0/+2
|
* git-receiver: added support to get mirror url from config fileRafael G. Martins2016-10-102-0/+173
| | | | this commit also includes some "integration test" in shell script
* tests: added missing include to fix warningRafael G. Martins2016-10-071-0/+1
|
* git-receiver: splitted/reimplemented and tested shell command parserRafael G. Martins2016-10-071-0/+244
|
* git-receiver: splitted and tested pre-receive input parserRafael G. Martins2016-10-042-0/+154
|
* runserver: reimplemented http server without libeventRafael G. Martins2016-09-253-1/+257
| | | | | | | | | yeah, this patch implements a "complete" http server for static files. It is not the best code possible, and would be easily DDoS'able if used in production, as it spawns a thread for each request, without limiting. I'm sickish and this is the best code I can deliver now. At least it works! ;)
* blogc: common: moved "file" to commonRafael G. Martins2016-09-091-111/+111
|
* file: do not call fprintf directlyRafael G. Martins2016-09-091-22/+8
|
* s/blogc_utf8_/bc_utf8_/gRafael G. Martins2016-09-091-13/+13
|
* common: added config-parserRafael G. Martins2016-09-091-0/+434
|
* *: centralize error handlingRafael G. Martins2016-09-095-5/+0
|
* common: rename macrosRafael G. Martins2016-09-091-18/+18
|
* *: moved error handling to src/common/Rafael G. Martins2016-09-036-267/+272
|
* *: s/sb_/bc_/gRafael G. Martins2016-09-036-828/+828
|
* *: big code reorganization.Rafael G. Martins2016-09-039-22/+22
| | | | | | | - source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common
* *: fixed includesRafael G. Martins2016-07-079-39/+9
| | | | | this refactoring was done with the help of the 'include-what-you-use' program. if this breaks the build for you, please report!
* template-parser: fixed block scopeRafael G. Martins2016-07-071-6/+148
| | | | | this patch blocks some usage that is obviously wrong and that nobody would want to use, but that should be explicitly blocked by the parser.
* renderer: utils: fixed memory bugs found by clang static analyzerRafael G. Martins2016-07-051-0/+1
|
* utf8: fix testRafael G. Martins2016-07-041-1/+1
|
* utf8: fix test data typeRafael G. Martins2016-07-041-3/+3
|
* utf8: skip BOM, if foundRafael G. Martins2016-07-041-1/+21
|
* blogc: added utf8 validationRafael G. Martins2016-07-031-0/+83
|
* template-parser: minor fixRafael G. Martins2016-07-031-1/+1
|
* Revert "error: improved parser error reporting"Rafael G. Martins2016-07-033-132/+61
| | | | | | this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03.
* error: improved parser error reportingRafael G. Martins2016-07-033-61/+132
| | | | | | now it shows a visual indicator '^' pointing to the position of the error, in the line after the error message. should be helpful for users writing templates, if any.
* template-parser: fixed error messageRafael G. Martins2016-07-031-1/+1
|
* template-parser: renderer: implemented 'else' support in templatesRafael G. Martins2016-07-032-9/+330
| | | | | | | | | yeah, this is stupid. after more than 320 commits and 26 releases, we finally support the 'else' statement in the template engine. I don't know if I'm dumb or what, but it took me that long to find a "simple" solution to this basic issue. yep, no more `{% ifdef FOO %}...{% endif %}{% ifndef FOO %}...{% endif %}` blocks. but seriously, who cares?! :/
* content-parser: fixed testsRafael G. Martins2016-06-291-6/+6
|
* content-parser: added more line break testsRafael G. Martins2016-06-291-0/+8
|
* content-parser: rewrote inline parser.Rafael G. Martins2016-06-292-34/+161
| | | | parser is stricter now, and won't produce invalid HTML anymore.
* renderer: added support to truncate variables.Rafael G. Martins2016-05-301-0/+28
| | | | this commit also documents variable formatters properly.
* content-parser: encode HTML entities in DESCRIPTION variableRafael G. Martins2016-05-241-0/+3
|
* content-parser: fixed DESCRIPTION variable.Rafael G. Martins2016-05-231-5/+50
| | | | | | | | | it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph.
* content-parser: do not use paragraphs inside blockquote for DESCRIPTIONRafael G. Martins2016-05-221-4/+4
|
* remove squareball for goodRafael G. Martins2016-04-276-6/+6
|
* moved squareball back to blogc source tree.Rafael G. Martins2016-04-272-1/+960
| | | | | | | i don't have enough time to maintain a separated library at this point, and worry about soname bump, library stability, etc. all the code is trivial enough to be copied around, and all the utils are implemented as single file now, to make it easier to copy.
* Revert "*: use squareball error infrastructure"Rafael G. Martins2016-04-276-321/+321
| | | | This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4.
* Revert "error: removed uneeded tests"Rafael G. Martins2016-04-271-0/+24
| | | | This reverts commit 37592b57b31987519e59117d49bccd0207e67f15.