Skip to content

Commit

Permalink
simple test script. add hspec-discover to the devshell dep
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Aug 12, 2023
1 parent 8186084 commit ad6010f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
(p: [ p.sphinx p.sphinx_rtd_theme p.myst-parser ]);
in (hpkgsFor compiler).shellFor {
packages = ps: [ ps.fficxx ps.fficxx-runtime ];
extraDependencies = ps: {
libraryHaskellDepends = [ ps.hspec-discover ];
};

buildInputs = [ pkgs.cabal-install pkgs.ormolu pkgs.nixfmt pyenv ];
withHoogle = false;
shellHook = ''
Expand Down
8 changes: 8 additions & 0 deletions workspace/build_template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cabal build fficxx && \
cabal exec -- runhaskell ../fficxx-multipkg-test/template-member/Gen.hs ../fficxx-multipkg-test/template-member/template && \
cabal exec -- runhaskell ../fficxx-multipkg-test/template-dep/Gen.hs ../fficxx-multipkg-test/template-dep/template && \
cabal exec -- runhaskell ../fficxx-multipkg-test/template-toplevel/Gen.hs ../fficxx-multipkg-test/template-toplevel/template && \
cabal build tmf-test && \
cabal build tmpl-dep-test && \
cabal build tmpl-toplevel-test && \
cabal test fficxx-multipkg-test
13 changes: 0 additions & 13 deletions workspace/build_tmf.sh

This file was deleted.

0 comments on commit ad6010f

Please sign in to comment.