aboutsummaryrefslogtreecommitdiff
path: root/test/notmuch-test
AgeCommit message (Collapse)Author
2016-06-28test/notmuch-test: simple streamliningTomi Ollila
A few simple things that applies well to test/notmuch-test.sh - Shell does pathname expansion also without doing `echo ...` in subshell. - Redirections >/dev/null 2>/dev/null hide (improbable but) potential serious errors; adding -f to rm instead. - Inter-file capitalization consistency in comments. - Unnecesary space removal.
2016-05-19test: copyright information updatesTomi Ollila
Files in test directories had only copyright of a single individual, of which code was adapted here as a base of the test system. Since then many Notmuch Developers have contributed to the test system, which is now acknowledged with a constant string in some of the test files. The README file in test directory instructed new files contain a copyright notice, but that has never been done (and it is also not needed). To simplify things a bit (and lessen confusion) this instruction is now removed. As a side enchangement, all of the 3 entries in the whole source tree cd'ing to `dirname` of "$0" now uses syntax cd "$(dirname "$0")". This makes these particular lines work when current working directory is e.g. /c/Program Files/notmuch/test/. (Probably it would fail elsewhere, though.)
2014-01-13test: renamed test scripts to format T\d\d\d-name.shTomi Ollila
All test scripts to be executed are now named as T\d\d\d-name.sh, numers in increments of 10. This eases adding new tests and developers to see which are test scripts that are executed by test suite and in which order.
2013-12-09test: print empty line at the beginning of test script, not at endTomi Ollila
In preparation for quiet mode print empty line before writing the test description. This is done now in function designed for it -- it will also be called when test fails.
2013-11-07test: move emacs-tree test into mainlineMark Walters
We move the emacs-tree test and associated files into the main test directory and add the test to the list in notmuch-test.
2013-10-31test: Add compact testBen Gamari
Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
2013-09-08test: exit with nonzero value when not all tests completed successfullyTomi Ollila
If any of the tests in our test system is not passing the execution of the test suite completes with nonzero exit value. It is better to rely on the exit value of the test system instead of some arbitrary strings in test output (or use both).
2013-06-29test: add tests for insertPeter Wang
Add tests for new 'insert' command.
2013-05-13test: add tests for the handling of References and In-Reply-To headersAaron Ecay
These tests are known_broken, the following commit fixes them. amended per id:87txmi1zq3.fsf@nikula.org id:87vc6yalo7.fsf@zancas.localnet
2013-05-12test: add basic test for notmuch setupJani Nikula
And annotate with test_subtest_known_broken. Hooray.
2012-12-08Adding tests for --format=sexp.Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format.
2012-12-02test/hex-escaping: new test for hex escaping routinesDavid Bremner
These are more like unit tests, to (try to) make sure the library functionality is working before building more complicated things on top of it.
2012-11-29test: Abort driver if a test script abortsAustin Clements
Previously, if a test script aborted (e.g., because it passed too few arguments to a test function), the test driver loop would simply continue on to the next test script and the final results would declare that everything passed (except that the test count would look suspiciously low, but maybe you just misremembered how many tests there were). Now, if a test script exits with a non-zero status and did not produce a final results file, we propagate that failure out of the driver loop immediately. To keep this simple, this patch removes the PID from the test-results file name. This PID was inherited from the git test system and seems unnecessary, since the file name already includes the name of the test script and the test-results directory is created anew for each run.
2012-10-31test: add tests for date:since..until range queriesJani Nikula
A brief initial test set.
2012-10-31test: add smoke tests for the date/time parser moduleJani Nikula
Test the date/time parser module directly, independent of notmuch, using the parse-time test tool. Credits to Michal Sojka <sojkam1@fel.cvut.cz> for writing most of the tests.
2012-08-12test: Add test for messages with missing headersAustin Clements
Currently the JSON tests for search and show are broken because notmuch attempts to dereference a NULL pointer.
2012-07-09test: add basic show, search --format=text testsPeter Wang
There didn't seem to be these basic tests for --format=text, as there are for --format=json. These are just the tests from the `json' script, with adjusted expected outputs.
2012-04-28test: Add tests for 'config' commandPeter Wang
Start a new test script.
2012-04-07test: add some exclude testsMark Walters
Systematically test the exclude options for search. Also move the search existing exclude tests into the new test. There is some overlap between the two sets of tests but many of the existing ones are there because they triggered bugs in the past so I have kept them to ensure coverage.
2012-03-01emacs: Tests for user-defined sectionsDaniel Schoepe
A new file was added for notmuch-hello tests.
2012-02-04test: add test for hiding Original Message region at beginning of a messageDmitry Kurochkin
The test is currently broken and will be fixed by a subsequent patch. The patch adds a new file for tests of Emacs notmuch-show view. Based on patch by David Edmondson [1]. [1] id:"1327562380-12894-4-git-send-email-dme@dme.org"
2012-02-03test: remove ".sh" extension from the recently added Emacs testsDmitry Kurochkin
All test files, except for the recently added Emacs tests, do not have ".sh" extension. So remove it from the new test files for consistency.
2012-01-25test: Add address cleaning tests.David Edmondson
2012-01-25test: Add `test_emacs_expect_t'.David Edmondson
Add a new test function to allow simpler testing of emacs functionality. `test_emacs_expect_t' takes one argument - a lisp expression to evaluate. The test passes if the expression returns `t', otherwise it fails and the output is reported to the tester.
2012-01-14test: add tests for "notmuch reply" --reply-to=senderMark Walters
2011-12-28test: emacs: test notmuch-wash-subject-to-* functionsJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-11test: add tests for hooksJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-08test: tests for command-line-arguments.cDavid Bremner
This was needed because no current notmuch code exercises the NOTMUCH_OPT_STRING style arguments.
2011-12-06Merge branch 'release'David Bremner
Conflicts: NEWS Conflicts resolved by inserting the 0.10.2 stanza before 0.11
2011-12-05test: add tests for python bindingsDavid Bremner
We start modestly, with a (slightly modified) test case from Kazuo Teramoto. Originally it just made sure the bindings didn't crash; here we check that by comparing the output with that of notmuch search.
2011-11-26Merge branch 'release'David Bremner
2011-11-25test: add simple tests for online helpdebian/0.10.1-10.10.1David Bremner
Nothing fancy, but we can at least detect segmentation faults.
2011-11-18test: make all tests terminable with Ctrl-cTomi Ollila
Some tests don't break when HUP signal is sent tho those (by pressing ctrl-c on the terminal). Therefore, the top-level test script catches the HUP and sends TERM signal to the started test script.
2011-11-15test: add tests for notmuch search --offset and --limitJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2011-11-15test: add tests for notmuch countJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2011-11-14test: Add a test script for "notmuch tag"Austin Clements
2011-09-12test: Test atomicity of notmuch new.Austin Clements
This tests notmuch new's ability to recover from arbitrary stopping failures. It interrupts notmuch new after every database commit and, on every resulting database snapshot, re-runs notmuch new to completion and checks that the final database state is invariant.
2011-06-29test:Folder tags shouldn't match after removal of file in given folderMark Anderson
Test for bug. Current stemming support for notmuch adds extra terms to the DB which aren't removed when the file renames are detected. When folder tags are added to a message, Xapian terms for both XFOLDER and ZXFOLDER are generated. When one of the filenames are renamed/removed, only the XFOLDER tags are removed, leaving it possible for a match on a folder: tag that was previously but is no longer a match in the maildir.
2011-06-23tests: add a test for symbol hiding side effectsDavid Bremner
The worry here is that a binary linking with libnotmuch might lose access to Xapian::Error symbols because libnotmuch hides them. We are careful here to create ./fakedb/.notmuch in order to trigger a Xapian exception, and not just a missing file check. Thanks to jrollins and amddragon for suggestions. (cherry picked from commit 66f37f5f6864a988f94ddb893e3a176af57f6c8e)
2011-06-22tests: Add optional use of timeout utility, if present.David Bremner
Each top level test (basic, corpus, etc...) is run with a fixed timeout of 2 minutes. The goal here is to treat a hung test as a failure. The emacs test for sending mail is known to be problematic on the Debian autobuilders. This is both a bandaid fix for that, and a sensible long term feature. (cherry picked from commit 5f99c80e02736c90495558d9b88008a768876b29)
2011-05-27test: add crypto tests for signature verification and decryptionJameson Graef Rollins
This adds a new "crypto" test script to the test suite to test PGP/MIME signature verification and message decryption. Included here is a test GNUPGHOME with a test secret key (passwordless), and test for: * signing/verification * signing/verification with full owner trust * verification with signer key unavailable * encryption/decryption * decryption failure with missing key * encryption/decryption + signing/verfifying * reply to encrypted message * verification of signature from revoked key These tests are not expected to pass now, but will as crypto functionality is included.
2011-05-27test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portabilityJoel Borggrén-Franck
Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way systems running on bash < 4 can prepend bash >= 4 to path before running the tests.
2011-05-23test: force deletion of test remnantsJameson Graef Rollins
This keeps the test from failing if only a subset of the remnants were available for deletion, because e.g. only a subset of the tests were run.
2011-05-23test: allow specifying tests to run with NOTMUCH_TESTS env varJameson Graef Rollins
This is useful for just running a specific subset of tests, ie: NOTMUCH_TESTS=crypto make test
2011-05-16test: Add a test of "notmuch show" with a multipart messageCarl Worth
This tests "notmuch show" with both --format=text and --format=json on a message with some non-trivial MIME multipart nesting, (multiple parts within a multipart/mixed part which is within a multipart/signed part). The test captures the current behavior (where only the leaf nodes of the MIME structure are emitted as a flat list---the multipart parts are effectively ignored). We plan to soon change the json output at least to emit an actual hierarchy matching the MIME structure, (at which point we will update this test).
2011-03-10Rename/rewrite the new emacs-forgetfulness test (to emacs-large-search-buffer)Carl Worth
The new name is more descriptive of the bug being tested. Also, the test is rewritten slightly so that it's much more plain to see how the bug manifests itself, (that messages are droped from the emacs result at regular intervals). Primarily, this is by collapsing the large blobs used to inflate the message subjects.
2011-03-10New test: Emacs' forgetfulness.Thomas Schwinge
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
2011-03-09test: Rename and clarify the search-lwn testCarl Worth
Now that we understand the bug here, we rename this test to search-insufficient-from-quoting to clarify the bug being exercised, (which occurs when the From: line contains an unquoted '.' character). We also mark these tests as expected failures until the bug gets fixed.
2011-03-09search: Move lwn tests into their own file.Carl Worth
Since it's much easier to debug and fix these if they can be run on their own.
2011-01-26test: Make it easier to resolve conflicts when adding new testsMichal Sojka
Currently, there are two places in the test framework that contain very long list on a single line. Whenever a test is added (or changed) in several branches and these branches are merged, it results in conflict which is hard to resolve because one has to go through the whole long line to find where the conflict is. This patch splits these long lists to several lines so that the conflicts are easier to resolve.