diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-28 14:18:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-28 14:18:53 +0300 |
commit | da6d239d0771142b795d18105aac8d130e85c5ba (patch) | |
tree | dfa196b7933733b1b6b6aa4708c95b2f7761ac38 /tests | |
parent | c4c3ab9a49d824eb64dbf3d1e1c6c079ffff92cb (diff) |
Add another test case for pkg_configure() flaws
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common/dependency-alternatives/t8a/libfox-1.0.0.tar.gz | bin | 0 -> 398 bytes | |||
-rw-r--r-- | tests/common/dependency-alternatives/t8a/tvx-1.0.0.tar.gz | bin | 0 -> 482 bytes | |||
-rw-r--r-- | tests/pkg-build.testscript | 55 |
3 files changed, 52 insertions, 3 deletions
diff --git a/tests/common/dependency-alternatives/t8a/libfox-1.0.0.tar.gz b/tests/common/dependency-alternatives/t8a/libfox-1.0.0.tar.gz Binary files differnew file mode 100644 index 0000000..68eee9d --- /dev/null +++ b/tests/common/dependency-alternatives/t8a/libfox-1.0.0.tar.gz diff --git a/tests/common/dependency-alternatives/t8a/tvx-1.0.0.tar.gz b/tests/common/dependency-alternatives/t8a/tvx-1.0.0.tar.gz Binary files differnew file mode 100644 index 0000000..0d719a5 --- /dev/null +++ b/tests/common/dependency-alternatives/t8a/tvx-1.0.0.tar.gz diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index a3149ae..e018a1b 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -5205,9 +5205,9 @@ test.arguments += --sys-no-query %.* EOO - # Note that the current behavior should actually be considered as a - # bug which we will fix eventually. The proper behaviour would be to - # re-evaluate this dependent rather than just to re-configure. + # @@ Note that the current behavior should actually be considered as a + # bug which we will fix eventually. The proper behaviour would be + # to re-evaluate this dependent rather than just to re-configure. # $* ?libfoo 2>>~%EOE% != 0; error: unable to reconfigure dependent tox with reflect clause that refers to dependency configuration variables @@ -5254,6 +5254,55 @@ test.arguments += --sys-no-query $pkg_drop tux } + + : dont-re-evaluate-dependent + : + { + $clone_cfg; + + $* tvx ?libfoo/1.0.0 2>!; + + $pkg_status -r >>EOO; + !tvx configured 1.0.0 + libfoo configured !1.0.0 available 2.0.0 + libfox configured 1.0.0 + EOO + + cat cfg/libfox-1.0.0/build/config.build >>~%EOO%; + %.* + config.libfox.level = 1 + %.* + EOO + + # @@ Note that the current behavior should actually be considered as a + # bug which we will fix eventually. The proper behaviour would be + # to re-evaluate this dependent rather than just to re-configure. + # + $* ?libfoo 2>>~%EOE%; + disfigured tvx/1.0.0 + disfigured libfoo/1.0.0 + fetched libfoo/2.0.0 + unpacked libfoo/2.0.0 + configured libfoo/2.0.0 + configured tvx/1.0.0 + %info: .+tvx-1.0.0.+ is up to date% + updated tvx/1.0.0 + EOE + + $pkg_status -r >>EOO; + !tvx configured 1.0.0 + libfoo configured 2.0.0 + libfox configured 1.0.0 + EOO + + cat cfg/libfox-1.0.0/build/config.build >>~%EOO%; + %.* + config.libfox.level = 1 + %.* + EOO + + $pkg_drop tvx + } } } |