Skip to content

Commit

Permalink
hnix.cabal: drop data/nix/tests/local.mk from extra-source-files
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Nov 21, 2023
1 parent ded3cc2 commit 20f21f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion hnix.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ extra-source-files:
data/nix/tests/lang/parse-okay-url.nix
data/nix/tests/lang/readDir/bar
data/nix/tests/lang/readDir/foo/git-hates-directories
data/nix/tests/local.mk
data/nixpkgs-all-packages.nix
data/let-comments.nix
data/let-comments-multiline.nix
Expand Down
7 changes: 2 additions & 5 deletions tests/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ import Test.Tasty.HUnit

ensureLangTestsPresent :: Assertion
ensureLangTestsPresent = do
exist <- fileExist "data/nix/tests/local.mk"
exist <- fileExist "data/nix/tests/lang/eval-okay-if.nix"
when (not exist) $
errorWithoutStackTrace $ String.unlines
[ "Directory data/nix does not have any files."
, "Did you forget to run"
<> " \"git submodule update --init --recursive\"?" ]
errorWithoutStackTrace "Directory data/nix does not have any files."

ensureNixpkgsCanParse :: Assertion
ensureNixpkgsCanParse =
Expand Down

0 comments on commit 20f21f4

Please sign in to comment.