aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* util.cache: Change behaviour of on_evict (and tests). Now accepts false ↵Matthew Wild2016-03-171-9/+29
| | | | instead of a function (never evict), or on_evict can return false to prevent eviction.
* util.cache: Add head() and tail() methods (and tests)Matthew Wild2016-03-171-1/+26
|
* tests: Expand util.stanza testsMatthew Wild2016-03-091-0/+115
|
* tests: Add basic tests for util.xml and util.xmppstreamMatthew Wild2016-03-053-0/+97
|
* tests: Add extra tests for util.jsonMatthew Wild2016-03-0537-0/+139
|
* Add tests for util.jsonMatthew Wild2016-03-042-0/+22
|
* tests: Add minimal test for util.random that checks that it returns the ↵Kim Alvefur2016-02-212-0/+11
| | | | number of bytes requested
* tests: Use util.envload to load chunks (fixes #608)Kim Alvefur2016-01-281-6/+5
|
* tests: Add test for util.uuid (checks that the output format is correct)Kim Alvefur2016-01-102-0/+25
|
* tests: Correct mistake from latst merge, use the same variable name in all 3 ↵Kim Alvefur2016-01-101-2/+2
| | | | places where it matters
* tests: Fix merge, modulemanager test was removedKim Alvefur2016-01-081-1/+0
|
* Merge 0.9->0.10Kim Alvefur2016-01-081-2/+6
|\
| * tests/test.lua: Fix fake module() function to prevent _M from being _G ↵Matthew Wild2016-01-061-1/+4
| | | | | | | | (test.lua's environment), which caused modules to break the sandbox when they set _M.*
* | tests: Add small test for util.throttleKim Alvefur2015-12-232-0/+35
| |
* | util.cache (and tests): Call on_evict after insertion of the new key, so ↵Matthew Wild2015-12-221-0/+55
| | | | | | | | inside on_evict we can be more certain about the current state of the cache (i.e. full, new item added, old item removed)
* | tests: Add tests for util.cacheMatthew Wild2015-11-262-0/+175
| |
* | tests/run_tests.sh: Let status code propagate to shellMatthew Wild2015-09-041-1/+1
| |
* | tests: Return status code depending on whether tests passedMatthew Wild2015-09-041-1/+6
| |
* | tests: Add tests for util.queueMatthew Wild2015-06-031-0/+68
| |
* | Merge 0.9->0.10 (third time lucky)Matthew Wild2015-03-273-0/+72
|\|
| * utf8_sequences.txt: OopsMatthew Wild2015-03-231-1/+1
| |
| * tests: Add UTF-8 validity testsMatthew Wild2015-03-233-0/+72
| |
* | Remove all trailing whitespaceFlorian Zeitz2013-08-0912-51/+51
| |
* | test_util_rfc6724: Update with new test vectors from RFC 6724Florian Zeitz2013-05-201-29/+75
| |
* | test_util_ip.lua: Add more tests for util.ipMatthew Wild2013-05-181-3/+62
| |
* | test_util_ip: Add tests for IP matchingMatthew Wild2013-05-181-5/+28
| |
* | tests/test_core_configmanager.lua: Update to remove tests based on sections ↵Matthew Wild2013-05-181-13/+9
| | | | | | | | (now removed)
* | tests: Some much-needed cleanup...Matthew Wild2013-05-186-53/+21
|/
* util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashesFlorian Zeitz2013-04-271-1/+1
|
* util.rfc3484: New util implementing RFC3484 sortingFlorian Zeitz2011-10-222-0/+52
|
* tests/test.lua, tests/test_net_http.lua: Tests for net.http's url and form ↵Matthew Wild2011-08-102-0/+39
| | | | encoding/decoding functions
* tests/test_sasl.lua: Convert literal UTF-8/Latin1 chars to escape codes for ↵Matthew Wild2011-02-221-8/+1
| | | | weak text editors
* tests/test_util_stanza.lua: Allow stanza.last_add to be nil.Waqas Hussain2010-11-261-1/+0
|
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-166-28/+28
|
* tests/test_util_jid.lua: Add more tests for JID splittingMatthew Wild2010-08-311-3/+6
|
* tests/test_util_jid.lua: Better formatting, comments, and stop giving 5 ↵Matthew Wild2010-08-101-4/+7
| | | | arguments to a 4-argument function (thanks Asterix :) )
* tests: Added tests for util.sasl.scram.Hi().Waqas Hussain2010-07-262-0/+24
|
* util.jid: compare() added, with some tests.Kim Alvefur2010-07-161-0/+11
|
* Merge 0.6->0.7Matthew Wild2010-03-2210-20/+20
|\
| * Update copyright headers for 2010Matthew Wild2010-03-2210-20/+20
| |
| * tests: Add tests for util.jid.join()Matthew Wild2009-11-271-0/+11
| |
* | Merge with 0.6Matthew Wild2010-02-251-4/+4
|\|
| * tests/test_core_s2smanager.lua: Fix to compare SRV weights correctlyMatthew Wild2010-02-251-4/+4
| |
* | tests/test.lua: Changes to environment handling of tests, and replace ↵Matthew Wild2009-11-271-6/+9
| | | | | | | | module() with dummy function that doesn't alter the current environment
* | tests: Add tests for util.jid.join()Matthew Wild2009-11-271-0/+11
| |
* | tests/test.lua: Print the current test being run if verbosity sufficientMatthew Wild2009-11-271-0/+3
| |
* | tests/modulemanager_option_conversion.lua: Add standalone test script for ↵Matthew Wild2009-11-231-0/+55
|/ | | | the new modulemanager config option API
* tests: Fix stanza_router tests to work with the new routing code, finally ↵Matthew Wild2009-10-171-26/+32
| | | | all tests pass again \o/
* tests: More environment magic to help get stuff working in a sandboxMatthew Wild2009-10-171-5/+8
|
* tests: Have fake module() set _M to satisfy some modulesMatthew Wild2009-10-161-1/+1
|