diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-15 22:05:21 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-15 22:06:45 +0200 |
commit | 4348577bc8beda1443f137e82ce088c300404916 (patch) | |
tree | 127142c7866176c62bbb0cb84f5e31bda7caabfb | |
parent | 3a4c7cf9abecea754012c3ad7e13b2b01fd3ef16 (diff) | |
download | automake-4348577bc8beda1443f137e82ce088c300404916.tar.gz |
vala tests: skip in a cross compiler setup
The "vala + pkg-config" doesn't interact well with cross-compilation:
<https://mail.gnome.org/archives/vala-list/2012-September/msg00094.html>
That is causing annoying failures in our testsuite when it's run in
cross-compilation mode. It's not worth trying too be overly smart and
work around these problems; just skip the affected tests instead.
* t/ax/am-test-lib.sh (require_tool): A new requirement 'valac', telling
that the test needs to compile Vala-generated C files. In particular,
this causes the test to be skipped when using a cross-compiler.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
-rw-r--r-- | t/ax/am-test-lib.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/ax/am-test-lib.sh b/t/ax/am-test-lib.sh index 8508197b9..e14f96fab 100644 --- a/t/ax/am-test-lib.sh +++ b/t/ax/am-test-lib.sh @@ -765,6 +765,19 @@ require_tool () echo "$me: running bison --version" bison --version || skip_all_ "required program 'bison' not available" ;; + valac) + echo "$me: running valac --version" + if ! valac --version; then + skip_all_ "required program 'valac' not available" + elif cross_compiling; then + skip_all_ "cross-compiling valac-generated C files is brittle" + fi + # TODO: We also know we need GNU make, the C compiler, and pkg-config + # here, but there is no easy way to express this with the current + # code organization. We should improve the situation, sooner or + # later. At which point the tests requiring 'valac' can drop the + # explicit requirements for those tools. + ;; *) # Generic case: the tool must support --version. echo "$me: running $1 --version" |