Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon McVittie
libcapsule
Commits
9ce75343
Commit
9ce75343
authored
May 16, 2018
by
Simon McVittie
Browse files
tests: Work when compiling for i386 on amd64
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
6b78a90d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
9ce75343
...
...
@@ -343,8 +343,11 @@ AM_TESTS_ENVIRONMENT = export CAPSULE_CAPTURE_LIBS_TOOL="$(abs_b
export
CAPSULE_CFLAGS
=
"-I
$(abs_top_srcdir)
-I
$(abs_top_builddir)
"
;
\
export
CAPSULE_LIBS
=
"
$(abs_top_builddir)
/libcapsule.la"
;
\
export
CAPSULE_SYMBOLS_TOOL
=
"
$(abs_builddir)
/capsule-symbols"
;
\
export
CAPSULE_TESTS_GNU_BUILD
=
"
${build}
"
;
\
export
CAPSULE_TESTS_GNU_HOST
=
"
${host}
"
;
\
export
CAPSULE_TESTS_UNINSTALLED
=
1
;
\
export
CAPSULE_VERSION_TOOL
=
"
$(abs_builddir)
/capsule-version"
;
\
export
CC
=
"
${CC}
"
;
\
export
G_TEST_SRCDIR
=
"
$(abs_srcdir)
"
;
\
export
G_TEST_BUILDDIR
=
"
$(abs_builddir)
"
;
\
export
G_DEBUG
=
gc-friendly
;
\
...
...
tests/gl-shim.pl
View file @
9ce75343
...
...
@@ -51,6 +51,16 @@ my @sonames = qw(libEGL.so.1 libGL.so.1 libGLESv2.so.2 libGLX.so.0
libxcb-dri2.so.0 libxcb-glx.so.0 libxcb-present.so.0 libxcb-sync.so.1
libxcb.so.1)
;
my
@configure_arguments
=
();
if
(
length
$ENV
{
CAPSULE_TESTS_GNU_BUILD
})
{
push
@configure_arguments
,
'
--build
',
$ENV
{
CAPSULE_TESTS_GNU_BUILD
};
}
if
(
length
$ENV
{
CAPSULE_TESTS_GNU_HOST
})
{
push
@configure_arguments
,
'
--host
',
$ENV
{
CAPSULE_TESTS_GNU_HOST
};
}
# Don't require running capsule-version - just use the major versions
sub
use_major_version
{
my
$soname
=
shift
;
...
...
@@ -73,6 +83,7 @@ run_ok([$CAPSULE_INIT_PROJECT_TOOL,
run_ok
([
'
sh
',
'
-euc
',
'
cd "$1"; shift; ./configure "$@"
',
'
sh
',
"
$test_tempdir
/libEGL-proxy
",
@configure_arguments
,
],
'
>&2
');
run_ok
(['
make
',
'
-C
',
"
$test_tempdir
/libEGL-proxy
",
'
V=1
'],
'
>&2
');
...
...
tests/init-project.pl
View file @
9ce75343
...
...
@@ -44,6 +44,16 @@ if (length $ENV{CAPSULE_TESTS_UNINSTALLED}) {
push
@libcapsule_environment
,
"
LD_LIBRARY_PATH=
$ENV
{G_TEST_BUILDDIR}/.libs
";
}
my
@configure_arguments
=
();
if
(
length
$ENV
{
CAPSULE_TESTS_GNU_BUILD
})
{
push
@configure_arguments
,
'
--build
',
$ENV
{
CAPSULE_TESTS_GNU_BUILD
};
}
if
(
length
$ENV
{
CAPSULE_TESTS_GNU_HOST
})
{
push
@configure_arguments
,
'
--host
',
$ENV
{
CAPSULE_TESTS_GNU_HOST
};
}
run_ok
([
$CAPSULE_INIT_PROJECT_TOOL
,
'
--search-tree=/
',
'
--runtime-tree=/run/host
',
...
...
@@ -52,6 +62,7 @@ run_ok([$CAPSULE_INIT_PROJECT_TOOL,
run_ok
([
'
sh
',
'
-euc
',
'
cd "$1"; shift; ./configure "$@"
',
'
sh
',
"
$test_tempdir
/libz-proxy
",
@configure_arguments
,
'
--with-search-tree=/
',
'
--with-runtime-tree=/host
',
],
'
>&2
');
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment