Skip to content

Commit

Permalink
REMOVE ME: run focused STM Sys tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed Apr 19, 2024
1 parent eee90de commit 658e8cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dune
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
(name ci)
(package multicoretests)
(deps
(alias_rec %{env:DUNE_CI_ALIAS=runtest})))
; (alias_rec focusedtest)))
;(alias_rec %{env:DUNE_CI_ALIAS=runtest})
(alias_rec focusedtest)))

; @focusedtest
; repeat a single test a couple of times
Expand All @@ -36,7 +36,7 @@

; To change the test to repeat, change the source of the `copy`:
(rule
(copy src/io/lin_tests_domain.exe focusedtest.exe))
(copy src/sys/stm_tests.exe focusedtest.exe))

(rule
(alias focusedtest)
Expand All @@ -49,7 +49,7 @@
(write-file hoped "")
(write-file failed-runs "")
(bash
"for i in `seq 20`; do echo Starting $i-th run; if ! ./focusedtest.exe -v ; then echo $i >> failed-runs; fi; done")
"for i in `seq 10`; do echo Starting $i-th run; if ! ./focusedtest.exe -v ; then echo $i >> failed-runs; fi; done")
; edit the previous line to focus on a particular seed
(diff failed-runs hoped)))))

Expand All @@ -64,6 +64,6 @@
(write-file hoped "")
(write-file failed-runs "")
(run cmd /q /c
"for %G in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) do (echo Starting %G-th run && focusedtest.exe -v || echo %G >> failed-runs)")
"for %G in (1,2,3,4,5,6,7,8,9,10) do (echo Starting %G-th run && focusedtest.exe -v || echo %G >> failed-runs)")
; edit the previous line to focus on a particular seed
(diff failed-runs hoped)))))

0 comments on commit 658e8cf

Please sign in to comment.