Skip to content

Commit dd8388e

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

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
@@ -140,4 +140,13 @@ nix build $NIX_BUILD_ARGS --no-link \
140140
extra-hackage.run.project.hsPkgs.external-package-user.components.exes.external-package-user
141141
echo >& 2
142142

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

0 commit comments

Comments
 (0)