-
Notifications
You must be signed in to change notification settings - Fork 2
/
batch-test.rb
180 lines (172 loc) · 4.79 KB
/
batch-test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
require "fileutils"
engines = %w{
camunda7_0_0
camunda7_1_0
camunda7_2_0
camunda7_3_0
activiti5_15_1
activiti5_16_3
activiti5_17_0
activiti5_18_0
activiti5_19_0
jbpm__6_0_1
jbpm__6_1_0
jbpm__6_2_0
jbpm__6_3_0
}
processes = %w{
ExclusiveGateway
ExclusiveGateway_Default
ExclusiveGatewayMixed
ExclusiveDiverging_InclusiveConverging
InclusiveGateway
InclusiveGateway_Default
InclusiveDiverging_ExclusiveConverging
ParallelGateway
ParallelDiverging_ExclusiveConverging
ParallelDiverging_InclusiveConverging
ParallelGateway_TrueParallelism
ComplexGateway
EventBasedGateway_Signals
EventBasedGateway_Timer
CallActivity_Process
CallActivity_GlobalTask
MultiInstance_SubProcess
MultiInstance_Task
MultiInstance_Sequential
MultiInstance_NoneBehavior
MultiInstance_OneBehavior
MultiInstance_AllBehavior
MultiInstance_ComplexBehavior
MultiInstance_Parallel
Loop_SubProcess
Loop_Task
Loop_ConditionOnly
Loop_Maximum
Loop_NoIteration_TestBeforeFalse
Loop_NoIteration_TestBeforeTrue
SubProcess
Transaction
AdHocSubProcess_Sequential
AdHocSubProcess_Parallel
Token_Cardinality_Explicit
Token_Cardinality_Default
Token_Cardinality_Split_Default
Token_Cardinality_Split_Explicit
SendTask
ReceiveTask
ReceiveTask_Instantiate
Cancel_Event
Compensation_BoundaryEvent_SubProcess
Compensation_EndEvent_SubProcess
Compensation_EndEvent_TopLevel
Compensation_IntermediateEvent
Compensation_StartEvent_EventSubProcess
Compensation_TriggeredByCancel
Conditional_BoundaryEvent_SubProcess_Interrupting
Conditional_BoundaryEvent_SubProcess_NonInterrupting
Conditional_IntermediateEvent
Conditional_StartEvent_EventSubProcess_Interrupting
Conditional_StartEvent_EventSubProcess_NonInterrupting
Error_BoundaryEvent_SubProcess_Interrupting
Error_BoundaryEvent_Transaction_Interrupting
Error_EndEvent_TopLevel
Error_StartEvent_EventSubProcess_Interrupting
Escalation_BoundaryEvent_SubProcess_Interrupting
Escalation_BoundaryEvent_SubProcess_NonInterrupting
Escalation_EndEvent_SubProcess
Escalation_EndEvent_TopLevel
Escalation_IntermediateThrowEvent
Escalation_StartEvent_EventSubProcess_Interrupting
Escalation_StartEvent_EventSubProcess_NonInterrupting
Link_Event
Message_StartEvent
Message_IntermediateEvent
Message_EndEvent
Signal_EndEvent_SubProcess
Signal_BoundaryEvent_SubProcess_NonInterrupting
Signal_BoundaryEvent_SubProcess_Interrupting
Signal_IntermediateEvent_ThrowAndCatch
Signal_StartEvent
Signal_EndEvent
Signal_IntermediateEvent
Signal_StartEvent_EventSubProcess_Interrupting
Signal_StartEvent_EventSubProcess_NonInterrupting
Terminate_Event
Timer_IntermediateEvent
Timer_BoundaryEvent_SubProcess_NonInterrupting
Timer_BoundaryEvent_SubProcess_Interrupting
Timer_BoundaryEvent_SubProcess_Interrupting_Activity
Timer_StartEvent_EventSubProcess_NonInterrupting
Timer_StartEvent_EventSubProcess_Interrupting
Timer_IntermediateTimeCycleEvent
Timer_BoundaryEvent_SubProcess_TimeCycle
Timer_StartEvent_TimeCycle_EventSubProcess_NonInterrupting
Multiple_Parallel_IntermediateEvent
Multiple_IntermediateEvent_ThrowFirstEventDefinition
Multiple_IntermediateEvent_ThrowLastEventDefinition
Multiple_IntermediateThrowEvent
Multiple_IntermediateEvent_MissingEvent
Multiple_Parallel_IntermediateEvent_MissingEvent
EventDefinitionRef_Error_EndEvent_TopLevel
EventDefinitionRef_Error_StartEvent_EventSubProcess_Interrupting
EventDefinitionRef_Signal_BoundaryEvent_SubProcess_NonInterrupting
EventDefinitionRef_Timer_IntermediateEvent
Lanes
Participant
SequenceFlow
SequenceFlow_Conditional
SequenceFlow_ConditionalDefault
SequenceFlow_ConditionalDefault_Normal
ParallelGateway_Conditions
ExclusiveDiverging_ParallelConverging
InclusiveDiverging_ParallelConverging
LoopTask_NegativeLoopMaximum
MultiInstanceTask_NegativeLoopCardinality
Token_StartQuantity_Two
Token_StartQuantity_Zero
Token_CompletionQuantity_Zero
DataObject_ReadWrite_String
Property_ReadWrite_String
WCP01_Sequence
WCP02_ParallelSplit
WCP03_Synchronization
WCP04_ExclusiveChoice
WCP05_SimpleMerge
WCP06_MultiChoice_InclusiveGateway
WCP06_MultiChoice_Implicit
WCP06_MultiChoice_ComplexGateway
WCP07_StructuredSynchronizingMerge
WCP08_MultiMerge
WCP09_Structured_Discriminator_ComplexGateway
WCP09_Structured_Discriminator_MultiInstance
WCP10_ArbitraryCycles
WCP11_ImplicitTermination
WCP12_MultipleInstancesWithoutSynchronization
WCP13_MultipleInstancesWithAPrioriDesignTimeKnowledge
WCP14_MultipleInstancesWithAPrioriRuntimeKnowledge
WCP16_DeferredChoice
WCP17_InterleavedParallelRouting
WCP19_CancelTask
WCP20_CancelCaseError
WCP20_CancelCaseCancel
WCP20_CancelCaseTerminate
}
Dir.glob("results").each do |f|
FileUtils.rm_r f
end
def self.run(cmd)
puts cmd
puts `bash #{cmd}`
end
run "docker-remove-all-stopped-containers"
i = 1
max = engines.size * processes.size
engines.each do |engine|
processes.each do |process|
puts "#{i}/#{max} - #{Time.now}"
run "betsy-#{engine} #{process}"
run "docker-remove-all-stopped-containers"
i += 1
end
end