Add test that subshell may process automatically-generated declarations

This commit is contained in:
Eric Levy 2022-01-25 16:31:53 -05:00
parent 88e7f09227
commit c4cd099d65
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@ subshell-simple
subshell-undeclared
subshell-source
subshell-export
subshell-declare
function-list
function-unload
function-export

9
meta-tests/subshell-declare.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source ./mo
cat <(moDeclare) - << "EOF" | bash
source ./run-basic-tests
if (( FAIL )); then
exit 1
fi
EOF