Skip to content

Commit 946303a

Browse files
committed
test: add manylinux_2_28 tests
1 parent fe45465 commit 946303a

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

tests/integration/test_manylinux.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
MANYLINUX2010_IMAGE_ID = f"quay.io/pypa/manylinux2010_{PLATFORM}:latest"
2626
MANYLINUX2014_IMAGE_ID = f"quay.io/pypa/manylinux2014_{PLATFORM}:latest"
2727
MANYLINUX_2_24_IMAGE_ID = f"quay.io/pypa/manylinux_2_24_{PLATFORM}:latest"
28+
MANYLINUX_2_28_IMAGE_ID = f"quay.io/pypa/manylinux_2_28_{PLATFORM}:latest"
2829
if PLATFORM in {"i686", "x86_64"}:
2930
MANYLINUX_IMAGES = {
3031
"manylinux_2_5": MANYLINUX1_IMAGE_ID,
3132
"manylinux_2_12": MANYLINUX2010_IMAGE_ID,
3233
"manylinux_2_17": MANYLINUX2014_IMAGE_ID,
3334
"manylinux_2_24": MANYLINUX_2_24_IMAGE_ID,
35+
"manylinux_2_28": MANYLINUX_2_28_IMAGE_ID,
3436
}
3537
POLICY_ALIASES = {
3638
"manylinux_2_5": ["manylinux1"],
@@ -42,6 +44,8 @@
4244
"manylinux_2_17": MANYLINUX2014_IMAGE_ID,
4345
"manylinux_2_24": MANYLINUX_2_24_IMAGE_ID,
4446
}
47+
if PLATFORM in {"aarch64", "ppc64le"}:
48+
MANYLINUX_IMAGES["manylinux_2_28"] = MANYLINUX_2_28_IMAGE_ID
4549
POLICY_ALIASES = {
4650
"manylinux_2_17": ["manylinux2014"],
4751
}
@@ -60,6 +64,7 @@
6064
"manylinux_2_12": "devtoolset-8",
6165
"manylinux_2_17": "devtoolset-10",
6266
"manylinux_2_24": "devtoolset-not-present",
67+
"manylinux_2_28": "gcc-toolset-11",
6368
"musllinux_1_1": "devtoolset-not-present",
6469
}
6570
PATH_DIRS = [

tests/integration/testdependencies/dependency.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
#include <stdlib.h>
44
#include <stdint.h>
55
#include <math.h>
6+
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 28)
7+
#include <threads.h>
8+
#endif
69

710
int dep_run()
811
{
9-
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 24)
12+
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 28)
13+
return thrd_equal(thrd_current(), thrd_current()) ? 0 : 1;
14+
#elif defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 24)
1015
return (int)nextupf(0.0F);
1116
#elif defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 17)
1217
return (int)(intptr_t)secure_getenv("NON_EXISTING_ENV_VARIABLE");

tests/integration/testdependencies/testdependencies.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#include <stdlib.h>
66
#include <stdint.h>
77
#include <math.h>
8+
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 28)
9+
#include <threads.h>
10+
#endif
811
#endif
912
#include <Python.h>
1013

@@ -20,6 +23,8 @@ run(PyObject *self, PyObject *args)
2023

2124
#ifdef WITH_DEPENDENCY
2225
res = dep_run();
26+
#elif defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 28)
27+
res = thrd_equal(thrd_current(), thrd_current()) ? 0 : 1;
2328
#elif defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 24)
2429
res = (int)nextupf(0.0F);
2530
#elif defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 17)

0 commit comments

Comments
 (0)