I am trying to build Couchbase server on s390x architecture (RHEL7/SLES12). After successful build, when I ran the test cases, 142 test cases failed for s390x because Couchbase is not able to verify the ENDIANness of machine.
The test cases got passed after adding below macro in “./tlm/cmake/Modules/CouchbaseDefinitions.cmake” file:
All currently supported platforms for Couchbase are all little endian, so yes I’m not surprised it doesn’t work
I know the existing code has some (unused) support for WORKDS_BIGENDIAN, but given we have moved over to CMake for our build system it’s probably better to use CMake’s TestBigEndian support.