(jbuild_version 1)

(executables
 ((names (test_context
          test_state
          test_store))
  (libraries (tezos-base
              tezos-storage
              tezos-node-shell
              tezos-embedded-protocol-demo
              tezos-embedded-protocol-alpha
              tezos-embedded-protocol-genesis
              test_lib))
  (flags (:standard -w -9-32
                    -safe-string
                    -open Tezos_base__TzPervasives
                    -open Tezos_storage
                    -open Tezos_node_shell))))

(alias
 ((name buildtest)
  (deps (test_context.exe
         test_state.exe
         test_store.exe))))

(alias
 ((name runtest_context)
  (action (run ${exe:test_context.exe}))))

(alias
 ((name runtest_state)
  (action (run ${exe:test_state.exe}))))

(alias
 ((name runtest_store)
  (action (run ${exe:test_store.exe}))))

(alias
 ((name runtest)
  (deps ((alias runtest_context)
         (alias runtest_state)
         (alias runtest_store)))))

(alias
 ((name runtest_indent)
  (deps ((glob_files *.ml) (glob_files *.mli)))
  (action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))