diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-11-07 02:58:49 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-11-07 02:58:58 +0000 |
commit | 25a9e1e9ae67689ea8c29cdf13713e578b3ca476 (patch) | |
tree | aef3f33eea2cfc4a00ce4ae9adb96c180d1bf41b /tests | |
parent | bc93ead698f3d727f539a5c84949823f36f6ee31 (diff) |
Test suite: multisuite: New test
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/multisuite | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/tests/multisuite b/tests/tests/multisuite new file mode 100755 index 0000000..01585f6 --- /dev/null +++ b/tests/tests/multisuite @@ -0,0 +1,53 @@ +#!/bin/bash +set -e +. tests/lib + +t-setup-import examplegit +t-tstunt-parsechangelog + +cd $p + +rsta=$(t-git-get-ref refs/remotes/dgit/dgit/stable) +rsid=$(t-git-get-ref refs/remotes/dgit/dgit/sid) + +multi-good () { + t-refs-same-start + t-refs-same refs/remotes/dgit/dgit/stable + t-ref-same-val "previous stable" $rsta + + t-refs-same-start + t-refs-same refs/remotes/dgit/dgit/sid + t-ref-same-val "previous sid" $rsid + + t-refs-same-start + t-refs-same refs/remotes/dgit/dgit/stable,sid + t-ref-same-val "previous combined" $rcombined +} + +t-dgit fetch stable,unstable + +rcombined=$(t-git-get-ref refs/remotes/dgit/dgit/stable,sid) + +multi-good + +cd .. + +t-dgit clone --no-rm-on-error $p stable,unstable ./$p.clone + +cd $p.clone + +multi-good + +cd .. + +t-dgit clone --no-rm-on-error $p stable ./$p.pull +cd $p.pull +git checkout -b x +git commit --allow-empty -m X +t-dgit pull stable,unstable + +multi-good + +t-has-parent-or-is HEAD $rcombined + +echo ok. |