diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-30 20:56:26 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-05 16:55:45 +0300 |
commit | 1ad6dad8da0d51e9522f9d27cf48531fa23b24ba (patch) | |
tree | 4f53f85678348e605d282bad20b327653faa0729 /tests/pkg-build.testscript | |
parent | 7b5a0b55569331560f9cb6439ee818c3ce5d8428 (diff) |
Adapt to optional package revision
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r-- | tests/pkg-build.testscript | 64 |
1 files changed, 62 insertions, 2 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index 4465081..6ce1689 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -10,8 +10,8 @@ # Source repository: # # pkg-build -# |-- libbar-1.0.0.tar.gz -# |-- libbaz-1.1.0.tar.gz +# |-- libbar-1.0.0.tar.gz -> libfoo +# |-- libbaz-1.1.0.tar.gz -> libfoo, libbar # |-- libfix-0.0.1.tar.gz # |-- libfoo-0.0.1.tar.gz -> libfix # |-- libfoo-1.0.0.tar.gz @@ -95,6 +95,10 @@ # | |-- libfox-1.0.0.tar.gz # | `-- repositories.manifest # | +# |-- t4e +# | |-- libfoo-1.1.0+1.tar.gz +# | `-- repositories.manifest +# | # |-- t5 # | |-- libbar-1.2.0.tar.gz # | `-- repositories.manifest @@ -131,6 +135,7 @@ cp -r $src/t4b $out/t4b && $rep_create $out/t4b &$out/t4b/packages.manifest cp -r $src/t4c $out/t4c && $rep_create $out/t4c &$out/t4c/packages.manifest cp -r $src/t4d $out/t4d && $rep_create $out/t4d &$out/t4d/packages.manifest + cp -r $src/t4e $out/t4e && $rep_create $out/t4e &$out/t4e/packages.manifest cp -r $src/t5 $out/t5 && $rep_create $out/t5 &$out/t5/packages.manifest cp -r $src/t6 $out/t6 && $rep_create $out/t6 &$out/t6/packages.manifest @@ -315,6 +320,33 @@ test.options += --no-progress EOE } } + + : revision + : + { + +$clone_root_cfg + +$rep_add $rep/t4e && $rep_fetch + + : latest + : + { + $clone_cfg; + + $* libfoo/1.1.0 >>EOO + new libfoo/1.1.0+1 + EOO + } + + : zero + : + { + $clone_cfg; + + $* libfoo/1.1.0+0 >>EOO + new libfoo/1.1.0 + EOO + } + } } : libbar-libfoo @@ -420,6 +452,34 @@ test.options += --no-progress $pkg_purge libfoo 2>'purged libfoo/1.1.0' } } + + : dependency-revision + : + { + +$clone_root_cfg && $rep_add $rep/t4e && $rep_fetch + + : latest + : + { + $clone_cfg; + + $* libbar/1.1.0 >>EOO + new libfoo/1.1.0+1 (required by libbar) + new libbar/1.1.0 + EOO + } + + : zero + : + { + $clone_cfg; + + $* libbar/1.1.1 >>EOO + new libfoo/1.1.0 (required by libbar) + new libbar/1.1.1 + EOO + } + } } : libbaz-libbar |