Skip to content

Commit

Permalink
Make the quick test more CI friendly
Browse files Browse the repository at this point in the history
In CI, we don't have the whole machine, so limit to 2 instances and
don't fail if we can't get exclusive access to a CPU.
  • Loading branch information
talex5 committed Jul 6, 2021
1 parent 47a7515 commit 5f00f86
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
(deps ../src/bun.exe short.exe)
(locks core)
(action
(progn
(with-stdout-to
"shorttest-output"
(bash "! timeout 2s ../src/bun.exe -vv ./short.exe"))
(bash "grep 'Crashes found!' shorttest-output")
(cat shorttest-output))))
(setenv AFL_NO_AFFINITY 1
(setenv AFL_SKIP_CPUFREQ 1
(progn
(with-stdout-to
"shorttest-output"
(bash "! timeout 2s ../src/bun.exe -vv --max-cores=2 ./short.exe"))
(bash "grep 'Crashes found!' shorttest-output")
(cat shorttest-output))))))

(rule
(alias longtest)
Expand Down

0 comments on commit 5f00f86

Please sign in to comment.