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

tests of the vty package fail with Stack #4577

Closed
qrilka opened this issue Feb 8, 2019 · 0 comments · Fixed by #4585
Closed

tests of the vty package fail with Stack #4577

qrilka opened this issue Feb 8, 2019 · 0 comments · Fixed by #4585

Comments

@qrilka
Copy link
Contributor

qrilka commented Feb 8, 2019

General summary/comments

It appears that Stack is doing something in a different way than what cabal-install does in its v1/v2 test commands. Both cabal test and cabal new-test work fine while stack test stucks using the current stable version, that looks to be fixed in #4498 and yet using master branch still gives failed tests

Steps to reproduce

  1. stack unpack vty to get the latest Hackage sources of the vty package
  2. Use stack.yaml with LTS-13 in it
  3. Run command stack test.

Expected

stack test pass

Actual

Some of the tests fail -

vty-5.25.1: test (suite: verify-config)
                 
example config parses: [OK]

         Test Cases  Total      
 Passed  1           1          
 Failed  0           0          
 Total   1           1                                                                                                                  
vty-5.25.1: Test suite verify-config passed
vty-5.25.1: test (suite: verify-crop-span-generation)
                 
verify-crop-span-generationStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-crop-span-generation failed
vty-5.25.1: test (suite: verify-display-attributes)

verify-display-attributesStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-display-attributes failed
vty-5.25.1: test (suite: verify-empty-image-props)

verify-empty-image-propsStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-empty-image-props failed
vty-5.25.1: test (suite: verify-eval-terminfo-caps)

verify-eval-terminfo-capsStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-eval-terminfo-caps failed
vty-5.25.1: test (suite: verify-image-ops)

verify-image-opsStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-image-ops failed
vty-5.25.1: test (suite: verify-image-trans)

verify-image-transStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-image-trans failed
vty-5.25.1: test (suite: verify-inline)

verify-inlineStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-inline failed
vty-5.25.1: test (suite: verify-layers-span-generation)

verify-layers-span-generationStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-layers-span-generation failed
vty-5.25.1: test (suite: verify-parse-terminfo-caps)

verify-parse-terminfo-capsStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-parse-terminfo-caps failed
vty-5.25.1: test (suite: verify-simple-span-generation)

verify-simple-span-generationStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-simple-span-generation failed
vty-5.25.1: test (suite: verify-terminal)

verify-terminalStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-terminal failed
vty-5.25.1: test (suite: verify-using-mock-input)

synthesized typing of single visible chars translates to expected events: [OK]
synthesized typing of keys from capabilities tables translates to expected events: [OK]
synthesized typing of hard coded special keys translates to expected events: [OK]
synthesized typing of any key in the table translates to its paired event: [OK]
synthesized typing of 2x any key in the table translates to 2x paired event: [OK]

         Properties  Total      
 Passed  5           5          
 Failed  0           0          
 Total   5           5          

vty-5.25.1: Test suite verify-using-mock-input passed
vty-5.25.1: test (suite: verify-using-mock-terminal)

verify-using-mock-terminalStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-using-mock-terminal failed
vty-5.25.1: test (suite: verify-utf8-width)

verify-utf8-widthStub: Prelude.read: no parse

vty-5.25.1: Test suite verify-utf8-width failed
Completed 2 action(s).
Test suite failure for package vty-5.25.1
    verify-crop-span-generation:  exited with: ExitFailure 1
    verify-display-attributes:  exited with: ExitFailure 1
    verify-empty-image-props:  exited with: ExitFailure 1
    verify-eval-terminfo-caps:  exited with: ExitFailure 1
    verify-image-ops:  exited with: ExitFailure 1
    verify-image-trans:  exited with: ExitFailure 1
    verify-inline:  exited with: ExitFailure 1
    verify-layers-span-generation:  exited with: ExitFailure 1
    verify-parse-terminfo-caps:  exited with: ExitFailure 1
    verify-simple-span-generation:  exited with: ExitFailure 1
    verify-terminal:  exited with: ExitFailure 1
    verify-using-mock-terminal:  exited with: ExitFailure 1
    verify-utf8-width:  exited with: ExitFailure 1
Logs printed to console

Stack version

$ stack --version
Version 1.10.0, Git revision 4e56620615d31324a6abbba09b7de929d6fc56ac (dirty) (6908 commits) x86_64 hpack-0.31.1

Method of installation

current master branch

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

Successfully merging a pull request may close this issue.

2 participants