Follow upstream changes -- rest
[git-darcs-import.git] / tests / posthook.sh
blob89157b84628e95801bdaddb162191005b93fd12f
1 #!/usr/bin/env bash
3 set -ev
5 rm -rf temp1
6 mkdir temp1
7 cd temp1
8 darcs init
9 touch foo
10 darcs add foo
12 # Check that posthook works...
13 darcs whatsnew -s --posthook 'touch posthook-ran'
14 test -f posthook-ran
15 rm posthook-ran
17 # Check that posthook works with defaults...
18 echo ALL --posthook touch posthook-ran > _darcs/prefs/defaults
19 darcs whatsnew -s
20 test -f posthook-ran
21 rm posthook-ran
23 echo Successful.
25 cd ..
26 rm -rf temp1