Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Tests failing on master #19

Open
mchv opened this issue Sep 14, 2017 · 0 comments
Open

Tests failing on master #19

mchv opened this issue Sep 14, 2017 · 0 comments

Comments

@mchv
Copy link

mchv commented Sep 14, 2017

In my attempt to help support 0.6.0 version, I am trying to build first on master.
The compilation succeed but the tests are failing:

Steps to reproduce

git clone [email protected]:MeteoGroup/jbrotli.git
cd jbrotli
git submodule init 
git submodule update

Error message

readlink: illegal option -- f
usage: readlink [-n] [file ...]
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] jbrotli-native-darwin-x86-amd64
[INFO] jbrotli
[INFO] jbrotli-native
[INFO] jbrotli-performance
[INFO] jbrotli-servlet
[INFO] jbrotli-examples-dropwizard
[INFO] jbrotli-examples-http-client
[INFO] jbrotli-examples-simple-web-app
[INFO] jbrotli-examples-spring-boot
[INFO] jbrotli-examples
[INFO] jbrotli-parent
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building jbrotli-native-darwin-x86-amd64 0.6.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jbrotli-native-darwin-x86-amd64 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mchauvin/Code/mchv/jbrotli/jbrotli-native/darwin-x86-amd64/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ jbrotli-native-darwin-x86-amd64 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- exec-maven-plugin:1.4.0:exec (build-native) @ jbrotli-native-darwin-x86-amd64 ---
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Java: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java (found version "1.8.0.111") found components:  Development 
-- Found JNI: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework  
-- JNI_INCLUDE_DIRS=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework/Headers;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework/Headers;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework/Headers
-- JNI_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mchauvin/Code/mchv/jbrotli/jbrotli-native/darwin-x86-amd64/target
Scanning dependencies of target brotli
[  3%] Building C object CMakeFiles/brotli.dir/brotli/common/dictionary.c.o
[  6%] Building C object CMakeFiles/brotli.dir/brotli/enc/backward_references.c.o
[ 10%] Building C object CMakeFiles/brotli.dir/brotli/enc/bit_cost.c.o
[ 13%] Building C object CMakeFiles/brotli.dir/brotli/enc/block_splitter.c.o
[ 17%] Building C object CMakeFiles/brotli.dir/brotli/enc/brotli_bit_stream.c.o
[ 20%] Building CXX object CMakeFiles/brotli.dir/brotli/enc/compressor.cc.o
[ 24%] Building C object CMakeFiles/brotli.dir/brotli/enc/cluster.c.o
[ 27%] Building C object CMakeFiles/brotli.dir/brotli/enc/compress_fragment.c.o
[ 31%] Building C object CMakeFiles/brotli.dir/brotli/enc/compress_fragment_two_pass.c.o
[ 34%] Building C object CMakeFiles/brotli.dir/brotli/enc/encode.c.o
[ 37%] Building CXX object CMakeFiles/brotli.dir/brotli/enc/encode_parallel.cc.o
[ 41%] Building C object CMakeFiles/brotli.dir/brotli/enc/entropy_encode.c.o
[ 44%] Building C object CMakeFiles/brotli.dir/brotli/enc/histogram.c.o
[ 48%] Building C object CMakeFiles/brotli.dir/brotli/enc/literal_cost.c.o
[ 51%] Building C object CMakeFiles/brotli.dir/brotli/enc/memory.c.o
[ 55%] Building C object CMakeFiles/brotli.dir/brotli/enc/metablock.c.o
[ 58%] Building C object CMakeFiles/brotli.dir/brotli/enc/static_dict.c.o
[ 62%] Building CXX object CMakeFiles/brotli.dir/brotli/enc/streams.cc.o
[ 65%] Building C object CMakeFiles/brotli.dir/brotli/enc/utf8_util.c.o
[ 68%] Building C object CMakeFiles/brotli.dir/brotli/dec/bit_reader.c.o
[ 72%] Building C object CMakeFiles/brotli.dir/brotli/dec/decode.c.o
[ 75%] Building C object CMakeFiles/brotli.dir/brotli/dec/huffman.c.o
[ 79%] Building C object CMakeFiles/brotli.dir/brotli/dec/state.c.o
[ 82%] Building CXX object CMakeFiles/brotli.dir/jbrotli-native/src/main/cpp/param_converter.cxx.o
[ 86%] Building CXX object CMakeFiles/brotli.dir/jbrotli-native/src/main/cpp/org_meteogroup_jbrotli_BrotliCompressor.cxx.o
[ 89%] Building CXX object CMakeFiles/brotli.dir/jbrotli-native/src/main/cpp/org_meteogroup_jbrotli_BrotliStreamCompressor.cxx.o
[ 93%] Building CXX object CMakeFiles/brotli.dir/jbrotli-native/src/main/cpp/org_meteogroup_jbrotli_BrotliStreamDeCompressor.cxx.o
[ 96%] Building CXX object CMakeFiles/brotli.dir/jbrotli-native/src/main/cpp/org_meteogroup_jbrotli_BrotliDeCompressor.cxx.o
[100%] Linking CXX shared library libbrotli.dylib
[100%] Built target brotli
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jbrotli-native-darwin-x86-amd64 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mchauvin/Code/mchv/jbrotli/jbrotli-native/darwin-x86-amd64/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ jbrotli-native-darwin-x86-amd64 ---
[INFO] Compiling 1 source file to /Users/mchauvin/Code/mchv/jbrotli/jbrotli-native/darwin-x86-amd64/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jbrotli-native-darwin-x86-amd64 ---
[INFO] Surefire report directory: /Users/mchauvin/Code/mchv/jbrotli/jbrotli-native/darwin-x86-amd64/target/surefire-reports


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@782830e
Tests run: 96, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 5.462 sec <<< FAILURE!
compress_with_byte_array_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest)  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected size:<10> but was:<9> in:
<[11, 27, 0, 0, 36, -126, -30, -103, 64]>
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest.compress_with_byte_array_and_flushing(BrotliStreamCompressorByteArrayTest.java:53)

compress_with_byte_array_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest)  Time elapsed: 0.006 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <[11, 27, 0, 0, 36, -126, -30, -103, 64]>
to be equal to:
 <[27, 54, 0, 0, 36, -126, -30, -103, 64, 0]>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest.compress_with_byte_array_using_position_and_length(BrotliStreamCompressorByteArrayTest.java:112)

compress_with_byte_array_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <[11, 27, 0, 0, 36, -126, -30, -103, 64]>
to be equal to:
 <[27, 54, 0, 0, 36, -126, -30, -103, 64, 0]>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest.compress_with_byte_array_without_flushing(BrotliStreamCompressorByteArrayTest.java:77)

compress_with_array_wrapped_ByteBuffer_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_array_wrapped_ByteBuffer_and_flushing(BrotliStreamCompressorByteBufferTest.java:154)

compress_with_array_wrapped_ByteBuffer_using_arrayOffset_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_array_wrapped_ByteBuffer_using_arrayOffset_and_length(BrotliStreamCompressorByteBufferTest.java:216)

compress_with_array_wrapped_ByteBuffer_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_array_wrapped_ByteBuffer_using_position_and_length(BrotliStreamCompressorByteBufferTest.java:192)

compress_with_array_wrapped_ByteBuffer_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.005 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_array_wrapped_ByteBuffer_without_flushing(BrotliStreamCompressorByteBufferTest.java:170)

compress_with_direct_ByteBuffer_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_direct_ByteBuffer_and_flushing(BrotliStreamCompressorByteBufferTest.java:96)

compress_with_direct_ByteBuffer_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.002 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_direct_ByteBuffer_using_position_and_length(BrotliStreamCompressorByteBufferTest.java:137)

compress_with_direct_ByteBuffer_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest)  Time elapsed: 0.004 sec  <<< FAILURE!
java.lang.AssertionError: 
Expecting:
 <9>
to be equal to:
 <10>
but was not.
	at org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest.compress_with_direct_ByteBuffer_without_flushing(BrotliStreamCompressorByteBufferTest.java:114)


Results :

Failed tests:   compress_with_byte_array_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest): (..)
  compress_with_byte_array_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest): (..)
  compress_with_byte_array_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteArrayTest): (..)
  compress_with_array_wrapped_ByteBuffer_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_array_wrapped_ByteBuffer_using_arrayOffset_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_array_wrapped_ByteBuffer_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_array_wrapped_ByteBuffer_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_direct_ByteBuffer_and_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_direct_ByteBuffer_using_position_and_length(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)
  compress_with_direct_ByteBuffer_without_flushing(org.meteogroup.jbrotli.BrotliStreamCompressorByteBufferTest): (..)

Tests run: 96, Failures: 10, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] jbrotli-native-darwin-x86-amd64 ................... SUCCESS [ 14.323 s]
[INFO] jbrotli ........................................... FAILURE [  7.363 s]
[INFO] jbrotli-native .................................... SKIPPED
[INFO] jbrotli-performance ............................... SKIPPED
[INFO] jbrotli-servlet ................................... SKIPPED
[INFO] jbrotli-examples-dropwizard ....................... SKIPPED
[INFO] jbrotli-examples-http-client ...................... SKIPPED
[INFO] jbrotli-examples-simple-web-app ................... SKIPPED
[INFO] jbrotli-examples-spring-boot ...................... SKIPPED
[INFO] jbrotli-examples .................................. SKIPPED
[INFO] jbrotli-parent .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.060 s
[INFO] Finished at: 2017-09-14T15:39:40+00:00
[INFO] Final Memory: 19M/312M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project jbrotli: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/mchauvin/Code/mchv/jbrotli/jbrotli/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jbrotli

@nitram509 any idea what I am missing?

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

No branches or pull requests

1 participant