2 # Copyright (c) 2006 Karl Hasselström
3 test_description
='Test the mail command'
7 'Initialize the StGIT repository' \
11 echo "line $i" >> foo.txt &&
13 git commit -a -m "Patch $i"
20 'Put all the patches in an mbox' \
21 'stg mail --to="Inge Ström <inge@example.com>" -a -m \
22 -t ../../templates/patchmail.tmpl > mbox0'
25 'Import the mbox and compare' \
27 t1=$(git cat-file -p $(stg id) | grep ^tree)
29 stg import -M mbox0 &&
30 t2=$(git cat-file -p $(stg id) | grep ^tree) &&