Skip to content

Commit bdf5f5b

Browse files
committed
Fix #1600: add end-2-end test of hix project initialization and flakes development shell
1 parent 2114ef0 commit bdf5f5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,13 @@ nix build $NIX_BUILD_ARGS --no-link \
138138
extra-hackage.run.project.hsPkgs.external-package-user.components.exes.external-package-user
139139
echo >& 2
140140

141+
printf "*** End-2-end test of hix project initialization and flakes development shell ...\n" >& 2
142+
HASKELL_NIX=$(pwd)
143+
cd $(mktemp -d)
144+
nix-shell -p cabal-install --run "cabal update; cabal unpack hello"
145+
cd hello-*
146+
yes | nix run $HASKELL_NIX#hix -- init
147+
nix develop --override-input haskellNix $HASKELL_NIX -c "cabal build"
148+
echo >& 2
149+
141150
printf "\n*** Finished successfully\n" >& 2

0 commit comments

Comments
 (0)