Allow passing in stdin as a ByteString #31
Garnix CI / package default [aarch64-darwin]
failed
Jun 18, 2024 in 31s
Run results
Build failed
Details
Last 100 lines of logs:
[8 of 9] Compiling Main ( test/Spec.hs, dist/build/spec/spec-tmp/Main.o, dist/build/spec/spec-tmp/Main.dyn_o )
[9 of 9] Compiling Paths_cradle ( dist/build/spec/autogen/Paths_cradle.hs, dist/build/spec/spec-tmp/Paths_cradle.o, dist/build/spec/spec-tmp/Paths_cradle.dyn_o )
Linking dist/build/spec/spec ...
@nix {"action":"setPhase","phase":"checkPhase"}
running tests
Running 2 test suites...
Test suite readme: RUNNING...
"Hello, World!"
ExitFailure 2
"ls: cannot access 'does-not-exist': No such file or directory\n"
Test suite readme: PASS
Test suite logged to: dist/test/cradle-0.0.0.0-readme.log
Test suite spec: RUNNING...
Cradle
runs simple commands [✔]
exceptions
throws when executable cannot be found [✔]
throws when the executable flag isn't set [✔]
throws when the hashbang interpreter cannot be found [✔]
runs in MonadIO contexts [✔]
arguments
allows passing in an argument [✔]
allows passing in multiple arguments [✔]
allows splitting strings in haskell [✔]
allows Text as arguments [✔]
providing stdin
using handles
allows passing in a handle for stdin [✔]
allows disabling inheriting stdin [✔]
allows passing in stdin as a String [✔]
capturing stdout
allows capturing stdout [✔]
allows capturing stdout *and* pass in arguments [✔]
relays stdout when it's not captured (by default) [✔]
allows silencing stdout when it's not captured [✔]
does not relay stdout when it's captured (by default) [✔]
StdoutTrimmed
allows capturing the stripped stdout [✔]
strips leading and trailing spaces and newlines [✔]
handles bigger outputs correctly [✔]
allows capturing binary data [✔]
uses the replacement character when capturing invalid utf-8 as Text [✔]
using handles
allows sending stdout to a handle [✔]
does not relay stdout when it's captured (by default) [✔]
doesn't close the handle after running the process [✔]
allows capturing stdout *and* passing in a stdout handle [✔]
allows specifying multiple stdout handles [✔]
capture stderr
allows capturing stderr [✔]
relays stderr when it's not captured (by default) [✔]
allows silencing stderr when it's not captured [✔]
does not relay stderr when it's captured (by default) [✔]
using handles
allows sending stderr to a handle [✔]
does not relay stderr when it's captured (by default) [✔]
doesn't close the handle after running the process [✔]
allows writing a wrapper that captures stderr [✔]
allows capturing both stdout and stderr [✔]
exitcodes
throws when the exitcode is not 0 [✔]
doesn't throw when the exitcode is captured [✔]
captures success exitcodes [✔]
allows capturing exitcodes and stdout [✔]
working directory
inherits the current working directory [✔]
allows setting the working directory [✔]
does not modify the parent's working directory [✔]
when receiving an async exception
sends a signal to the child process [✔]
environment
inherits the environment (by default) [✔]
modifyEnvVar
allows setting environment variables [✔]
doesn't overwrite existing environment variables [✔]
allows modifying environment variables [✔]
allows removing environment variables [✔]
allows setting multiple environment variables [✔]
allows modifying environment variables multiple times [✔]
OverloadedStrings
works with overloaded strings [✔]
Finished in 5.8494 seconds
52 examples, 0 failures
Test suite spec: PASS
Test suite logged to: dist/test/cradle-0.0.0.0-spec.log
2 of 2 test suites (2 of 2 test cases) passed.
cabal repl --with-ghc=doctest
Config file path source is default config file.
Config file not found:
/private/tmp/nix-build-cradle-0.0.0.0.drv-0/ffihf0z6wjkdhvkagzgprhajjhh30xsj-source/.config/cabal/config
Writing default configuration to
/private/tmp/nix-build-cradle-0.0.0.0.drv-0/ffihf0z6wjkdhvkagzgprhajjhh30xsj-source/.config/cabal/config
Error: cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is
incompatible with Cabal. Use the flag --package-db to specify a package
database (it can be used multiple times).
error: Recipe `doctest` failed on line 26 with exit code 1
/nix/store/jnyskigl4m9l5i04bxnrk9s2p5by69hl-stdenv-darwin/setup: line 155: pop_var_context: head of shell_variables not a function context
Loading