Skip to content

Commit c98bf02

Browse files
committed
Write a test case using a test fixture repository
This test fails now because the tarball fetching of sources does not include files from the submodule (but the fixture references a file as a data-file)
1 parent fe9187f commit c98bf02

File tree

2 files changed

+8
-0
lines changed
  • tests

2 files changed

+8
-0
lines changed

tests/Tests.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ main = do
3535
assertFailure "entry for pkg-a-2.3.4.5 is missing"
3636
Just entry -> do
3737
entryTime entry @?= 1648534790
38+
, testCaseSteps "git submodules" $ \step ->
39+
inTemporaryDirectoryWithFixture "tests/fixtures/git-submodule" $ do
40+
step "Building repository"
41+
-- TODO: build fails because of cabal-install not finding the
42+
-- referenced files from the submodule
43+
callCommand "foliage build"
3844
, ---
3945
testCaseSteps "accepts --no-signatures" $ \step ->
4046
inTemporaryDirectoryWithFixture "tests/fixtures/simple" $ do
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
timestamp = 2023-11-03T15:53:59+00:00
2+
github = { repo = "cardano-scaling/foliage-test-with-submodule", rev = "db5874494ee5bac3fa8fee07d5806fcec27a2f4e" }

0 commit comments

Comments
 (0)