From 87c556e6ea81799ff4a1ff3beface00f28e65817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 16 Mar 2011 16:18:56 +0000 Subject: [PATCH] tests: Use $(builddir) instead of `pwd`. --- tests/Makefile.am | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 53ad833a..9bba6033 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,13 +1,12 @@ -TESTDIR=`pwd` -TESTS_ENVIRONMENT = \ - HYDRA_DBI="dbi:SQLite:db.sqlite" \ - HYDRA_DATA="$(TESTDIR)/data" \ - HYDRA_HOME="$(topsrc_dir)/src" \ - NIX_REMOTE= \ - NIX_STATE_DIR="$(TESTDIR)/nix/var/nix" \ - NIX_STORE_DIR="$(TESTDIR)/nix/store" \ - NIX_LOG_DIR="$(TESTDIR)/nix/var/log/nix" \ - PERL5LIB="$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" \ +TESTS_ENVIRONMENT = \ + HYDRA_DBI="dbi:SQLite:db.sqlite" \ + HYDRA_DATA="$(builddir)/data" \ + HYDRA_HOME="$(topsrc_dir)/src" \ + NIX_REMOTE= \ + NIX_STATE_DIR="$(builddir)/nix/var/nix" \ + NIX_STORE_DIR="$(builddir)/nix/store" \ + NIX_LOG_DIR="$(builddir)/nix/var/log/nix" \ + PERL5LIB="$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" \ perl -w TESTS = \ @@ -42,7 +41,7 @@ hg-repo : svn-repo : svnadmin create svn-repo - svn co file://$(TESTDIR)/svn-repo svn-checkout + svn co file://$(builddir)/svn-repo svn-checkout touch svn-checkout/svn-file svn add svn-checkout/svn-file svn commit -m "add svn file" svn-checkout/svn-file