3 test_description='git-send-email'
8 'prepare reference tree' \
9 'echo "1A quick brown fox jumps over the" >file &&
10 echo "lazy dog" >>file &&
12 GIT_AUTHOR_NAME="A" git commit -a -m "Initial."'
20 echo " echo \"!\$a!\""
21 echo "done >commandline"
24 chmod +x ./fake.sendmail
26 GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
29 'Extract patches and send' \
30 'git format-patch -n HEAD^1
31 git send-email -from="Example <nobody@example.com>" --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" ./0001*txt'
38 'Verify commandline' \
39 'diff commandline expected'