Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
28 lines
606 B
C++
28 lines
606 B
C++
/* test_version.cc - Test zVersion() and zlibCompileFlags() */
|
|
|
|
#include "zbuild.h"
|
|
#ifdef ZLIB_COMPAT
|
|
# include "zlib.h"
|
|
#else
|
|
# include "zlib-ng.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "test_shared.h"
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
TEST(version, basic) {
|
|
static const char *my_version = PREFIX2(VERSION);
|
|
|
|
EXPECT_EQ(zVersion()[0], my_version[0]);
|
|
EXPECT_STREQ(zVersion(), PREFIX2(VERSION));
|
|
|
|
printf("zlib-ng version %s = 0x%08lx, compile flags = 0x%lx\n",
|
|
ZLIBNG_VERSION, ZLIBNG_VERNUM, PREFIX(zlibCompileFlags)());
|
|
}
|