dev-util/colm: fix tests

* Drop single test which fails w/ modern C issues (too hard to try pass
  -std=gnu89 in there)

* Make sure tests run against just-built copy (and therefore also work
  when colm isn't yet installed)

Closes: https://bugs.gentoo.org/941565
Closes: https://bugs.gentoo.org/944324
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-01-20 21:58:43 +00:00
parent 4dde9196cc
commit 1705de92b2

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,6 +47,9 @@ src_prepare() {
sed -i -e 's/libcolm\.so/libcolm.dylib/' src/main.cc || die
fi
# Test fails w/ modern C (bug #944324)
rm test/colm.d/ext1.lm || die
eautoreconf
}
@@ -69,7 +72,8 @@ src_test() {
# Build tests
default
# Run them
# Run them (and make sure we use just-built libraries, bug #941565)
local -x LD_LIBRARY_PATH="${S}/src/.libs:${S}/src:${LD_LIBRARY_PATH}"
cd test || die
./runtests || die
}