processone/eimp

eunit tests fail

mathiasertl opened this issue · 1 comments

Currently, eunit tests run with eunit fail, after calling rebar get-deps and rebar compile (which both seem to work), I get:

$ rebar eunit
==> erlang-p1-imp (eunit)
Compiled src/eimp_app.erl
Compiled src/eimp_sup.erl
Compiled src/eimp.erl
Compiled src/eimp_worker.erl
Compiled test/eimp_test.erl

=ERROR REPORT==== 1-Oct-2017::12:05:03 ===
Failed to read ./priv/bin/eimp: no such file or directory
=ERROR REPORT==== 1-Oct-2017::12:05:03 ===
Failed to read ./priv/bin/eimp: no such file or directoryeimp_test: png_to_jpeg_test...*failed*
in function eimp_test:convert/2 (test/eimp_test.erl, line 144)
**error:{badmatch,{error,disconnected}}
  output:<<"">>

eimp_test: png_to_webp_test...*failed*
in function eimp_test:convert/2 (test/eimp_test.erl, line 144)
**error:{badmatch,{error,disconnected}}
  output:<<"">>

eimp_test: png_to_gif_test...*failed*
in function eimp_test:convert/2 (test/eimp_test.erl, line 144)
**error:{badmatch,{error,disconnected}}
  output:<<"">>


.... <repeating messages for various tests skipped>


=ERROR REPORT==== 1-Oct-2017::12:05:03 ===
Failed to read ./priv/bin/eimp: no such file or directoryeimp_test: too_big_test...*failed*
in function eimp_test:'-too_big_test/0-fun-0-'/1 (test/eimp_test.erl, line 112)
**error:{assertEqual,[{module,eimp_test},
              {line,112},
              {expression,"eimp : convert ( Data , jpeg )"},
              {expected,{error,image_too_big}},
              {value,{error,disconnected}}]}
  output:<<"">>


=INFO REPORT==== 1-Oct-2017::12:05:03 ===
    application: eimp
    exited: stopped
    type: temporary
eimp_test: disconnected_test...*failed*
in function eimp_test:'-disconnected_test/0-fun-0-'/1 (test/eimp_test.erl, line 138)
in call from eimp_test:disconnected_test/0 (test/eimp_test.erl, line 138)
**error:{assertEqual,[{module,eimp_test},
              {line,138},
              {expression,"file : delete ( Bin )"},
              {expected,ok},
              {value,{error,enoent}}]}
  output:<<"">>

=======================================================
  Failed: 26.  Skipped: 0.  Passed: 6.

Regarding the message (seen in above output) "Failed to read ./priv/bin/eimp: no such file or directory", I can confirm that at this point the binary exists:

ls -lh priv/bin/eimp 
-rwxr-xr-x 1 mati mati 91K Oct  1 12:04 priv/bin/eimp
zinid commented

make test