File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 48
48
; :pages pages/workload
49
49
:register register/workload})
50
50
51
+ (def standard-workloads
52
+ " The workload names we run for test-all by default."
53
+ (keys workloads))
54
+
51
55
(def workload-options
52
56
" For each workload, a map of workload options to all the values that option
53
57
supports."
145
149
:exceptions (checker/unhandled-exceptions )
146
150
:workload (:checker workload)})})))
147
151
152
+ (defn all-tests
153
+ " Takes parsed CLI options and constructs a sequence of test options, by
154
+ combining all workloads and nemeses."
155
+ [opts]
156
+ (let [nemeses (if-let [n (:nemesis opts)] [n] standard-nemeses)
157
+ workloads (if-let [w (:workload opts)] [w] standard-workloads)
158
+ counts (range (:test-count opts))]
159
+ (->> (for [i counts, n nemeses, w workloads]
160
+ (assoc opts :nemesis n :workload w))
161
+ (map tarantool-test))))
162
+
148
163
(defn -main
149
164
" Handles command line arguments."
150
165
[& args]
151
166
(cli/run! (merge (cli/single-test-cmd {:test-fn tarantool-test
152
167
:opt-spec cli-opts})
168
+ (cli/test-all-cmd {:test-fn all-tests
169
+ :opt-spec cli-opts})
153
170
(cli/serve-cmd ))
154
171
args))
You can’t perform that action at this time.
0 commit comments