(jbuild_version 1)

(executables
 ((names (test_state
          test_locator))
  (libraries (tezos-base
              tezos-storage
              tezos-protocol-updater
              tezos-shell
              tezos-embedded-protocol-demo
              tezos-test-helpers))
  (flags (:standard -w -9-32
                    -safe-string
                    -open Tezos_base__TzPervasives
                    -open Tezos_test_helpers
                    -open Tezos_storage
                    -open Tezos_protocol_updater
                    -open Tezos_shell))))

(alias
 ((name buildtest)
  (deps (test_state.exe
         test_locator.exe))))

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

(alias
 ((name runtest_locator)
  (action (run ${exe:test_locator.exe} --no-bench))))

(alias
 ((name runbench_locator)
  (action (run ${exe:test_locator.exe}))))

(alias
 ((name runtest)
  (deps ((alias runtest_state)
         (alias runtest_locator)))))

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