Skip to content

Commit 70e94a1

Browse files
committed
Start test
1 parent 78dcfe0 commit 70e94a1

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

tests/integration/test_manylinux.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,13 @@ def test_rpath(
636636
]
637637
assert len(rpath_tags) == 1
638638
assert rpath_tags[0].rpath == "$ORIGIN"
639+
640+
def test_dependency_order(self, anylinux: AnyLinuxContainer, python: PythonContainer) -> None:
641+
policy = anylinux.policy
642+
643+
test_path = "/auditwheel_src/tests/integration/testrpath"
644+
645+
pass
639646

640647
def test_multiple_top_level(
641648
self, anylinux: AnyLinuxContainer, python: PythonContainer

tests/integration/testrpath/a/a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "b.h"
2-
2+
#include "c.h"
33

44
int fa(void) {
5-
return 1 + fb();
5+
return 1 + fb() + fc();
66
}

tests/integration/testrpath/c/c.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int fc(void) {
2+
return 11;
3+
}

tests/integration/testrpath/c/c.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
int fb(void);

tests/integration/testrpath/setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99

1010
class BuildExt(build_ext):
1111
def run(self) -> None:
12-
cmd = "gcc -fPIC -shared -o b/libb.so b/b.c"
12+
cmd = "gcc -fPIC -shared -o c/libc.so c/c.c"
13+
subprocess.check_call(cmd.split())
14+
cmd = "gcc -fPIC -shared -o b/libb.so b/b.c -Wl,-rpath=$ORIGIN/../c -Ic -Lc -lc"
1315
subprocess.check_call(cmd.split())
1416
cmd = (
15-
"gcc -fPIC -shared -o a/liba.so "
17+
"gcc -fPIC -shared -o a/liba.so a/a.c "
1618
"-Wl,{dtags_flag} -Wl,-rpath=$ORIGIN/../b "
17-
"-Ib a/a.c -Lb -lb"
19+
"-Ib -Lb -lb -Ic -Lc -lc"
1820
).format(
1921
dtags_flag=(
2022
"--enable-new-dtags"

0 commit comments

Comments
 (0)