[Rt-commit] rt branch, 4.2/separate-tests-dependencies, created. rt-4.0.6-489-g5bd3083

Ruslan Zakirov ruz at bestpractical.com
Wed Aug 22 12:28:33 EDT 2012


The branch, 4.2/separate-tests-dependencies has been created
        at  5bd3083839f2f0510911696540edc2a77a6f9afe (commit)

- Log -----------------------------------------------------------------
commit 5bd3083839f2f0510911696540edc2a77a6f9afe
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Aug 22 20:26:00 2012 +0400

    separate test deps from devel mode
    
    End users use devel mode for customizing
    RT without restarting server all the time.
    
    However, they rarely run test suit. Separate
    dependencies. It's only one module that is
    require to run in devel mode and much more to
    run tests.

diff --git a/configure.ac b/configure.ac
index e405243..4e862d4 100755
--- a/configure.ac
+++ b/configure.ac
@@ -265,6 +265,20 @@ else
 fi
 AC_SUBST(RT_DEVEL_MODE)
 
+dnl RT's "check tests dependencies"
+AC_ARG_WITH(tests-deps,[],RT_TESTS_DEPS=$withval,RT_TESTS_DEPS="0")
+AC_ARG_ENABLE(tests-deps,
+            AC_HELP_STRING([--enable-tests-deps],
+                           [Turn on checking of dependencies required to run RT test suit]),
+            RT_TESTS_DEPS=$enableval,
+            RT_TESTS_DEPS=$RT_TESTS_DEPS)
+if test "$RT_TESTS_DEPS" = yes; then
+        RT_TESTS_DEPS="1"
+else
+        RT_TESTS_DEPS="0"
+fi
+AC_SUBST(RT_TESTS_DEPS)
+
 dnl RT's GraphViz dependency charts
 AC_CHECK_LIB([graph],[aginitlib],RT_GRAPHVIZ="1")
 AC_ARG_WITH(graphviz,[],RT_GRAPHVIZ=$withval)
diff --git a/sbin/rt-test-dependencies.in b/sbin/rt-test-dependencies.in
index 2376da1..6c4a431 100755
--- a/sbin/rt-test-dependencies.in
+++ b/sbin/rt-test-dependencies.in
@@ -65,7 +65,7 @@ GetOptions(
     'with-MODPERL1',                      'with-MODPERL2',
     'with-STANDALONE',
 
-    'with-DEV',
+    'with-DEV', 'with-TESTS-DEPS',
 
     'with-GPG',
     'with-ICAL',
@@ -96,6 +96,7 @@ my %default = (
     'with-CLI' => 1,
     'with-MAILGATE' => 1, 
     'with-DEV' => @RT_DEVEL_MODE@, 
+    'with-TESTS-DEPS' => @RT_TESTS_DEPS@,
     'with-GPG' => @RT_GPG@,
     'with-ICAL' => 1,
     'with-SMTP' => 1,
@@ -276,13 +277,16 @@ Term::ReadKey
 .
 
 $deps{'DEV'} = [ text_to_hash( << '.') ];
+Module::Refresh 0.03
+.
+
+$deps{'TESTS-DEPS'} = [ text_to_hash( << '.') ];
 Email::Abstract
 Test::Email
 HTML::Form
 HTML::TokeParser
 WWW::Mechanize 1.52
 Test::WWW::Mechanize 1.30
-Module::Refresh 0.03
 Test::Expect 0.31
 XML::Simple
 File::Find

-----------------------------------------------------------------------


More information about the Rt-commit mailing list