unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 97cc9e855414ed104b32625ac8d70f14d97e27ce 706 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 emacs-pick-sync"
TESTFILES="$TESTS pick.expected-output"

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 97cc9e8 ...
found 97cc9e8 in https://yhetil.org/notmuch/1351797910-19305-1-git-send-email-markwalters1009@gmail.com/

applying [1/1] https://yhetil.org/notmuch/1351797910-19305-1-git-send-email-markwalters1009@gmail.com/
diff --git a/contrib/notmuch-pick/run-tests.sh b/contrib/notmuch-pick/run-tests.sh
new file mode 100755
index 0000000..97cc9e8

Checking patch contrib/notmuch-pick/run-tests.sh...
Applied patch contrib/notmuch-pick/run-tests.sh cleanly.

index at:
100755 97cc9e855414ed104b32625ac8d70f14d97e27ce	contrib/notmuch-pick/run-tests.sh

(*) 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).