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