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 fail in nixpkgs #162

Closed
ElvishJerricco opened this issue Jan 20, 2018 · 1 comment
Closed

Tests fail in nixpkgs #162

ElvishJerricco opened this issue Jan 20, 2018 · 1 comment

Comments

@ElvishJerricco
Copy link

ElvishJerricco commented Jan 20, 2018

Nixpkgs always runs tests by default after building sources from Hackage (EDIT: so this isn't necessarily limted to nixpkgs; should fail on anything that tests builds from Hackage). It seems the lack of test/data/dir and test/data/symlinked_dir on the Hackage source for this package causes one of the tests to fail


running tests
Running 1 test suites...
Test suite shelly-testsuite: RUNNING...

file with invalid encoding
  readBinary
  readfile
which
  gives full path to cabal
  recognizes cabal as a path executable
  cannot find missing exe
writefile
  creates and overwrites a file
writeBinary
  creates and overwrites a file
appendfile
  creates and appends a file
touchfile
  creates and updates a file
mv file
  to same dir
  to other dir
mv dir
  to dir does not exist: create the to dir
  to dir exists: creates a nested directory, full to path given
  to dir exists: creates a nested directory, partial to path given
rm file
  rm
  rm_r
  rm_f
rm_rf dir
  empty dir
  dir with file
rm symlink
  rm
  rm_f
  rm_rf
relativeTo
  relative to non-existent dir
  relative to existing dir
  abs path relative to existing dir
relative listing
  lists relative files
  finds relative files
find
  empty list for empty dir
  lists relative files
  lists absolute files
  follow symlinks FAILED [1]
  not follow symlinks FAILED [2]
getting unset env variables
  get_env
  get_env_text
with SHELLY var set
  get_env
  get_env_text
failure set to stderr
testing
  writes a failure message to stderr
failure set to directory
testing
  writes a failure message to a .shelly directory
cp file
  cp to same dir
  cp to other dir
cp dir
  to dir does not exist: create the to dir
  to dir exists: creates a nested directory, full to path given
  to dir exists: creates a nested directory, partial to path given
  copies the same dir
basic actions
Hello!
  lifted sub
run
wibble
  simple command
*
  with escaping
ChangeLog.md dist LICENSE README.md Setup Setup.hs shelly.cabal src test
  without escaping
Selbstverständlich überraschend
  with binary handle mode
bash
wibble
  simple command
ChangeLog.md dist LICENSE README.md Setup Setup.hs shelly.cabal src test
  without escaping
Selbstverständlich überraschend
  with binary handle mode
bar
  preserve pipe behaviour
sshCommandText
  simple command
  space command
  multiple space commands
  commands with quotes and spaces

Failures:

  test/src/FindSpec.hs:73: 
  1) find follow symlinks
       expected: [FilePath "dir",FilePath "nonascii.txt",FilePath "symlinked_dir",FilePath "zshrc",FilePath "dir/symlinked_dir",FilePath "dir/symlinked_dir/hoge_file",FilePath "symlinked_dir/hoge_file"]
        but got: [FilePath "nonascii.txt",FilePath "zshrc"]

  test/src/FindSpec.hs:78: 
  2) find not follow symlinks
       expected: [FilePath "dir",FilePath "nonascii.txt",FilePath "symlinked_dir",FilePath "zshrc",FilePath "dir/symlinked_dir",FilePath "symlinked_dir/hoge_file"]
        but got: [FilePath "nonascii.txt",FilePath "zshrc"]

Randomized with seed 155472032

Finished in 0.1488 seconds
57 examples, 2 failures
Test suite shelly-testsuite: FAIL
Test suite logged to: dist/test/shelly-1.7.0-shelly-testsuite.log
0 of 1 test suites (0 of 1 test cases) passed.
psibi added a commit that referenced this issue Jan 21, 2018
@psibi
Copy link
Contributor

psibi commented Jan 23, 2018

Fixed in the latest release.

@psibi psibi closed this as completed Jan 23, 2018
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