aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-27test: skip all subtests if external dependencies are missing during initDmitry Kurochkin
Some tests (e.g. crypto) do a common initialization required for all subtests. The patch adds a check for missing external dependencies during this initialization. If any prerequisites are missing, all subtests are skipped. The check is run on the first call of test_reset_state_ function, so no changes for the tests are needed.
2011-11-27test: fix "skipping test" verbose outputDmitry Kurochkin
2011-11-27test: add support for external executable dependenciesDmitry Kurochkin
There is existing support for general prerequisites in the test suite. But it is not very convenient to use: every test case has to keep track for it's dependencies and they have to be explicitly listed. The patch aims to add better support for a particular type of external dependencies: external executables. The main idea is to replace missing external binaries with shell functions that have the same name. These functions always fail and keep track of missing dependencies for a subtest. The result reporting functions later can check that an external binaries are missing and correctly report SKIP result instead of FAIL. The primary benefit is that the test cases do not need to declare their dependencies or be changed in any way.
2011-11-27test: add test state reset to test_expect_* functions that did not have itDmitry Kurochkin
2011-11-27test: set EMACS_SERVER variable only after dtach(1) was successfully startedDmitry Kurochkin
Otherwise, we can set the EMACS_SERVER and return with an error. And subsequent calls to test_emacs would assume that emacs server is running.
2011-11-27test: move subtest variables reset into a dedicated functionDmitry Kurochkin
Currently, there is only one such variable test_subtest_known_broken_. But more will be added in the future.
2011-11-27Build symbol-test with make instead of hardcoding in symbol-hiding.Amadeusz Żołnowski
If symbol-test is built in symbol-hiding with hardcoded g++ invokation, it's not so easy to pass $(srcdir) which is required to find notmuch.h when srcdir and builddir are separate directories.
2011-11-26Merge branch 'release'David Bremner
2011-11-26build system: clean up object files in ./test and ./utilDavid Bremner
2011-11-26Whitespaces cleanup.Amadeusz Żołnowski
2011-11-26Fix warnings for test/symbol-test.cc.Amadeusz Żołnowski
2011-11-26test: cleanup basic testsDmitry Kurochkin
Basic test 'Ensure that all available tests will be run by notmuch-test' compares all tests that are run with listing of test/ directory. There is a growing list of exceptions for files and directories which located in the test/ directory but are not tests. Moreover some (probably buggy) tests do create files in the the test/ directory which may be left behind in case of failure. This makes the basic test fail. The patch changes the test to look only for regular executable files. This makes the exception list much smaller. And since no tests should create executables in the test/ directory (if there are, they should be fixed), the basic test should not be affected by failed or interrupted tests.
2011-11-26test: fix sed error in basic testsDmitry Kurochkin
The error is easy to miss, because the test passes and stderr is not printed. But if you run basic tests in verbose mode (./basic --verbose), you get: sed: can't read notmuch-test: No such file or directory The issue is that sed command is given two files: notmuch-test and $TEST_DIRECTORY/notmuch-test. And there is no notmuch-test file in the current directory (test/tmp.basic/). The patch just removes the non-existing file from the sed command.
2011-11-26test: remove executable permissions from test-lib.shDmitry Kurochkin
It is not supposed to be run, only sourced.
2011-11-25emacs: test notmuch show with fourfold message indentationGregor Zattler
Previous behaviour was to indent messages in a thread according to depth by one space per level. This commit tests if setting notmuch-indent-messages-width to `4' provides a message thread with four spaces of indentation thread depth.
2011-11-25emacs: test: notmuch show without indentationGregor Zattler
Previous behaviour was to indent messages in a thread according to depth by one space per level. In id:1311028119-50637-1-git-send-email-fgeller@gmail.com Felix Geller proposed a patch in order to turn indentation off. This commit tests if instead setting notmuch-indent-messages-width to `0' does turn off indentation.
2011-11-25emacs: test notmuch-indent-messages-width defaultGregor Zattler
Previous behaviour was to indent messages in a thread according to depth by one space per level. This is still the case with notmuch-indent-messages-width default value `1'. This test succeeds if output with default value is same as in "Basic notmuch-show view in emacs".
2011-11-25emacs: make message indentation width customisableGregor Zattler
Till now Emacs UI indents messages according to their respecive depth of neting in the thread. The actual width of indentation per level is hardcoded to `1' space. This patch makes message indentation customisable by introducing a variable `notmuch-indent-messages-width' which defaults to `1', which is the same as before. Felix could set this variable to `0' in order to disable indentation, I tested it with a value of `4' for a clearer separation of messages in a thread.
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-25NEWS: add NEWS stanza for 0.10.1David Bremner
Explain the bug fix in slightly less technical language than in the Debian changelog.
2011-11-25debian: changelog stanza for 0.10.1David Bremner
2011-11-25version: update to 0.10.1David Bremner
2011-11-25CLI: update call to notmuch_help_command for new calling conventions.David Bremner
When I changed the calling convention to pass in all but the zero-th argument to subcommands, I missed this one call, resulting in a segmentation fault. As a bonus, the syntax "notmuch --help foo" is now equivalent to "notmuch help foo".
2011-11-24make release: use sed to check debian versionTomi Ollila
Use common sed tool instead of dpkg-parsechangelog (which is usually available on debian systems only) to verify that debian version information is consistent with version file.
2011-11-24make release: added goal verify-version-manpageTomi Ollila
Check that the version mentioned in notmuch manual page is consistent with the version file.
2011-11-24make release: verify-version-*: change comparison logicTomi Ollila
verfy-version-debian, verify-version-python and verify-version-components checked noneqality of the comparison strings and if got "positive" answer then made that goal fail. But in case of the test ([ ]) execution failed it never got to the 'then' part of the line (and the 'if [ ... ] then ... fi ' construct doesn't make the script line fail in case of problems inside [ ]. This commit inverses the "logic", so that only if the comparison for equality succeeds the script line will exit with 0 and execution can continue past the failure case to the next line (executed by another shell) with '@echo done'
2011-11-24emacs: Avoid unnecessary markers.Austin Clements
This is just cleanup. These markers are all immediately resolved to points by Emacs, so using markers here is just unncessary overhead.
2011-11-24emacs: Don't record undo information for search or show buffers.Austin Clements
There's no reason to record undo information for read-only, programmatically-constructed buffers. The undo list just chews up memory keeping track of our calls to insert.
2011-11-24debian/control: require dtach version >= 0.8 in Build-DependsTomi Ollila
Since version 0.8 of dtach -n does no longer require controlling tty to be present when executed. Currently controlling tty is not always (if ever) present when tests are executed.
2011-11-23Merge branch 'release'David Bremner
2011-11-23debian: changelog stanza for 0.100.10David Bremner
Give a brief summary of (and pointer to) NEWS
2011-11-23NEWS: set (approximate) date for 0.10 releaseDavid Bremner
It doesn't really matter if we are off by a day.
2011-11-23version: update to 0.10David Bremner
2011-11-23NEWS: item for silent killing of search buffers.David Bremner
This is maybe borderline for inclusion in NEWS, but maybe the NEWS item helps someone who thinks there is a bug.
2011-11-23contrib/notmuch-deliver: don't export from gitDavid Bremner
This prevents it from being part of the release tarballs. Hopefully this is only temporary while we sort out the GPL2 versus GPL3 question.
2011-11-22emacs: Make saving new saved searches append, not prependJani Nikula
Append new saved searches at the end of saved searches rather than insert in front. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-11-22emacs: Add new customization option to sort saved searchesJani Nikula
Add new customization option notmuch-saved-search-sort-function to sort saved searches in user-defined order. Provide a sort function to sort the saved searches in alphabetical order. Setting the search function to nil causes the saved searches not to be sorted, as before. This also remains the default. The function only affects display of the saved searches, not the order in which they are stored by custom. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-11-21tags_to_maildir_flags: Cleanup double assignementLouis Rilling
The for loop right after already does the job. Signed-off-by: Louis Rilling <l.rilling@av7.net>
2011-11-21lib: Kill last usage of C++ type boolLouis Rilling
Signed-off-by: Louis Rilling <l.rilling@av7.net>
2011-11-21Merge branch 'release'David Bremner
2011-11-20fix a double // to single /Florian Friesdorf
2011-11-20emacs: breakout notmuch-show-advance functionality from notmuch-show-advance-and-archiveJameson Graef Rollins
This patch breaks out much of the functionality of notmuch-show-advance-and-archive into a new function: notmuch-show-advance. This new function does all the advancing through a show buffer that notmuch-show-advance-and-archive did, without all the invasive thread archiving. The return value of notmuch-show-advance is nil if the bottom of the thread is not reached, and t if it is. notmuch-show-advance-and-archive is modified to just call notmuch-show-advance, and then call notmuch-show-archive-thread if the return value is true. In this way the previous functionality of notmuch-show-advance-and-archive is preserved. This provides a way for people to rebind the space bar to a more sane function if they don't like the default behavior.
2011-11-19Don't link libnotmuch if libutil isn't linked in properly.Tom Prince
For some reason, on my machine, the link is picking up /usr/lib/libutil.so instead of util/libutil.a. This causes there to be undefined symbols in libnotmuch, making it unuseable. This patch causes the link to fail instead.
2011-11-19RELEASING: document the semi-automated version propagation.David Bremner
The instructions are purposely a bit coy about what files are updated, so we don't have to update immediately when something else is plugged into the make recipe.
2011-11-19build system: add target update-versions to propagate versionDavid Bremner
The version from file "version" is propagated to the man page and the python bindings via sed. Note that the git version is ignored because of the check for MAKECMDGOALS.
2011-11-19build system: use $(filter ...) to test MAKECMDGOALSDavid Bremner
This makes the test easier to extend to more targets. It also corrects a bug where "special" targets were only detected when given alone.
2011-11-19version: update version info for 0.10~rc2debian/0.10_rc2-10.10_rc2David Bremner
Arguably editing debian/changelog violates the "do one thing at a time" rule, but all of these versions need to be kept in sync.
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-18test: emacs: tidy up "Stashing in notmuch-show" testPieter Praet
Merge expected output into the actual test, so we can verify the stashed filename using ${gen_msg_filename} instead of doing sed tricks.
2011-11-18test: attempt to send QUIT to smtp-dummy in case mail send failedTomi Ollila
If mail sending from emacs fails before it has chance to connect to the smtp-dummy mail server, the opportunistic QUIT message sending makes smtp-dummy to exit.