mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: Fix ordering of tests in t0000-basic.sh
The basic notmuch tests depend on the test-suite harness working, so test it first.
This commit is contained in:
parent
c92ad8bf6a
commit
82155c3d96
1 changed files with 21 additions and 21 deletions
|
@ -16,27 +16,6 @@ fi
|
|||
|
||||
. ./test-lib.sh
|
||||
|
||||
################################################################
|
||||
# Test mail store prepared in test-lib.sh
|
||||
|
||||
test_expect_success \
|
||||
'test that mail store was created' \
|
||||
'test -d "${MAIL_DIR}"'
|
||||
|
||||
|
||||
find "${MAIL_DIR}" -type f -print >should-be-empty
|
||||
test_expect_success \
|
||||
'mail store should be empty' \
|
||||
'cmp -s /dev/null should-be-empty'
|
||||
|
||||
test_expect_success \
|
||||
'NOTMUCH_CONFIG is set and points to an existing file' \
|
||||
'test -f "${NOTMUCH_CONFIG}"'
|
||||
|
||||
test_expect_success \
|
||||
'PATH is set to this repository' \
|
||||
'test "`echo $PATH|cut -f1 -d:`" = "`dirname ${TEST_DIRECTORY}`"'
|
||||
|
||||
################################################################
|
||||
# Test harness
|
||||
test_expect_success 'success is reported like this' '
|
||||
|
@ -85,4 +64,25 @@ test_expect_code 2 'failure to clean up causes the test to fail' '
|
|||
test_when_finished "(exit 2)"
|
||||
'
|
||||
|
||||
################################################################
|
||||
# Test mail store prepared in test-lib.sh
|
||||
|
||||
test_expect_success \
|
||||
'test that mail store was created' \
|
||||
'test -d "${MAIL_DIR}"'
|
||||
|
||||
|
||||
find "${MAIL_DIR}" -type f -print >should-be-empty
|
||||
test_expect_success \
|
||||
'mail store should be empty' \
|
||||
'cmp -s /dev/null should-be-empty'
|
||||
|
||||
test_expect_success \
|
||||
'NOTMUCH_CONFIG is set and points to an existing file' \
|
||||
'test -f "${NOTMUCH_CONFIG}"'
|
||||
|
||||
test_expect_success \
|
||||
'PATH is set to this repository' \
|
||||
'test "`echo $PATH|cut -f1 -d:`" = "`dirname ${TEST_DIRECTORY}`"'
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue