@@ -38,9 +38,16 @@ def test(options)
3838
3939 if options [ :node_extended ]
4040 ( 1 ..3 ) . each do |i |
41- test_queues [ i -1 ] << build_cucumber_command ( "Extended Runtime Group #{ i } " , [ "@runtime_extended #{ i } " ] )
41+ test_queues [ i -1 ] << build_cucumber_command ( "Extended Node Group #{ i } " , [ "@node_extended #{ i } " ] )
4242 end
43- test_queues [ 3 ] << build_rake_command ( "OpenShift Runtime Functionals Ext" , "cd /data/openshift-test/node; rake ext_func_test" )
43+ test_queues [ 3 ] << build_rake_command ( "OpenShift Runtime Node Functionals Ext" , "cd /data/openshift-test/node; rake ext_node_func_test" )
44+ end
45+
46+ if options [ :cart_extended ]
47+ ( 1 ..3 ) . each do |i |
48+ test_queues [ i -1 ] << build_cucumber_command ( "Extended Cart Group #{ i } " , [ "@cart_extended#{ i } " ] )
49+ end
50+ test_queues [ 2 ] << build_rake_command ( "OpenShift Runtime Cartridge Functionals Ext" , "cd /data/openshift-test/node; rake ext_cart_func_test" )
4451 end
4552
4653 if options [ :rhc_extended ]
@@ -49,29 +56,35 @@ def test(options)
4956 nil , "/data/openshift-test/rhc/cucumber" )
5057 end
5158
52- unless options [ :exclude_broker ]
59+ if options [ :broker ]
5360 test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Sanity" , "cd /data/openshift-test/broker; rake test:sanity" , { } , false ) if options [ :fixme ]
5461 test_queues [ 3 ] << build_rake_command ( "OpenShift Broker Units" , "cd /data/openshift-test/broker; rake test:units" , { } , false )
55- test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Integration" , "cd /data/openshift-test/broker; rake test:integration" , { } , false )
5662 test_queues [ 2 ] << build_rake_command ( "OpenShift Broker Functional" , "cd /data/openshift-test/broker; rake test:functionals" , { } , false )
57- test_queues [ 1 ] << build_rake_command ( "OpenShift Admin Console Functional" , "cd /data/openshift-test/broker; rake test:admin_console_functionals" , { } , false ) if options [ :fixme ]
63+ test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Integration" , "cd /data/openshift-test/broker; rake test:integration" , { } , false )
64+ test_queues [ 1 ] << build_rake_command ( "OpenShift Admin Console Functional" , "cd /data/openshift-test/broker; rake test:admin_console_functionals" , { } , false )
5865 test_queues [ 3 ] << build_cucumber_command ( "Broker cucumber" , [ "@broker" ] )
5966 end
6067
61- unless options [ :exclude_node ]
68+ if options [ :node ]
6269 test_queues [ 0 ] << build_rake_command ( "Runtime Functional" , "cd /data/openshift-test/node; rake essentials_test" , { } , false )
6370 test_queues [ 1 ] << build_rake_command ( "Runtime Frontend Plugin ApacheDB" , "cd /data/openshift-test/plugins/frontend/apachedb; rake test" , { } , false )
6471 test_queues [ 2 ] << build_rake_command ( "Runtime Frontend Plugin Apache Mod Rewrite" , "cd /data/openshift-test/plugins/frontend/apache-mod-rewrite; rake test" , { } , false )
6572 test_queues [ 3 ] << build_rake_command ( "Runtime Frontend Plugin Apache Vhost" , "cd /data/openshift-test/plugins/frontend/apache-vhost; rake test" , { } , false )
6673 test_queues [ 0 ] << build_rake_command ( "Runtime Frontend Plugin NodeJS Websocket" , "cd /data/openshift-test/plugins/frontend/nodejs-websocket; rake test" , { } , false )
6774 test_queues [ 1 ] << build_rake_command ( "Runtime Frontend Plugin Haproxy SNI Proxy" , "cd /data/openshift-test/plugins/frontend/haproxy-sni-proxy; rake test" , { } , false )
6875 test_queues [ 2 ] << build_rake_command ( "Runtime Unit" , "cd /data/openshift-test/node; rake unit_test" , { } , false )
69- ( 1 ..4 ) . each do |i |
70- test_queues [ i - 1 ] << build_cucumber_command ( "Runtime Group #{ i . to_s } " , [ "@runtime #{ i . to_s } " ] )
76+ ( 1 ..3 ) . each do |i |
77+ test_queues [ i ] << build_cucumber_command ( "Node Group #{ i . to_s } " , [ "@node #{ i . to_s } " ] )
7178 end
7279 end
7380
74- unless options [ :exclude_rhc ]
81+ if options [ :cart ]
82+ ( 1 ..3 ) . each do |i |
83+ test_queues [ i ] << build_cucumber_command ( "Cartridge Group #{ i . to_s } " , [ "@cartridge#{ i . to_s } " ] )
84+ end
85+ end
86+
87+ if options [ :rhc ]
7588 if @is_fedora
7689 test_queues [ 0 ] << build_rake_command ( "RHC Spec" , 'cd /data/openshift-test/rhc; bundle install --local && bundle exec rake spec' , { "SKIP_RUNCON" => 1 } , false )
7790 test_queues [ 0 ] << build_rake_command ( "RHC Features" , %{
@@ -99,10 +112,14 @@ def test(options)
99112
100113 #These are special tests that cannot be written to work concurrently
101114 singleton_queue = [ ]
115+ idle_all_gears
102116
103- unless options [ :exclude_node ]
104- idle_all_gears
105- singleton_queue << build_cucumber_command ( "Runtime singletons" , [ "@singleton" ] )
117+ if options [ :node ]
118+ singleton_queue << build_cucumber_command ( "Runtime singletons" , [ "@node_singleton" ] )
119+ end
120+
121+ if options [ :cart ]
122+ singleton_queue << build_cucumber_command ( "Runtime singletons" , [ "@cart_singleton" ] )
106123 end
107124
108125 run_tests_with_retry ( [ singleton_queue ] )
0 commit comments