From 97527ad5720cd64e1168e88f7d74e21975bfda8d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 25 Dec 2021 18:26:48 +0300 Subject: Add initial support for dependency alternative reflect clause --- tests/pkg-configure.testscript | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/pkg-configure.testscript') diff --git a/tests/pkg-configure.testscript b/tests/pkg-configure.testscript index eff0a2e..1c049b6 100644 --- a/tests/pkg-configure.testscript +++ b/tests/pkg-configure.testscript @@ -451,4 +451,28 @@ if ($posix && "$uid" != '0') $pkg_disfigure libbar 2>!; $pkg_purge libbar 2>! } + + : reflect + : + { + $clone_cfg; + + $pkg_fetch fox/1.0.0 && $pkg_unpack fox; + $pkg_fetch libbaz/1.0.0 && $pkg_unpack libbaz; + + $* libbaz 2>!; + + $* fox 2>'configured fox/1.0.0'; + + cat cfg/fox-1.0.0/build/config.build >>~%EOO%; + %.* + config.fox.backend = libbaz + %.* + EOO + + $pkg_disfigure fox 2>!; + $pkg_purge fox 2>!; + $pkg_disfigure libbaz 2>!; + $pkg_purge libbaz 2>! + } } -- cgit v1.1