From e29a1924afe9e6051369f7bcbf44ccdf53de536a Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Mon, 9 Nov 2009 00:39:16 +0000 Subject: Fixes 'make distcheck' to run the test suite. Quite a few changes to the build system to handle VPATH builds appropriately as well as make the test suite know about them. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833951 13f79535-47bb-0310-9956-ffa450edef68 --- test/etap/121-stats-aggregates.t | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'test/etap/121-stats-aggregates.t') diff --git a/test/etap/121-stats-aggregates.t b/test/etap/121-stats-aggregates.t index 9caa36ff..cd6b1430 100755 --- a/test/etap/121-stats-aggregates.t +++ b/test/etap/121-stats-aggregates.t @@ -13,9 +13,14 @@ % License for the specific language governing permissions and limitations under % the License. +ini_file() -> + test_util:source_file("test/etap/121-stats-aggregates.ini"). + +cfg_file() -> + test_util:source_file("test/etap/121-stats-aggregates.cfg"). + main(_) -> - code:add_patha("src/etap"), - code:add_pathz("src/couchdb"), + test_util:init_code_path(), etap:plan(17), case (catch test()) of ok -> @@ -27,9 +32,9 @@ main(_) -> ok. test() -> - couch_config:start_link(["test/etap/121-stats-aggregates.ini"]), + couch_config:start_link([ini_file()]), couch_stats_collector:start(), - couch_stats_aggregator:start("test/etap/121-stats-aggregates.cfg"), + couch_stats_aggregator:start(cfg_file()), ok = test_all_empty(), ok = test_get_empty(), ok = test_count_stats(), -- cgit v1.2.3