From a1291880df7f6021558ad959f669156c262677f0 Mon Sep 17 00:00:00 2001 From: Sergey Yelin Date: Mon, 18 Jul 2011 15:37:32 +0400 Subject: [PATCH] Disable stress test for now --- {test => int_test}/stress_SUITE.erl | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) rename {test => int_test}/stress_SUITE.erl (87%) diff --git a/test/stress_SUITE.erl b/int_test/stress_SUITE.erl similarity index 87% rename from test/stress_SUITE.erl rename to int_test/stress_SUITE.erl index 0829187..3b93631 100644 --- a/test/stress_SUITE.erl +++ b/int_test/stress_SUITE.erl @@ -36,11 +36,21 @@ all() -> write_array_test, write_bytes_test]. +dbconfig(Config) -> + Cfg = [ + {set_data_dir, ?config(priv_dir, Config)}, + {set_flags, 'DB_TXN_WRITE_NOSYNC'}, + {set_cachesize, '0 536870912 1'}, + {set_lg_max, '1048576000'}, + {set_lg_bsize, '5368709120'}, + {set_log_config, 'DB_LOG_IN_MEMORY'} + ], + list_to_binary(lists:flatten([io_lib:format("~s ~s\n", [K,V]) || {K, V} <- Cfg])). + init_per_suite(Config) -> - {ok, Cwd} = file:get_cwd(), - {ok, _} = file:copy(lists:append([Cwd, "/../../int_test/DB_CONFIG"]), - lists:append([Cwd, "/DB_CONFIG"])), - crypto:start(), + DbHome = ?config(priv_dir, Config), + os:putenv("DB_HOME", DbHome), + ok = file:write_file(DbHome ++ "DB_CONFIG", dbconfig(Config)), Config. end_per_suite(_Config) ->