diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/common/git/init | 27 | ||||
-rw-r--r-- | tests/common/git/state0/libbar.tar | bin | 174080 -> 184320 bytes | |||
-rw-r--r-- | tests/common/git/state0/libfoo.tar | bin | 450560 -> 450560 bytes | |||
-rw-r--r-- | tests/common/git/state0/libfox.tar | bin | 245760 -> 245760 bytes | |||
-rw-r--r-- | tests/common/git/state0/links.tar | bin | 276480 -> 276480 bytes | |||
-rw-r--r-- | tests/common/git/state0/style-basic.tar | bin | 81920 -> 81920 bytes | |||
-rw-r--r-- | tests/common/git/state0/style.tar | bin | 143360 -> 143360 bytes | |||
-rw-r--r-- | tests/common/git/state1/libbaz.tar | bin | 61440 -> 61440 bytes | |||
-rw-r--r-- | tests/common/git/state1/libfoo.tar | bin | 512000 -> 512000 bytes | |||
-rw-r--r-- | tests/common/git/state1/libfox.tar | bin | 245760 -> 245760 bytes | |||
-rw-r--r-- | tests/common/git/state1/style-basic.tar | bin | 81920 -> 81920 bytes | |||
-rw-r--r-- | tests/common/git/state1/style.tar | bin | 143360 -> 143360 bytes | |||
-rw-r--r-- | tests/rep-fetch.testscript | 13 | ||||
-rw-r--r-- | tests/rep-info.testscript | 8 |
14 files changed, 44 insertions, 4 deletions
diff --git a/tests/common/git/init b/tests/common/git/init index 8cac2da..81479a8 100755 --- a/tests/common/git/init +++ b/tests/common/git/init @@ -113,11 +113,38 @@ git -C style-basic.git checkout master # Create master branch for libbar.git. # git -C libbar.git init + +cat <<EOF >libbar.git/libbar/manifest +: 1 +name: libbar +version: 1.0.0 +summary: libbar +license: MIT +description-file: README +url: http://example.org/libbar +email: pkg@example.org +depends: style-basic >= $ +EOF + git -C libbar.git add '*' git -C libbar.git commit -am 'Create' git -C libbar.git tag -a 'v1.0.0' -m 'Tag version 1.0.0' + git -C libbar.git submodule add -b stable ../style-basic.git extras +cat <<EOF >libbar.git/libbar/manifest +: 1 +name: libbar +version: 1.0.0+1 +summary: libbar +license: MIT +description-file: README +url: http://example.org/libbar +email: pkg@example.org +depends: style-basic >= $ +EOF + git -C libbar.git commit -am 'Add extras' +git -C libbar.git tag -a 'v1.0.0+1' -m 'Tag version 1.0.0+1' # Create master branch for libfoo.git, adding style.git and libbar.git as # submodules. diff --git a/tests/common/git/state0/libbar.tar b/tests/common/git/state0/libbar.tar Binary files differindex cf00747..ea4d296 100644 --- a/tests/common/git/state0/libbar.tar +++ b/tests/common/git/state0/libbar.tar diff --git a/tests/common/git/state0/libfoo.tar b/tests/common/git/state0/libfoo.tar Binary files differindex 05281ee..d30ab31 100644 --- a/tests/common/git/state0/libfoo.tar +++ b/tests/common/git/state0/libfoo.tar diff --git a/tests/common/git/state0/libfox.tar b/tests/common/git/state0/libfox.tar Binary files differindex b024532..50b9840 100644 --- a/tests/common/git/state0/libfox.tar +++ b/tests/common/git/state0/libfox.tar diff --git a/tests/common/git/state0/links.tar b/tests/common/git/state0/links.tar Binary files differindex 3769fd1..f8a7efd 100644 --- a/tests/common/git/state0/links.tar +++ b/tests/common/git/state0/links.tar diff --git a/tests/common/git/state0/style-basic.tar b/tests/common/git/state0/style-basic.tar Binary files differindex 01eadbc..aa23cf0 100644 --- a/tests/common/git/state0/style-basic.tar +++ b/tests/common/git/state0/style-basic.tar diff --git a/tests/common/git/state0/style.tar b/tests/common/git/state0/style.tar Binary files differindex 042684e..9ab3367 100644 --- a/tests/common/git/state0/style.tar +++ b/tests/common/git/state0/style.tar diff --git a/tests/common/git/state1/libbaz.tar b/tests/common/git/state1/libbaz.tar Binary files differindex 5238b4a..420a984 100644 --- a/tests/common/git/state1/libbaz.tar +++ b/tests/common/git/state1/libbaz.tar diff --git a/tests/common/git/state1/libfoo.tar b/tests/common/git/state1/libfoo.tar Binary files differindex c0e7523..c827226 100644 --- a/tests/common/git/state1/libfoo.tar +++ b/tests/common/git/state1/libfoo.tar diff --git a/tests/common/git/state1/libfox.tar b/tests/common/git/state1/libfox.tar Binary files differindex e502974..95e2e07 100644 --- a/tests/common/git/state1/libfox.tar +++ b/tests/common/git/state1/libfox.tar diff --git a/tests/common/git/state1/style-basic.tar b/tests/common/git/state1/style-basic.tar Binary files differindex 1ef7399..f59e67e 100644 --- a/tests/common/git/state1/style-basic.tar +++ b/tests/common/git/state1/style-basic.tar diff --git a/tests/common/git/state1/style.tar b/tests/common/git/state1/style.tar Binary files differindex 2a0120b..a627bd5 100644 --- a/tests/common/git/state1/style.tar +++ b/tests/common/git/state1/style.tar diff --git a/tests/rep-fetch.testscript b/tests/rep-fetch.testscript index cd1c919..d347066 100644 --- a/tests/rep-fetch.testscript +++ b/tests/rep-fetch.testscript @@ -1003,6 +1003,19 @@ else 1 package(s) in 1 repository(s) EOE } + + : latest-revision + : + { + $clone_root_cfg; + + $* "$rep_git/state0/libbar.git" 2>>~%EOE%; + %.+ + 3 package(s) in 2 repository(s) + EOE + + $pkg_status libbar >'libbar available 1.0.0+1' + } } } } diff --git a/tests/rep-info.testscript b/tests/rep-info.testscript index 1a28dd9..822dada 100644 --- a/tests/rep-info.testscript +++ b/tests/rep-info.testscript @@ -127,7 +127,7 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)" $* --type dir "state0/libbar.git" >>~%EOO%d; : 1 name: libbar - version: 1.0.0 + version: 1.0.0+1 summary: libbar license: MIT description: \ @@ -156,7 +156,7 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)" $* "$rep_git/state0/libbar.git#master" >>~%EOO%d 2>! : 1 name: libbar - version: 1.0.0 + version: 1.0.0+1 summary: libbar license: MIT description: \ @@ -311,7 +311,7 @@ else %git:.+libbar#master .+libbar.git#master% %prerequisite git:.+style-basic#stable .+style-basic.git#stable% - libbar/1.0.0 + libbar/1.0.0+1 libmbar/1.0.0 EOO @@ -331,7 +331,7 @@ else $* -p --manifest "$rep/libbar.git#master" >>~%EOO%d : 1 name: libbar - version: 1.0.0 + version: 1.0.0+1 summary: libbar license: MIT description-file: README |