unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob b642ae80fbcdd912bd043114f0939e72aa455467 697 bytes (raw)
name: contrib/notmuch-pick/run-tests.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
#!/usr/bin/env bash

set -eu

fail() {
    echo ERROR $1
    exit 1
}

TESTS="emacs-pick"
TESTFILES="$TESTS pick.expected-output"

export PICK_DIR="`cd \`dirname "$0"\` && pwd`"
PICK_TEST_DIR="$PICK_DIR/test"


for f in $TESTFILES
do
    test -f "$PICK_TEST_DIR/$f" || test -d "$PICK_TEST_DIR/$f" || fail "$PICK_TEST_DIR/$f does not exist"
done

cd "$PICK_DIR/../../test"

test -x ../notmuch || fail "`cd .. && pwd`/notmuch has not been built"

for f in $TESTFILES
do
    if test -f "$f"
    then
	fail "$f exists"
    fi
done

trap "rm -f $TESTFILES" 0

for f in $TESTFILES
do
    ln -s "$PICK_TEST_DIR/$f" .
done

#don't exec -- traps would not run.
for f in $TESTS
do
    echo $f
    ./$f
done

debug log:

solving b642ae8 ...
found b642ae8 in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).