Skip to content

Commit c03f527

Browse files
committed
zkapps_examples/big_circuits: move to Alcotest
1 parent 14140ea commit c03f527

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/app/zkapps_examples/test/big_circuit/big_circuit.ml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
(** Testing
2+
-------
3+
4+
Component: Zkapps_examples
5+
Subject: Test zkapp big circuit
6+
Invocation: \
7+
dune exec src/app/zkapps_examples/test/big_circuit/big_circuit.exe
8+
*)
9+
110
open Transaction_snark_tests.Util
211
open Core_kernel
312
open Mina_base
@@ -133,7 +142,7 @@ let zkapp_command : Zkapp_command.t =
133142
; memo
134143
}
135144

136-
let () =
145+
let test_big_circuit () =
137146
Ledger.with_ledger ~depth:ledger_depth ~f:(fun ledger ->
138147
let (_ : _) =
139148
Ledger.get_or_create_account ledger account_id
@@ -145,3 +154,8 @@ let () =
145154

146155
Async.Thread_safe.block_on_async_exn (fun _ ->
147156
check_zkapp_command_with_merges_exn ledger [ zkapp_command ] ) )
157+
158+
let () =
159+
let open Alcotest in
160+
run "Big circuit test"
161+
[ ("big_circuit", [ test_case "Big_circuit" `Quick test_big_circuit ]) ]

src/app/zkapps_examples/test/big_circuit/dune

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
(name big_circuit)
33
(libraries
44
;; opam libraries
5+
alcotest
56
async
67
async_kernel
78
async_unix
89
base
910
core
1011
core_kernel
11-
ppx_inline_test.config
1212
yojson
1313
;; local libraries
1414
cache_dir
1515
currency
1616
data_hash_lib
1717
genesis_constants
18-
pasta_bindings
1918
kimchi_backend
2019
kimchi_pasta
2120
kimchi_pasta.basic
@@ -25,12 +24,13 @@
2524
mina_numbers
2625
mina_state
2726
mina_transaction_logic
27+
pasta_bindings
2828
pickles
2929
pickles.backend
3030
pickles_base
3131
pickles_types
32-
random_oracle_input
3332
random_oracle
33+
random_oracle_input
3434
sgn
3535
signature_lib
3636
snark_params

0 commit comments

Comments
 (0)