Project

General

Profile

Actions

Bug #613

closed

make check fails in VPATH build

Added by Mathieu Desnoyers over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
08/06/2013
Due date:
% Done:

100%

Estimated time:

Description

If the build directory differs from the source directory, e.g.:

source dir is in ~/git/lttng-tools

cd ~/git/lttng-tools
./bootstrap
./configure
make distclean

mkdir /tmp/tools-build
cd /tmp/tools-build
~/git/lttng-tools/configure
make
make check

The make check command fails with:

make[2]: Entering directory `/tmp/t2/tests'
./run.sh unit_tests
/bin/bash: ./run.sh: No such file or directory
make[2]: *** [check-am] Error 127
make[2]: Leaving directory `/tmp/t2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/t2/tests'
make: *** [check-recursive] Error 1

Basically, every script that we use within the tests should be copied over to the build directory. I fixed this in lttng-ust already with the following commit:

commit 38fa37816974b5ed05b54c79a2c5fd00c891c829
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date:   Tue Aug 6 11:50:02 2013 -0400

    Fix: allow make check to run in VPATH build

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

A similar approach should be used within tools tests.

Actions #1

Updated by David Goulet over 10 years ago

  • Status changed from New to Confirmed
  • Target version set to 2.2
Actions #2

Updated by David Goulet over 10 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF