forked from lix-project/lix
nix develop: Add a test for bash functions
This commit is contained in:
parent
9fc7da1e08
commit
e50408bd31
|
@ -101,3 +101,4 @@ source <(nix print-dev-env -f shell.nix shellDrv)
|
||||||
[[ ${arr1[2]} = "3 4" ]]
|
[[ ${arr1[2]} = "3 4" ]]
|
||||||
[[ ${arr2[1]} = $'\n' ]]
|
[[ ${arr2[1]} = $'\n' ]]
|
||||||
[[ ${arr2[2]} = $'x\ny' ]]
|
[[ ${arr2[2]} = $'x\ny' ]]
|
||||||
|
[[ $(fun) = blabla ]]
|
||||||
|
|
|
@ -22,6 +22,9 @@ let pkgs = rec {
|
||||||
done
|
done
|
||||||
declare -a arr1=(1 2 "3 4" 5)
|
declare -a arr1=(1 2 "3 4" 5)
|
||||||
declare -a arr2=(x $'\n' $'x\ny')
|
declare -a arr2=(x $'\n' $'x\ny')
|
||||||
|
fun() {
|
||||||
|
echo blabla
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
stdenv = mkDerivation {
|
stdenv = mkDerivation {
|
||||||
|
|
Loading…
Reference in a new issue