jstorimer-deep-test 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/README.rdoc +70 -41
- data/Rakefile +104 -32
- data/TODO +2 -2
- data/VERSION +1 -1
- data/bin/deep_test +15 -0
- data/jstorimer-deep-test-0.1.0.gem +0 -0
- data/jstorimer-deep-test.gemspec +1425 -0
- data/lib/deep_test.rb +40 -28
- data/lib/deep_test/database/mysql_setup_listener.rb +12 -12
- data/lib/deep_test/database/setup_listener.rb +23 -23
- data/lib/deep_test/distributed/dispatch_controller.rb +10 -17
- data/lib/deep_test/distributed/drb_client_connection_info.rb +15 -0
- data/lib/deep_test/distributed/master_test_server.rb +52 -0
- data/lib/deep_test/distributed/multi_test_server_proxy.rb +44 -0
- data/lib/deep_test/distributed/null_work_unit.rb +12 -0
- data/lib/deep_test/distributed/remote_worker_client.rb +54 -0
- data/lib/deep_test/distributed/remote_worker_server.rb +82 -0
- data/lib/deep_test/distributed/rsync.rb +12 -25
- data/lib/deep_test/distributed/show_status.rhtml +41 -0
- data/lib/deep_test/distributed/test_server.rb +78 -0
- data/lib/deep_test/distributed/test_server_status.rb +9 -0
- data/lib/deep_test/distributed/test_server_workers.rb +24 -0
- data/lib/deep_test/distributed/throughput_runner.rb +42 -0
- data/lib/deep_test/distributed/throughput_statistics.rb +26 -0
- data/lib/deep_test/distributed/throughput_worker_client.rb +19 -0
- data/lib/deep_test/extensions/drb_extension.rb +34 -0
- data/lib/deep_test/listener_list.rb +1 -1
- data/lib/deep_test/local_workers.rb +55 -0
- data/lib/deep_test/logger.rb +2 -17
- data/lib/deep_test/marshallable_exception_wrapper.rb +4 -4
- data/lib/deep_test/metrics/gatherer.rb +67 -0
- data/lib/deep_test/metrics/queue_lock_wait_time_measurement.rb +133 -0
- data/lib/deep_test/{null_listener.rb → null_worker_listener.rb} +14 -14
- data/lib/deep_test/option.rb +60 -0
- data/lib/deep_test/options.rb +42 -45
- data/lib/deep_test/process_orchestrator.rb +49 -0
- data/lib/deep_test/rake_tasks.rb +1 -3
- data/lib/deep_test/result_reader.rb +6 -10
- data/lib/deep_test/rspec_detector.rb +1 -1
- data/lib/deep_test/server.rb +75 -0
- data/lib/deep_test/spec.rb +1 -5
- data/lib/deep_test/spec/extensions/example_methods.rb +1 -7
- data/lib/deep_test/spec/extensions/reporter.rb +29 -0
- data/lib/deep_test/spec/extensions/spec_task.rb +2 -3
- data/lib/deep_test/spec/runner.rb +17 -32
- data/lib/deep_test/spec/work_result.rb +0 -2
- data/lib/deep_test/test/runner.rb +2 -2
- data/lib/deep_test/test/supervised_test_suite.rb +10 -9
- data/lib/deep_test/test/work_result.rb +0 -1
- data/lib/deep_test/test_task.rb +1 -1
- data/lib/deep_test/ui/console.rb +11 -9
- data/lib/deep_test/warlock.rb +25 -37
- data/lib/deep_test/worker.rb +57 -0
- data/sample_rails_project/deep_test.rb +0 -4
- data/sample_rails_project/lib/{foreign_host_agent_simulation_listener.rb → foreign_host_worker_simulation_listener.rb} +4 -6
- data/sample_rails_project/lib/tasks/deep_test.rake +4 -13
- data/script/internal/run_test_suite.rb +7 -0
- data/script/public/master_test_server.rb +24 -0
- data/script/public/test_server.rb +18 -0
- data/script/public/test_throughput.rb +29 -0
- data/spec/deep_test/option_spec.rb +33 -0
- data/spec/deep_test/options_spec.rb +59 -80
- data/spec/deep_test/spec/extensions/example_methods_spec.rb +4 -5
- data/spec/deep_test/spec/extensions/spec_task_spec.rb +6 -4
- data/spec/deep_test/spec/runner_spec.rb +32 -59
- data/spec/spec_helper.rb +6 -14
- data/spec/thread_worker.rb +25 -0
- data/test/deep_test/database/mysql_setup_listener_test.rb +9 -13
- data/test/deep_test/distributed/dispatch_controller_test.rb +177 -130
- data/test/deep_test/distributed/drb_client_connection_info_test.rb +42 -0
- data/test/deep_test/distributed/filename_resolver_test.rb +34 -38
- data/test/deep_test/distributed/master_test_server_test.rb +32 -0
- data/test/deep_test/distributed/multi_test_server_proxy_test.rb +96 -0
- data/test/deep_test/distributed/remote_worker_client_test.rb +180 -0
- data/test/deep_test/distributed/remote_worker_server_test.rb +99 -0
- data/test/deep_test/distributed/rsync_test.rb +62 -42
- data/test/deep_test/distributed/test_server_test.rb +94 -0
- data/test/deep_test/distributed/test_server_workers_test.rb +26 -0
- data/test/deep_test/distributed/throughput_runner_test.rb +68 -0
- data/test/deep_test/distributed/throughput_worker_client_test.rb +28 -0
- data/test/deep_test/listener_list_test.rb +15 -17
- data/test/deep_test/local_workers_test.rb +22 -0
- data/test/deep_test/logger_test.rb +7 -34
- data/test/deep_test/marshallable_exception_wrapper_test.rb +29 -31
- data/test/deep_test/metrics/gatherer_test.rb +66 -0
- data/test/deep_test/process_orchestrator_test.rb +11 -0
- data/test/deep_test/result_reader_test.rb +95 -95
- data/test/deep_test/server_test.rb +58 -0
- data/test/deep_test/test/extensions/error_test.rb +36 -38
- data/test/deep_test/test/runner_test.rb +3 -7
- data/test/deep_test/test/supervised_test_suite_test.rb +61 -89
- data/test/deep_test/test/work_result_test.rb +76 -80
- data/test/deep_test/test/work_unit_test.rb +51 -53
- data/test/deep_test/test_task_test.rb +38 -10
- data/test/deep_test/ui/console_test.rb +4 -8
- data/test/deep_test/warlock_test.rb +31 -33
- data/test/deep_test/worker_test.rb +94 -0
- data/test/failing.rake +11 -0
- data/{negative_acceptance_tests/failing_test.rb → test/failing.rb} +1 -3
- data/{infrastructure → test}/fake_deadlock_error.rb +0 -0
- data/test/simple_test_blackboard.rb +45 -0
- data/test/simple_test_blackboard_test.rb +33 -0
- data/{infrastructure → test}/test_factory.rb +0 -0
- data/test/test_helper.rb +5 -20
- data/test/test_task_test.rb +57 -60
- metadata +78 -87
- data/infrastructure/dynamic_teardown.rb +0 -22
- data/infrastructure/load.rb +0 -11
- data/infrastructure/test_central_command.rb +0 -15
- data/infrastructure/test_exception.rb +0 -7
- data/infrastructure/test_logger.rb +0 -11
- data/infrastructure/test_operator.rb +0 -15
- data/infrastructure/test_result.rb +0 -15
- data/infrastructure/thread_agent.rb +0 -21
- data/infrastructure/timewarp/Rakefile +0 -14
- data/infrastructure/timewarp/lib/timewarp.rb +0 -21
- data/infrastructure/timewarp/test/timewarp_test.rb +0 -45
- data/lib/deep_test/agent.rb +0 -108
- data/lib/deep_test/central_command.rb +0 -165
- data/lib/deep_test/cpu_info.rb +0 -22
- data/lib/deep_test/demon.rb +0 -25
- data/lib/deep_test/distributed/beachhead.rb +0 -104
- data/lib/deep_test/distributed/establish_beachhead.rb +0 -19
- data/lib/deep_test/distributed/landing_fleet.rb +0 -30
- data/lib/deep_test/distributed/landing_ship.rb +0 -60
- data/lib/deep_test/distributed/remote_deployment.rb +0 -56
- data/lib/deep_test/distributed/shell_environment.rb +0 -50
- data/lib/deep_test/distributed/ssh_client_connection_info.rb +0 -14
- data/lib/deep_test/failure_message.rb +0 -19
- data/lib/deep_test/lib_root.rb +0 -4
- data/lib/deep_test/local_deployment.rb +0 -46
- data/lib/deep_test/main.rb +0 -41
- data/lib/deep_test/metrics/data.rb +0 -34
- data/lib/deep_test/metrics/measurement.rb +0 -39
- data/lib/deep_test/proxy_io.rb +0 -77
- data/lib/deep_test/test/run_test_suite.rb +0 -5
- data/lib/telegraph.rb +0 -29
- data/lib/telegraph/ack_sequence.rb +0 -14
- data/lib/telegraph/logging.rb +0 -20
- data/lib/telegraph/message.rb +0 -39
- data/lib/telegraph/operator.rb +0 -47
- data/lib/telegraph/switchboard.rb +0 -57
- data/lib/telegraph/wire.rb +0 -73
- data/negative_acceptance_tests/dying_spec.rb +0 -13
- data/negative_acceptance_tests/dying_test.rb +0 -13
- data/negative_acceptance_tests/failing_spec.rb +0 -9
- data/negative_acceptance_tests/kill_agent_one_on_start_work.rb +0 -16
- data/negative_acceptance_tests/passing_spec.rb +0 -10
- data/negative_acceptance_tests/passing_test.rb +0 -12
- data/negative_acceptance_tests/tasks.rake +0 -87
- data/negative_acceptance_tests/tests.rb +0 -60
- data/test/deep_test/agent_test.rb +0 -175
- data/test/deep_test/central_command_test.rb +0 -147
- data/test/deep_test/cpu_info_test.rb +0 -33
- data/test/deep_test/demon_test.rb +0 -23
- data/test/deep_test/distributed/beachhead_test.rb +0 -67
- data/test/deep_test/distributed/landing_fleet_test.rb +0 -55
- data/test/deep_test/distributed/landing_ship_test.rb +0 -48
- data/test/deep_test/distributed/remote_deployment_test.rb +0 -134
- data/test/deep_test/distributed/shell_environment_fixtures/set_bar_to_foo +0 -1
- data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_bar +0 -1
- data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_baz +0 -1
- data/test/deep_test/distributed/shell_environment_test.rb +0 -108
- data/test/deep_test/distributed/ssh_client_connection_info_test.rb +0 -34
- data/test/deep_test/local_deployment_test.rb +0 -19
- data/test/deep_test/main_test.rb +0 -12
- data/test/deep_test/metrics/data_test.rb +0 -22
- data/test/deep_test/metrics/measurement_test.rb +0 -18
- data/test/deep_test/proxy_io_test.rb +0 -104
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jstorimer-deep-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Nichols
|
@@ -10,13 +10,13 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
|
12
12
|
date: 2009-11-06 00:00:00 -05:00
|
13
|
-
default_executable:
|
13
|
+
default_executable: deep_test
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: Parallelized testing
|
17
17
|
email: jstorimer@gmail.com
|
18
|
-
executables:
|
19
|
-
|
18
|
+
executables:
|
19
|
+
- deep_test
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
@@ -28,64 +28,56 @@ files:
|
|
28
28
|
- Rakefile
|
29
29
|
- TODO
|
30
30
|
- VERSION
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
- infrastructure/test_central_command.rb
|
35
|
-
- infrastructure/test_exception.rb
|
36
|
-
- infrastructure/test_factory.rb
|
37
|
-
- infrastructure/test_logger.rb
|
38
|
-
- infrastructure/test_operator.rb
|
39
|
-
- infrastructure/test_result.rb
|
40
|
-
- infrastructure/thread_agent.rb
|
41
|
-
- infrastructure/timewarp/Rakefile
|
42
|
-
- infrastructure/timewarp/lib/timewarp.rb
|
43
|
-
- infrastructure/timewarp/test/timewarp_test.rb
|
31
|
+
- bin/deep_test
|
32
|
+
- jstorimer-deep-test-0.1.0.gem
|
33
|
+
- jstorimer-deep-test.gemspec
|
44
34
|
- lib/deep_test.rb
|
45
|
-
- lib/deep_test/agent.rb
|
46
|
-
- lib/deep_test/central_command.rb
|
47
|
-
- lib/deep_test/cpu_info.rb
|
48
35
|
- lib/deep_test/database/mysql_setup_listener.rb
|
49
36
|
- lib/deep_test/database/setup_listener.rb
|
50
37
|
- lib/deep_test/deadlock_detector.rb
|
51
|
-
- lib/deep_test/demon.rb
|
52
|
-
- lib/deep_test/distributed/beachhead.rb
|
53
38
|
- lib/deep_test/distributed/dispatch_controller.rb
|
54
|
-
- lib/deep_test/distributed/
|
39
|
+
- lib/deep_test/distributed/drb_client_connection_info.rb
|
55
40
|
- lib/deep_test/distributed/filename_resolver.rb
|
56
|
-
- lib/deep_test/distributed/
|
57
|
-
- lib/deep_test/distributed/
|
58
|
-
- lib/deep_test/distributed/
|
41
|
+
- lib/deep_test/distributed/master_test_server.rb
|
42
|
+
- lib/deep_test/distributed/multi_test_server_proxy.rb
|
43
|
+
- lib/deep_test/distributed/null_work_unit.rb
|
44
|
+
- lib/deep_test/distributed/remote_worker_client.rb
|
45
|
+
- lib/deep_test/distributed/remote_worker_server.rb
|
59
46
|
- lib/deep_test/distributed/rsync.rb
|
60
|
-
- lib/deep_test/distributed/
|
61
|
-
- lib/deep_test/distributed/
|
47
|
+
- lib/deep_test/distributed/show_status.rhtml
|
48
|
+
- lib/deep_test/distributed/test_server.rb
|
49
|
+
- lib/deep_test/distributed/test_server_status.rb
|
50
|
+
- lib/deep_test/distributed/test_server_workers.rb
|
51
|
+
- lib/deep_test/distributed/throughput_runner.rb
|
52
|
+
- lib/deep_test/distributed/throughput_statistics.rb
|
53
|
+
- lib/deep_test/distributed/throughput_worker_client.rb
|
54
|
+
- lib/deep_test/extensions/drb_extension.rb
|
62
55
|
- lib/deep_test/extensions/object_extension.rb
|
63
|
-
- lib/deep_test/failure_message.rb
|
64
|
-
- lib/deep_test/lib_root.rb
|
65
56
|
- lib/deep_test/listener_list.rb
|
66
|
-
- lib/deep_test/
|
57
|
+
- lib/deep_test/local_workers.rb
|
67
58
|
- lib/deep_test/logger.rb
|
68
|
-
- lib/deep_test/main.rb
|
69
59
|
- lib/deep_test/marshallable_exception_wrapper.rb
|
70
|
-
- lib/deep_test/metrics/
|
71
|
-
- lib/deep_test/metrics/
|
72
|
-
- lib/deep_test/
|
60
|
+
- lib/deep_test/metrics/gatherer.rb
|
61
|
+
- lib/deep_test/metrics/queue_lock_wait_time_measurement.rb
|
62
|
+
- lib/deep_test/null_worker_listener.rb
|
63
|
+
- lib/deep_test/option.rb
|
73
64
|
- lib/deep_test/options.rb
|
74
|
-
- lib/deep_test/
|
65
|
+
- lib/deep_test/process_orchestrator.rb
|
75
66
|
- lib/deep_test/rake_tasks.rb
|
76
67
|
- lib/deep_test/result_reader.rb
|
77
68
|
- lib/deep_test/rspec_detector.rb
|
69
|
+
- lib/deep_test/server.rb
|
78
70
|
- lib/deep_test/spec.rb
|
79
71
|
- lib/deep_test/spec/extensions/example_group_methods.rb
|
80
72
|
- lib/deep_test/spec/extensions/example_methods.rb
|
81
73
|
- lib/deep_test/spec/extensions/options.rb
|
74
|
+
- lib/deep_test/spec/extensions/reporter.rb
|
82
75
|
- lib/deep_test/spec/extensions/spec_task.rb
|
83
76
|
- lib/deep_test/spec/runner.rb
|
84
77
|
- lib/deep_test/spec/work_result.rb
|
85
78
|
- lib/deep_test/spec/work_unit.rb
|
86
79
|
- lib/deep_test/test.rb
|
87
80
|
- lib/deep_test/test/extensions/error.rb
|
88
|
-
- lib/deep_test/test/run_test_suite.rb
|
89
81
|
- lib/deep_test/test/runner.rb
|
90
82
|
- lib/deep_test/test/supervised_test_suite.rb
|
91
83
|
- lib/deep_test/test/work_result.rb
|
@@ -94,22 +86,7 @@ files:
|
|
94
86
|
- lib/deep_test/ui/console.rb
|
95
87
|
- lib/deep_test/ui/null.rb
|
96
88
|
- lib/deep_test/warlock.rb
|
97
|
-
- lib/
|
98
|
-
- lib/telegraph/ack_sequence.rb
|
99
|
-
- lib/telegraph/logging.rb
|
100
|
-
- lib/telegraph/message.rb
|
101
|
-
- lib/telegraph/operator.rb
|
102
|
-
- lib/telegraph/switchboard.rb
|
103
|
-
- lib/telegraph/wire.rb
|
104
|
-
- negative_acceptance_tests/dying_spec.rb
|
105
|
-
- negative_acceptance_tests/dying_test.rb
|
106
|
-
- negative_acceptance_tests/failing_spec.rb
|
107
|
-
- negative_acceptance_tests/failing_test.rb
|
108
|
-
- negative_acceptance_tests/kill_agent_one_on_start_work.rb
|
109
|
-
- negative_acceptance_tests/passing_spec.rb
|
110
|
-
- negative_acceptance_tests/passing_test.rb
|
111
|
-
- negative_acceptance_tests/tasks.rake
|
112
|
-
- negative_acceptance_tests/tests.rb
|
89
|
+
- lib/deep_test/worker.rb
|
113
90
|
- sample_rails_project/README
|
114
91
|
- sample_rails_project/Rakefile
|
115
92
|
- sample_rails_project/app/controllers/application.rb
|
@@ -129,7 +106,7 @@ files:
|
|
129
106
|
- sample_rails_project/db/schema.rb
|
130
107
|
- sample_rails_project/deep_test.rb
|
131
108
|
- sample_rails_project/doc/README_FOR_APP
|
132
|
-
- sample_rails_project/lib/
|
109
|
+
- sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
|
133
110
|
- sample_rails_project/lib/tasks/create.sql
|
134
111
|
- sample_rails_project/lib/tasks/db.rake
|
135
112
|
- sample_rails_project/lib/tasks/deep_test.rake
|
@@ -1324,6 +1301,11 @@ files:
|
|
1324
1301
|
- sample_rails_project/vendor/rails/railties/lib/tasks/tmp.rake
|
1325
1302
|
- sample_rails_project/vendor/rails/railties/lib/test_help.rb
|
1326
1303
|
- sample_rails_project/vendor/rails/railties/lib/webrick_server.rb
|
1304
|
+
- script/internal/run_test_suite.rb
|
1305
|
+
- script/public/master_test_server.rb
|
1306
|
+
- script/public/test_server.rb
|
1307
|
+
- script/public/test_throughput.rb
|
1308
|
+
- spec/deep_test/option_spec.rb
|
1327
1309
|
- spec/deep_test/options_spec.rb
|
1328
1310
|
- spec/deep_test/spec/extensions/example_group_methods_spec.rb
|
1329
1311
|
- spec/deep_test/spec/extensions/example_methods_spec.rb
|
@@ -1335,33 +1317,29 @@ files:
|
|
1335
1317
|
- spec/deep_test/spec/work_unit_spec.rb
|
1336
1318
|
- spec/spec.opts
|
1337
1319
|
- spec/spec_helper.rb
|
1338
|
-
-
|
1339
|
-
- test/deep_test/central_command_test.rb
|
1340
|
-
- test/deep_test/cpu_info_test.rb
|
1320
|
+
- spec/thread_worker.rb
|
1341
1321
|
- test/deep_test/database/mysql_setup_listener_test.rb
|
1342
|
-
- test/deep_test/demon_test.rb
|
1343
|
-
- test/deep_test/distributed/beachhead_test.rb
|
1344
1322
|
- test/deep_test/distributed/dispatch_controller_test.rb
|
1323
|
+
- test/deep_test/distributed/drb_client_connection_info_test.rb
|
1345
1324
|
- test/deep_test/distributed/filename_resolver_test.rb
|
1346
|
-
- test/deep_test/distributed/
|
1347
|
-
- test/deep_test/distributed/
|
1348
|
-
- test/deep_test/distributed/
|
1325
|
+
- test/deep_test/distributed/master_test_server_test.rb
|
1326
|
+
- test/deep_test/distributed/multi_test_server_proxy_test.rb
|
1327
|
+
- test/deep_test/distributed/remote_worker_client_test.rb
|
1328
|
+
- test/deep_test/distributed/remote_worker_server_test.rb
|
1349
1329
|
- test/deep_test/distributed/rsync_test.rb
|
1350
|
-
- test/deep_test/distributed/
|
1351
|
-
- test/deep_test/distributed/
|
1352
|
-
- test/deep_test/distributed/
|
1353
|
-
- test/deep_test/distributed/
|
1354
|
-
- test/deep_test/distributed/ssh_client_connection_info_test.rb
|
1330
|
+
- test/deep_test/distributed/test_server_test.rb
|
1331
|
+
- test/deep_test/distributed/test_server_workers_test.rb
|
1332
|
+
- test/deep_test/distributed/throughput_runner_test.rb
|
1333
|
+
- test/deep_test/distributed/throughput_worker_client_test.rb
|
1355
1334
|
- test/deep_test/extensions/object_extension_test.rb
|
1356
1335
|
- test/deep_test/listener_list_test.rb
|
1357
|
-
- test/deep_test/
|
1336
|
+
- test/deep_test/local_workers_test.rb
|
1358
1337
|
- test/deep_test/logger_test.rb
|
1359
|
-
- test/deep_test/main_test.rb
|
1360
1338
|
- test/deep_test/marshallable_exception_wrapper_test.rb
|
1361
|
-
- test/deep_test/metrics/
|
1362
|
-
- test/deep_test/
|
1363
|
-
- test/deep_test/proxy_io_test.rb
|
1339
|
+
- test/deep_test/metrics/gatherer_test.rb
|
1340
|
+
- test/deep_test/process_orchestrator_test.rb
|
1364
1341
|
- test/deep_test/result_reader_test.rb
|
1342
|
+
- test/deep_test/server_test.rb
|
1365
1343
|
- test/deep_test/test/extensions/error_test.rb
|
1366
1344
|
- test/deep_test/test/runner_test.rb
|
1367
1345
|
- test/deep_test/test/supervised_test_suite_test.rb
|
@@ -1370,6 +1348,13 @@ files:
|
|
1370
1348
|
- test/deep_test/test_task_test.rb
|
1371
1349
|
- test/deep_test/ui/console_test.rb
|
1372
1350
|
- test/deep_test/warlock_test.rb
|
1351
|
+
- test/deep_test/worker_test.rb
|
1352
|
+
- test/failing.rake
|
1353
|
+
- test/failing.rb
|
1354
|
+
- test/fake_deadlock_error.rb
|
1355
|
+
- test/simple_test_blackboard.rb
|
1356
|
+
- test/simple_test_blackboard_test.rb
|
1357
|
+
- test/test_factory.rb
|
1373
1358
|
- test/test_helper.rb
|
1374
1359
|
- test/test_task_test.rb
|
1375
1360
|
has_rdoc: true
|
@@ -1401,6 +1386,7 @@ signing_key:
|
|
1401
1386
|
specification_version: 3
|
1402
1387
|
summary: Edge version of deep-test
|
1403
1388
|
test_files:
|
1389
|
+
- spec/deep_test/option_spec.rb
|
1404
1390
|
- spec/deep_test/options_spec.rb
|
1405
1391
|
- spec/deep_test/spec/extensions/example_group_methods_spec.rb
|
1406
1392
|
- spec/deep_test/spec/extensions/example_methods_spec.rb
|
@@ -1411,30 +1397,29 @@ test_files:
|
|
1411
1397
|
- spec/deep_test/spec/work_result_spec.rb
|
1412
1398
|
- spec/deep_test/spec/work_unit_spec.rb
|
1413
1399
|
- spec/spec_helper.rb
|
1414
|
-
-
|
1415
|
-
- test/deep_test/central_command_test.rb
|
1416
|
-
- test/deep_test/cpu_info_test.rb
|
1400
|
+
- spec/thread_worker.rb
|
1417
1401
|
- test/deep_test/database/mysql_setup_listener_test.rb
|
1418
|
-
- test/deep_test/demon_test.rb
|
1419
|
-
- test/deep_test/distributed/beachhead_test.rb
|
1420
1402
|
- test/deep_test/distributed/dispatch_controller_test.rb
|
1403
|
+
- test/deep_test/distributed/drb_client_connection_info_test.rb
|
1421
1404
|
- test/deep_test/distributed/filename_resolver_test.rb
|
1422
|
-
- test/deep_test/distributed/
|
1423
|
-
- test/deep_test/distributed/
|
1424
|
-
- test/deep_test/distributed/
|
1405
|
+
- test/deep_test/distributed/master_test_server_test.rb
|
1406
|
+
- test/deep_test/distributed/multi_test_server_proxy_test.rb
|
1407
|
+
- test/deep_test/distributed/remote_worker_client_test.rb
|
1408
|
+
- test/deep_test/distributed/remote_worker_server_test.rb
|
1425
1409
|
- test/deep_test/distributed/rsync_test.rb
|
1426
|
-
- test/deep_test/distributed/
|
1427
|
-
- test/deep_test/distributed/
|
1410
|
+
- test/deep_test/distributed/test_server_test.rb
|
1411
|
+
- test/deep_test/distributed/test_server_workers_test.rb
|
1412
|
+
- test/deep_test/distributed/throughput_runner_test.rb
|
1413
|
+
- test/deep_test/distributed/throughput_worker_client_test.rb
|
1428
1414
|
- test/deep_test/extensions/object_extension_test.rb
|
1429
1415
|
- test/deep_test/listener_list_test.rb
|
1430
|
-
- test/deep_test/
|
1416
|
+
- test/deep_test/local_workers_test.rb
|
1431
1417
|
- test/deep_test/logger_test.rb
|
1432
|
-
- test/deep_test/main_test.rb
|
1433
1418
|
- test/deep_test/marshallable_exception_wrapper_test.rb
|
1434
|
-
- test/deep_test/metrics/
|
1435
|
-
- test/deep_test/
|
1436
|
-
- test/deep_test/proxy_io_test.rb
|
1419
|
+
- test/deep_test/metrics/gatherer_test.rb
|
1420
|
+
- test/deep_test/process_orchestrator_test.rb
|
1437
1421
|
- test/deep_test/result_reader_test.rb
|
1422
|
+
- test/deep_test/server_test.rb
|
1438
1423
|
- test/deep_test/test/extensions/error_test.rb
|
1439
1424
|
- test/deep_test/test/runner_test.rb
|
1440
1425
|
- test/deep_test/test/supervised_test_suite_test.rb
|
@@ -1443,5 +1428,11 @@ test_files:
|
|
1443
1428
|
- test/deep_test/test_task_test.rb
|
1444
1429
|
- test/deep_test/ui/console_test.rb
|
1445
1430
|
- test/deep_test/warlock_test.rb
|
1431
|
+
- test/deep_test/worker_test.rb
|
1432
|
+
- test/failing.rb
|
1433
|
+
- test/fake_deadlock_error.rb
|
1434
|
+
- test/simple_test_blackboard.rb
|
1435
|
+
- test/simple_test_blackboard_test.rb
|
1436
|
+
- test/test_factory.rb
|
1446
1437
|
- test/test_helper.rb
|
1447
1438
|
- test/test_task_test.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module DynamicTeardown
|
2
|
-
class <<self
|
3
|
-
def setup
|
4
|
-
stack.push []
|
5
|
-
end
|
6
|
-
|
7
|
-
def stack
|
8
|
-
@stack ||= []
|
9
|
-
end
|
10
|
-
|
11
|
-
def on_teardown(&block)
|
12
|
-
stack.last << block
|
13
|
-
end
|
14
|
-
|
15
|
-
def teardown
|
16
|
-
teardowns = stack.pop
|
17
|
-
while td = teardowns.shift
|
18
|
-
td.call rescue nil
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/infrastructure/load.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + "/timewarp/lib/timewarp"
|
2
|
-
require File.dirname(__FILE__) + "/fake_deadlock_error"
|
3
|
-
require File.dirname(__FILE__) + "/test_central_command"
|
4
|
-
require File.dirname(__FILE__) + "/test_factory"
|
5
|
-
require File.dirname(__FILE__) + "/test_logger"
|
6
|
-
require File.dirname(__FILE__) + "/test_exception"
|
7
|
-
require File.dirname(__FILE__) + "/test_result"
|
8
|
-
require File.dirname(__FILE__) + "/test_operator"
|
9
|
-
require File.dirname(__FILE__) + "/dynamic_teardown"
|
10
|
-
require File.dirname(__FILE__) + "/thread_agent"
|
11
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module DeepTest
|
2
|
-
class TestCentralCommand < CentralCommand
|
3
|
-
def self.start(options)
|
4
|
-
central_command = super
|
5
|
-
DynamicTeardown.on_teardown { central_command.stop }
|
6
|
-
central_command
|
7
|
-
end
|
8
|
-
|
9
|
-
def remaining_result_count
|
10
|
-
@results_mutex.synchronize do
|
11
|
-
@results.size
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module DeepTest
|
2
|
-
class TestOperator < Telegraph::Operator
|
3
|
-
def self.listen(options = nil)
|
4
|
-
operator = super("localhost", 0, Telegraph::Switchboard.new)
|
5
|
-
DynamicTeardown.on_teardown { operator = shutdown }
|
6
|
-
options.server_port = operator.port if options
|
7
|
-
operator
|
8
|
-
end
|
9
|
-
|
10
|
-
def next_message
|
11
|
-
@switchboard.next_message(:timeout => 0.1)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module DeepTest
|
2
|
-
class ThreadAgent < Agent
|
3
|
-
attr_reader :work_done
|
4
|
-
|
5
|
-
def initialize(options)
|
6
|
-
super(0, options, ListenerList.new([]))
|
7
|
-
@thread = Thread.new { execute(StringIO.new, StringIO.new) }
|
8
|
-
@work_done = 0
|
9
|
-
end
|
10
|
-
|
11
|
-
def wait_until_done
|
12
|
-
Timeout.timeout(5) {@thread.join}
|
13
|
-
@thread.kill if @thread.alive?
|
14
|
-
end
|
15
|
-
|
16
|
-
def send_result(*args)
|
17
|
-
super
|
18
|
-
@work_done += 1
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'time'
|
2
|
-
|
3
|
-
module Timewarp
|
4
|
-
def self.freeze(time, &block)
|
5
|
-
frozen_time = time.is_a?(String) ? Time.parse(time) : time
|
6
|
-
control_timeline proc {frozen_time}, &block
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.control_timeline(timeline_proc)
|
10
|
-
(class <<Time; self; end).class_eval do
|
11
|
-
alias original_now now
|
12
|
-
define_method(:now) { timeline_proc.call }
|
13
|
-
end
|
14
|
-
yield
|
15
|
-
ensure
|
16
|
-
(class <<Time; self; end).class_eval do
|
17
|
-
alias now original_now
|
18
|
-
remove_method :original_now
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|