# file      : tests/dependency/chain/testscript
# license   : MIT; see accompanying LICENSE file

.include ../../common.testscript

: basics
:
$* <<EOI 2>>/~%EOE%
./: dir{x}: dir{a}
dump dir{x}
EOI
<stdin>:2:1: dump:
%  .+/dir\{x/\}: .+:dir\{a/\}%
EOE

: long
:
$* <<EOI 2>>/~%EOE%
./: dir{x}: dir{y}: dir{a}
dump dir{x} dir{y}
EOI
<stdin>:2:1: dump:
%  .+/dir\{x/\}: .+:dir\{y/\}%

%  .+/dir\{y/\}: .+:dir\{a/\}%
EOE

: multiple
:
$* <<EOI 2>>/~%EOE%
./: dir{x} dir{y}: dir{a} dir{b}
dump dir{x} dir{y}
EOI
<stdin>:2:1: dump:
%  .+/dir\{x/\}: .+:dir\{a/\} .+:dir\{b/\}%

%  .+/dir\{y/\}: .+:dir\{a/\} .+:dir\{b/\}%
EOE