Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 8dda53d

Browse files
Merge pull request #1040 from lukaszstolarczuk/add-compatibility-test
tests: add compatibility test for 1.12
2 parents 59bdcc3 + 5a2bc2d commit 8dda53d

File tree

7 files changed

+32
-12
lines changed

7 files changed

+32
-12
lines changed

tests/compatibility/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,20 @@ add_libpmemobj_cpp(1.8.1)
5454
add_libpmemobj_cpp(1.9)
5555
add_libpmemobj_cpp(1.10)
5656
add_libpmemobj_cpp(1.11)
57+
add_libpmemobj_cpp(1.12)
5758

5859
build_test_with_cpp_version(1.7 version_1.7 version/version_1.7.cpp)
5960
build_test_with_cpp_version(1.8.1 version_1.8.1 version/version_1.8.cpp)
6061
build_test_with_cpp_version(1.9 version_1.9 version/version_1.9.cpp)
6162
build_test_with_cpp_version(1.10 version_1.10 version/version_1.10.cpp)
6263
build_test_with_cpp_version(1.11 version_1.11 version/version_1.11.cpp)
64+
build_test_with_cpp_version(1.12 version_1.12 version/version_1.12.cpp)
6365

6466
build_test_with_cpp_version(1.8.1 concurrent_hash_map_feature_size_1.8.1 concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
6567
build_test_with_cpp_version(1.9 concurrent_hash_map_feature_size_1.9 concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
6668
build_test_with_cpp_version(1.10 concurrent_hash_map_feature_size_1.10 concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
6769
build_test_with_cpp_version(1.11 concurrent_hash_map_feature_size_1.11 concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
70+
build_test_with_cpp_version(1.12 concurrent_hash_map_feature_size_1.12 concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
6871
build_test_with_cpp_version(master concurrent_hash_map_feature_size_master concurrent_hash_map_feature_size/concurrent_hash_map_feature_size.cpp)
6972

7073
add_compatibility_test(concurrent_hash_map_feature_size_1.8.1_master_compatibility concurrent_hash_map_feature_size_1.8.1 concurrent_hash_map_feature_size_master)
@@ -78,3 +81,6 @@ add_compatibility_test(concurrent_hash_map_feature_size_master_1.10_compatibilit
7881

7982
add_compatibility_test(concurrent_hash_map_feature_size_1.11_master_compatibility concurrent_hash_map_feature_size_1.11 concurrent_hash_map_feature_size_master)
8083
add_compatibility_test(concurrent_hash_map_feature_size_master_1.11_compatibility concurrent_hash_map_feature_size_master concurrent_hash_map_feature_size_1.11)
84+
85+
add_compatibility_test(concurrent_hash_map_feature_size_1.12_master_compatibility concurrent_hash_map_feature_size_1.12 concurrent_hash_map_feature_size_master)
86+
add_compatibility_test(concurrent_hash_map_feature_size_master_1.12_compatibility concurrent_hash_map_feature_size_master concurrent_hash_map_feature_size_1.12)

tests/compatibility/version/version_1.10.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
int
77
main()
88
{
9-
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "");
10-
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 10, "");
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 10,
11+
"Wrong minor version");
1112
}

tests/compatibility/version/version_1.11.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
int
77
main()
88
{
9-
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "");
10-
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 11, "");
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 11,
11+
"Wrong minor version");
1112
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/* Copyright 2021, Intel Corporation */
3+
4+
#include <libpmemobj++/version.hpp>
5+
6+
int
7+
main()
8+
{
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 12,
11+
"Wrong minor version");
12+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// SPDX-License-Identifier: BSD-3-Clause
2-
/* Copyright 2020, Intel Corporation */
2+
/* Copyright 2020-2021, Intel Corporation */
33

44
#include <libpmemobj++/version.hpp>
55

66
int
77
main()
88
{
9-
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "");
10-
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 7, "");
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 7, "Wrong minor version");
1111
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// SPDX-License-Identifier: BSD-3-Clause
2-
/* Copyright 2020, Intel Corporation */
2+
/* Copyright 2020-2021, Intel Corporation */
33

44
#include <libpmemobj++/version.hpp>
55

66
int
77
main()
88
{
9-
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "");
10-
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 8, "");
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 8, "Wrong minor version");
1111
}

tests/compatibility/version/version_1.9.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
int
77
main()
88
{
9-
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "");
10-
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 9, "");
9+
static_assert(LIBPMEMOBJ_CPP_VERSION_MAJOR == 1, "Wrong major version");
10+
static_assert(LIBPMEMOBJ_CPP_VERSION_MINOR == 9, "Wrong minor version");
1111
}

0 commit comments

Comments
 (0)