From 6e5e3972542baa1c715e13a36c1144f148c6320b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Jun 2019 20:28:38 +0300 Subject: Consider only latest revisions for git repository location default set --- tests/common/git/init | 27 +++++++++++++++++++++++++++ tests/common/git/state0/libbar.tar | Bin 174080 -> 184320 bytes tests/common/git/state0/libfoo.tar | Bin 450560 -> 450560 bytes tests/common/git/state0/libfox.tar | Bin 245760 -> 245760 bytes tests/common/git/state0/links.tar | Bin 276480 -> 276480 bytes tests/common/git/state0/style-basic.tar | Bin 81920 -> 81920 bytes tests/common/git/state0/style.tar | Bin 143360 -> 143360 bytes tests/common/git/state1/libbaz.tar | Bin 61440 -> 61440 bytes tests/common/git/state1/libfoo.tar | Bin 512000 -> 512000 bytes tests/common/git/state1/libfox.tar | Bin 245760 -> 245760 bytes tests/common/git/state1/style-basic.tar | Bin 81920 -> 81920 bytes tests/common/git/state1/style.tar | Bin 143360 -> 143360 bytes tests/rep-fetch.testscript | 13 +++++++++++++ tests/rep-info.testscript | 8 ++++---- 14 files changed, 44 insertions(+), 4 deletions(-) (limited to 'tests') 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 <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 <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 index cf00747..ea4d296 100644 Binary files a/tests/common/git/state0/libbar.tar and b/tests/common/git/state0/libbar.tar differ diff --git a/tests/common/git/state0/libfoo.tar b/tests/common/git/state0/libfoo.tar index 05281ee..d30ab31 100644 Binary files a/tests/common/git/state0/libfoo.tar and b/tests/common/git/state0/libfoo.tar differ diff --git a/tests/common/git/state0/libfox.tar b/tests/common/git/state0/libfox.tar index b024532..50b9840 100644 Binary files a/tests/common/git/state0/libfox.tar and b/tests/common/git/state0/libfox.tar differ diff --git a/tests/common/git/state0/links.tar b/tests/common/git/state0/links.tar index 3769fd1..f8a7efd 100644 Binary files a/tests/common/git/state0/links.tar and b/tests/common/git/state0/links.tar differ diff --git a/tests/common/git/state0/style-basic.tar b/tests/common/git/state0/style-basic.tar index 01eadbc..aa23cf0 100644 Binary files a/tests/common/git/state0/style-basic.tar and b/tests/common/git/state0/style-basic.tar differ diff --git a/tests/common/git/state0/style.tar b/tests/common/git/state0/style.tar index 042684e..9ab3367 100644 Binary files a/tests/common/git/state0/style.tar and b/tests/common/git/state0/style.tar differ diff --git a/tests/common/git/state1/libbaz.tar b/tests/common/git/state1/libbaz.tar index 5238b4a..420a984 100644 Binary files a/tests/common/git/state1/libbaz.tar and b/tests/common/git/state1/libbaz.tar differ diff --git a/tests/common/git/state1/libfoo.tar b/tests/common/git/state1/libfoo.tar index c0e7523..c827226 100644 Binary files a/tests/common/git/state1/libfoo.tar and b/tests/common/git/state1/libfoo.tar differ diff --git a/tests/common/git/state1/libfox.tar b/tests/common/git/state1/libfox.tar index e502974..95e2e07 100644 Binary files a/tests/common/git/state1/libfox.tar and b/tests/common/git/state1/libfox.tar differ diff --git a/tests/common/git/state1/style-basic.tar b/tests/common/git/state1/style-basic.tar index 1ef7399..f59e67e 100644 Binary files a/tests/common/git/state1/style-basic.tar and b/tests/common/git/state1/style-basic.tar differ diff --git a/tests/common/git/state1/style.tar b/tests/common/git/state1/style.tar index 2a0120b..a627bd5 100644 Binary files a/tests/common/git/state1/style.tar and b/tests/common/git/state1/style.tar differ 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 -- cgit v1.1