aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-09-17 15:28:53 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-09-17 15:28:53 -0700
commit82155c3d96b4e474e57613306e21b96b3104fd45 (patch)
tree4530c505e37c7d55ee9907040cd0655a96adfa75 /test
parentc92ad8bf6a7a798f5f0dd2861a6b087873fdf8b6 (diff)
test: Fix ordering of tests in t0000-basic.sh
The basic notmuch tests depend on the test-suite harness working, so test it first.
Diffstat (limited to 'test')
-rwxr-xr-xtest/t0000-basic.sh42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/t0000-basic.sh b/test/t0000-basic.sh
index 9c495b60..2cc4ef75 100755
--- a/test/t0000-basic.sh
+++ b/test/t0000-basic.sh
@@ -17,27 +17,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