Browse Source

tests/coverage/coverage_test.sh is generated by configure to have a proper directory to call configure (that is needed to get a correct coverage report)

Nathalie Furmento 14 years ago
parent
commit
e2498049af
2 changed files with 4 additions and 5 deletions
  1. 2 2
      configure.ac
  2. 2 3
      tests/coverage/coverage_test.sh

+ 2 - 2
configure.ac

@@ -876,8 +876,8 @@ PKG_CHECK_MODULES([HWLOC], [hwloc], [
 ], [:])
 AC_SUBST(HWLOC_REQUIRES)
 
-AC_CONFIG_COMMANDS([executable-scripts], [chmod +x ]tests/regression/regression.sh)
-AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
+AC_CONFIG_COMMANDS([executable-scripts], [chmod +x ]tests/regression/regression.sh tests/coverage/coverage_test.sh)
+AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only tests/coverage/coverage_test.sh)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h)
 
 AC_OUTPUT([

+ 2 - 3
tests/coverage/coverage_test.sh

@@ -15,8 +15,7 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 #
 
-DIR=$PWD
-ROOTDIR=$DIR/../..
+ROOTDIR=@STARPU_SRC_DIR@
 WORKDIR=`mktemp -d`
 COVDIR=$WORKDIR/coverage
 BUILDDIR=$WORKDIR/build
@@ -199,5 +198,5 @@ apps;
 generatehtml;
 
 echo
-echo "See $WORKDIR and $LOGFILE for detailed output"
+echo "See directory $WORKDIR/ and file $LOGFILE for detailed output"
 echo