Merge branch 'darcs' into master
[git-darcs-import.git] / tests / tag.sh
blob1c8f133c9338ced4d880f8447c7f34be542e63fa
1 #!/usr/bin/env bash
2 set -ev
3 not () { "$@" && exit 1 || :; }
5 # Some tests for 'darcs tag'
7 rm -rf temp1 log
8 mkdir temp1
9 cd temp1
10 darcs init
11 touch one
12 darcs add one
13 darcs record --patch-name 'uno' --all
14 darcs tag soup > log
15 not grep failed log
16 grep TAG log
17 darcs changes --last 1 > log
18 grep tagged log
19 cd ..
20 rm -rf temp1 log