Skip to content

Commit 37f2e9b

Browse files
committed
Simplifying test again and adding cdt_name.
1 parent 168a5ea commit 37f2e9b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

tests/test-recipes/metadata/cdt_linking/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ set -x
55
# Simple test that CDT packages can be linked
66
# Compile a minimal program that links against X11 from CDT packages
77
echo -e "#include <X11/Xlib.h>\nint main() { Display *d = XOpenDisplay(NULL); if (d) XCloseDisplay(d); return 0; }">x11_test.c
8-
${CC} -o ${PREFIX}/bin/links-to-x11-cdt -x c -I${PREFIX}/include -L${PREFIX}/lib -lX11 -Wl,-rpath-link,${PREFIX}/lib x11_test.c
8+
${CC} -o ${PREFIX}/bin/links-to-x11-cdt -x c -I${PREFIX}/include -L${PREFIX}/lib -lX11 -lxcb -Wl,-rpath-link,${PREFIX}/lib x11_test.c
99
find ${PREFIX} -name "libX11*"
1010
find ${PREFIX} -name "libc.so*"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cdt_name: # [linux]
2+
- el8 # [linux]

tests/test-recipes/metadata/cdt_linking/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ requirements:
1111
build:
1212
- {{ compiler('c') }}
1313
- {{ cdt('libx11-devel') }}
14+
- {{ cdt('libxcb') }}
1415
- {{ cdt('xorg-x11-proto-devel') }}
1516
- expat

0 commit comments

Comments
 (0)