build: Add ‘devel’ or ‘release’ to OSTREE_FEATURES for test-symbols.sh
authorPhilip Withnall <withnall@endlessm.com>
Tue, 20 Jun 2017 16:38:15 +0000 (17:38 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 20 Jun 2017 21:52:22 +0000 (21:52 +0000)
test-symbols.sh was looking for the DevelBuild string, which is actually
part of the output from `ostree --version`, not $OSTREE_FEATURES.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #948
Approved by: cgwalters

configure.ac
tests/test-symbols.sh

index c10d21003cd3ccca051cb57260febe8d9c95e469..9973c80a3f0164f351148e0cc0d0f974364c9f0a 100644 (file)
@@ -464,6 +464,7 @@ AM_COND_IF([BUILDOPT_IS_DEVEL_BUILD],
             AC_DEFINE([BUILDOPT_IS_DEVEL_BUILD], [1], [Define if doing a development build])
             release_build_type=devel,
             release_build_type=release)
+OSTREE_FEATURES="$OSTREE_FEATURES $release_build_type"
 
 AC_CONFIG_FILES([
 Makefile
index 3f6273042b32c97041476b375e767b138897f0c7..4a11183e2f1b76189ff419320515c56f954ce846 100755 (executable)
@@ -22,7 +22,7 @@ set -xeuo pipefail
 echo '1..3'
 
 released_syms=${G_TEST_SRCDIR}/src/libostree/libostree-released.sym
-if echo "$OSTREE_FEATURES" | grep --quiet --no-messages "DevelBuild"; then
+if echo "$OSTREE_FEATURES" | grep --quiet --no-messages "devel"; then
     devel_syms=${G_TEST_SRCDIR}/src/libostree/libostree-devel.sym
 else
     devel_syms=