Skip to content

Commit

Permalink
tests: fix plugins patch
Browse files Browse the repository at this point in the history
Thsi was fixed for test-fake-plugin in e023f34
but all other tests actually don't take plugins from the right location.

Found by running tests/hwloc/opencl on a machine with AMD GPU with plugins enabled.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit bd3cb93)
  • Loading branch information
bgoglin committed May 28, 2020
1 parent ad55f7e commit 360bd09
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions tests/hwloc/linux/allowed/test-topology.sh.in
Expand Up @@ -3,7 +3,7 @@

#
# Copyright © 2009 CNRS
# Copyright © 2009-2018 Inria. All rights reserved.
# Copyright © 2009-2020 Inria. All rights reserved.
# Copyright © 2009-2011 Université Bordeaux
# Copyright © 2009-2014 Cisco Systems, Inc. All rights reserved.
# See COPYING in top-level directory.
Expand All @@ -16,7 +16,7 @@ HWLOC_top_srcdir="@HWLOC_top_srcdir@"
HWLOC_top_builddir="@HWLOC_top_builddir@"
lstopo="$HWLOC_top_builddir/utils/lstopo/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_THISSYSTEM=1
Expand Down
2 changes: 1 addition & 1 deletion tests/hwloc/linux/test-topology.sh.in
Expand Up @@ -16,7 +16,7 @@ HWLOC_top_srcdir="@HWLOC_top_srcdir@"
HWLOC_top_builddir="@HWLOC_top_builddir@"
lstopo="$HWLOC_top_builddir/utils/lstopo/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DONT_ADD_VERSION_INFO=1
Expand Down
4 changes: 2 additions & 2 deletions tests/hwloc/wrapper.sh.in
Expand Up @@ -2,14 +2,14 @@
#-*-sh-*-

#
# Copyright © 2012-2019 Inria. All rights reserved.
# Copyright © 2012-2020 Inria. All rights reserved.
# See COPYING in top-level directory.
#

HWLOC_top_builddir="@HWLOC_top_builddir@"
xmlbuffer=xmlbuffer@EXEEXT@

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
4 changes: 2 additions & 2 deletions tests/hwloc/x86+linux/test-topology.sh.in
Expand Up @@ -2,15 +2,15 @@
#-*-sh-*-

#
# Copyright © 2015-2019 Inria. All rights reserved.
# Copyright © 2015-2020 Inria. All rights reserved.
# See COPYING in top-level directory.
#

HWLOC_top_srcdir="@HWLOC_top_srcdir@"
HWLOC_top_builddir="@HWLOC_top_builddir@"
lstopo="$HWLOC_top_builddir/utils/lstopo/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DONT_ADD_VERSION_INFO=1
Expand Down
4 changes: 2 additions & 2 deletions tests/hwloc/x86/test-topology.sh.in
Expand Up @@ -2,15 +2,15 @@
#-*-sh-*-

#
# Copyright © 2015-2019 Inria. All rights reserved.
# Copyright © 2015-2020 Inria. All rights reserved.
# See COPYING in top-level directory.
#

HWLOC_top_srcdir="@HWLOC_top_srcdir@"
HWLOC_top_builddir="@HWLOC_top_builddir@"
lstopo="$HWLOC_top_builddir/utils/lstopo/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DONT_ADD_VERSION_INFO=1
Expand Down
4 changes: 2 additions & 2 deletions tests/hwloc/xml/test-topology.sh.in
Expand Up @@ -3,7 +3,7 @@

#
# Copyright © 2009 CNRS
# Copyright © 2009-2018 Inria. All rights reserved.
# Copyright © 2009-2020 Inria. All rights reserved.
# Copyright © 2009-2012 Université Bordeaux
# Copyright © 2010-2014 Cisco Systems, Inc. All rights reserved.
# See COPYING in top-level directory.
Expand All @@ -16,7 +16,7 @@ HWLOC_top_builddir="@HWLOC_top_builddir@"
HWLOC_top_srcdir="@HWLOC_top_srcdir@"
lstopo="$HWLOC_top_builddir/utils/lstopo/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion utils/hwloc/test-hwloc-annotate.sh.in
Expand Up @@ -13,7 +13,7 @@ srcdir="$HWLOC_top_srcdir/utils/hwloc"
builddir="$HWLOC_top_builddir/utils/hwloc"
annotate="$builddir/hwloc-annotate"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion utils/hwloc/test-hwloc-calc.sh.in
Expand Up @@ -16,7 +16,7 @@ builddir="$HWLOC_top_builddir/utils/hwloc"
calc="$builddir/hwloc-calc"
xmldir="$HWLOC_top_srcdir/tests/hwloc/xml"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
4 changes: 2 additions & 2 deletions utils/hwloc/test-hwloc-compress-dir.sh.in
Expand Up @@ -2,7 +2,7 @@
#-*-sh-*-

#
# Copyright © 2013-2018 Inria. All rights reserved.
# Copyright © 2013-2020 Inria. All rights reserved.
# Copyright © 2014 Cisco Systems, Inc. All rights reserved.
# See COPYING in top-level directory.
#
Expand All @@ -13,7 +13,7 @@ srcdir="$HWLOC_top_srcdir/utils/hwloc"
builddir="$HWLOC_top_builddir/utils/hwloc"
compress="$builddir/hwloc-compress-dir"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
4 changes: 2 additions & 2 deletions utils/hwloc/test-hwloc-diffpatch.sh.in
Expand Up @@ -2,7 +2,7 @@
#-*-sh-*-

#
# Copyright © 2009-2018 Inria. All rights reserved.
# Copyright © 2009-2020 Inria. All rights reserved.
# Copyright © 2014 Cisco Systems, Inc. All rights reserved.
# See COPYING in top-level directory.
#
Expand All @@ -14,7 +14,7 @@ builddir="$HWLOC_top_builddir/utils/hwloc"
diff="$builddir/hwloc-diff"
patch="$builddir/hwloc-patch"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion utils/hwloc/test-hwloc-distrib.sh.in
Expand Up @@ -15,7 +15,7 @@ srcdir="$HWLOC_top_srcdir/utils/hwloc"
builddir="$HWLOC_top_builddir/utils/hwloc"
distrib="$builddir/hwloc-distrib"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion utils/hwloc/test-hwloc-info.sh.in
Expand Up @@ -15,7 +15,7 @@ srcdir="$HWLOC_top_srcdir/utils/hwloc"
builddir="$HWLOC_top_builddir/utils/hwloc"
info="$builddir/hwloc-info"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
4 changes: 2 additions & 2 deletions utils/lstopo/test-lstopo-shmem.sh.in
@@ -1,15 +1,15 @@
#!/bin/sh
#-*-sh-*-

# Copyright © 2009-2019 Inria. All rights reserved.
# Copyright © 2009-2020 Inria. All rights reserved.
# See COPYING in top-level directory.
#

HWLOC_top_builddir="@HWLOC_top_builddir@"
builddir="$HWLOC_top_builddir/utils/lstopo"
ls="$builddir/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion utils/lstopo/test-lstopo.sh.in
Expand Up @@ -14,7 +14,7 @@ srcdir="$HWLOC_top_srcdir/utils/lstopo"
builddir="$HWLOC_top_builddir/utils/lstopo"
ls="$builddir/lstopo-no-graphics"

HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc
HWLOC_PLUGINS_PATH=${HWLOC_top_builddir}/hwloc/.libs
export HWLOC_PLUGINS_PATH

HWLOC_DEBUG_CHECK=1
Expand Down

0 comments on commit 360bd09

Please sign in to comment.