tests.stdenv: check that attrs in env are exported

This commit is contained in:
Artturin 2022-12-15 07:16:18 +02:00 committed by Naïm Favier
parent e14de22618
commit 9b1e8d7267
No known key found for this signature in database
GPG Key ID: 95AFCE8211908325

View File

@ -47,6 +47,7 @@ let
declare -p string
echo "env.string = $string"
[[ $string == "testing-string" ]] || (echo "'\$string' was not 'testing-string'" && false)
[[ "$(declare -p string)" == 'declare -x string="testing-string"' ]] || (echo "'\$string' was not exported" && false)
touch $out
'';
} // extraAttrs);