1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-27 09:32:18 +03:00
juvix/test/Rust/RiscZero.hs
Jan Mas Rovira 7d2a59cc9f
Add precondition to run tests (#2887)
Some tests require external dependencies, such as `rustc`, `wasmer`,
`run_cairo_vm.sh`, etc. If one does not have some of these available on
their computer, then the test suite will have a lot of failed tests with
the same fail message `X is not on $PATH`. This can be a bit ditracting
and it slows running the test suite.
I've introduced some preconditions that are checked before the actual
test suite so that if some of these commands are not on path then the
tests that need them are not run. Instead, you get a single failed test
(for each of the subtrees that failed the precondition).
2024-07-15 10:02:48 +02:00

11 lines
299 B
Haskell

module Rust.RiscZero where
import Base
import Rust.RiscZero.Base
import Rust.RiscZero.Positive qualified as P
allTests :: IO TestTree
allTests =
withPrecondition precondition . return $
sequentialTestGroup "Juvix to RISC0 Rust compilation tests" AllFinish [P.allTests, P.allTestsNoOptimize]