Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests #153

Closed
sureyeaah opened this issue Feb 3, 2020 · 3 comments
Closed

Failing tests #153

sureyeaah opened this issue Feb 3, 2020 · 3 comments

Comments

@sureyeaah
Copy link

cabal v2-build --ghc-option=-dynamic   
cabal new-test all --ghc-option=-dynamic   

I built and ran the tests using the above steps but they seem to be failing.

Test suite bios-tests: RUNNING...
Bios-tests
  Find cradle
    simple-cabal:              OK
      Finding cradle
    simple-cabal-unknown-path: OK
      Finding cradle
  Loading tests
    simple-bios:               Loaded package environment from /mnt/DATA/Code/hie-bios/.ghc.environment.x86_64-linux-8.6.5
FAIL (0.23s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-bios/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-bios/hie.yaml"
      Initialise Flags                                               (0.07s)
      Initial module load                                            (0.15s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    simple-cabal:              FAIL (3.27s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-cabal/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-cabal/hie.yaml"
      Initialise Flags                                               (3.23s)
      Initial module load                                            (0.03s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    simple-stack:              OK (12.31s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-stack/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-stack/hie.yaml"
      Initialise Flags                                               (12.17s)
      Initial module load                                            (0.05s)
      (1,2)                                                          (0.08s)
      (2,2)
      (2,2)
    simple-direct:             Loaded package environment from /mnt/DATA/Code/hie-bios/.ghc.environment.x86_64-linux-8.6.5
FAIL (0.13s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-direct/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-direct/hie.yaml"
      Initialise Flags                                               (0.08s)
      Initial module load                                            (0.05s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-direct:              Loaded package environment from /mnt/DATA/Code/hie-bios/.ghc.environment.x86_64-linux-8.6.5
FAIL (0.08s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-direct/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-direct/hie.yaml"
      Initialise Flags                                               (0.05s)
      Initial module load                                            (0.03s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-cabal:               FAIL (3.25s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-cabal/src/Lib.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-cabal/hie.yaml"
      Initialise Flags                                               (3.20s)
      Initial module load                                            (0.04s)
      (1,1)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-stack:               OK (2.77s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-stack/src/Lib.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-stack/hie.yaml"
      Initialise Flags                                               (2.58s)
      Initial module load                                            (0.04s)
      (1,1)                                                          (0.14s)
      (1,1)
  Implicit cradle tests
    implicit-cabal:            FAIL (3.32s)
      Inferring implicit cradle
      Initialize flags          (3.28s)
      Initial module load       (0.04s)
      (1,1)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    implicit-stack:            OK (2.78s)
      Inferring implicit cradle
      Initialize flags          (2.61s)
      Initial module load       (0.04s)
      (1,1)                     (0.12s)
      (1,1)
    implicit-stack-multi:      OK (2.55s)
      Inferring implicit cradle
      Initialize flags          (2.49s)
      Initial module load       (0.04s)
      (1,1)                     (0.01s)
      (1,1)

6 out of 12 tests failed (30.68s)
Test suite bios-tests: FAIL
Test suite logged to: /mnt/DATA/Code/hie-bios/dist-newstyle/build/x86_64-linux/ghc-8.6.5/hie-bios-0.4.0/t/bios-tests/test/hie-bios-0.4.0-bios-tests.log
@fendor
Copy link
Collaborator

fendor commented Feb 3, 2020

I think these messages are wrong Loaded package environment from /mnt/DATA/Code/hie-bios/.ghc.environment.x86_64-linux-8.6.5 or should not happen.
You are using cabal-2.4.1.0, right?
Can you try with cabal configure --write-ghc-environment-files=nerver, remove .ghc.environment.x86_64-linux-8.6.5 and execute the tests afterwards?

@sureyeaah
Copy link
Author

Yep, I'm using cabal-2.4.1.0. I did what you said but the tests are still failing.

Test suite bios-tests: RUNNING...
Bios-tests
  Find cradle
    simple-cabal:              OK
      Finding cradle
    simple-cabal-unknown-path: OK
      Finding cradle
  Loading tests
    simple-bios:               FAIL (0.12s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-bios/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-bios/hie.yaml"
      Initialise Flags                                               (0.06s)
      Initial module load                                            (0.06s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    simple-cabal:              FAIL (3.24s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-cabal/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-cabal/hie.yaml"
      Initialise Flags                                               (3.21s)
      Initial module load                                            (0.03s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    simple-stack:              OK (1.30s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-stack/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-stack/hie.yaml"
      Initialise Flags                                               (1.23s)
      Initial module load                                            (0.06s)
      (1,2)
      (2,2)
      (1,2)
      (2,2)
    simple-direct:             FAIL (0.08s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/simple-direct/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/simple-direct/hie.yaml"
      Initialise Flags                                               (0.05s)
      Initial module load                                            (0.04s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-direct:              FAIL (0.09s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-direct/B.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-direct/hie.yaml"
      Initialise Flags                                               (0.06s)
      Initial module load                                            (0.02s)
      (1,2)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-cabal:               FAIL (3.25s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-cabal/src/Lib.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-cabal/hie.yaml"
      Initialise Flags                                               (3.21s)
      Initial module load                                            (0.04s)
      (1,1)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    multi-stack:               OK (1.32s)
      Finding Cradle for: /mnt/DATA/Code/hie-bios/tests/projects/multi-stack/src/Lib.hs
      Loading Cradle: Just "/mnt/DATA/Code/hie-bios/tests/projects/multi-stack/hie.yaml"
      Initialise Flags                                               (1.24s)
      Initial module load                                            (0.04s)
      (1,1)
      (1,1)                                                          (0.03s)
  Implicit cradle tests
    implicit-cabal:            FAIL (3.11s)
      Inferring implicit cradle
      Initialize flags          (3.07s)
      Initial module load       (0.04s)
      (1,1)
        Module loading failed
        CallStack (from HasCallStack):
          error, called at tests/BiosTests.hs:94:23 in main:Main
    implicit-stack:            OK (1.33s)
      Inferring implicit cradle
      Initialize flags          (1.24s)
      Initial module load       (0.05s)
      (1,1)
      (1,1)                     (0.03s)
    implicit-stack-multi:      OK (1.29s)
      Inferring implicit cradle
      Initialize flags          (1.23s)
      Initial module load       (0.05s)
      (1,1)
      (1,1)

6 out of 12 tests failed (15.14s)
Test suite bios-tests: FAIL
Test suite logged to: /mnt/DATA/Code/hie-bios/dist-newstyle/build/x86_64-linux/ghc-8.6.5/hie-bios-0.4.0/t/bios-tests/test/hie-bios-0.4.0-bios-tests.log

@sureyeaah
Copy link
Author

The issue is with GHC on Arch Linux since it requires dynamic linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants