2017-10-27 22:45:31 +04:00
|
|
|
(jbuild_version 1)
|
|
|
|
|
|
|
|
(executables
|
2018-01-24 15:48:25 +04:00
|
|
|
((names (test_p2p_socket
|
|
|
|
test_p2p_pool
|
2017-10-27 22:45:31 +04:00
|
|
|
test_p2p_io_scheduler))
|
2017-11-27 09:13:12 +04:00
|
|
|
(libraries (tezos-base
|
2018-01-22 22:08:18 +04:00
|
|
|
tezos-p2p-services
|
|
|
|
tezos-p2p
|
2017-11-27 09:13:12 +04:00
|
|
|
lwt.unix
|
2017-11-27 09:13:12 +04:00
|
|
|
test_lib))
|
2017-11-13 17:29:28 +04:00
|
|
|
(flags (:standard -w -9-32
|
|
|
|
-linkall
|
|
|
|
-safe-string
|
2017-11-27 09:13:12 +04:00
|
|
|
-open Tezos_base__TzPervasives
|
2018-01-22 22:08:18 +04:00
|
|
|
-open Tezos_p2p_services
|
|
|
|
-open Tezos_p2p))))
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
(alias
|
|
|
|
((name buildtest)
|
2018-01-24 15:48:25 +04:00
|
|
|
(deps (test_p2p_socket.exe
|
|
|
|
test_p2p_pool.exe
|
2017-10-27 22:45:31 +04:00
|
|
|
test_p2p_io_scheduler.exe))))
|
|
|
|
|
|
|
|
(alias
|
2018-01-24 15:48:25 +04:00
|
|
|
((name runtest_p2p_socket)
|
|
|
|
(action (run ${exe:test_p2p_socket.exe} -v))))
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
(alias
|
2018-01-24 15:48:25 +04:00
|
|
|
((name runtest_p2p_pool)
|
|
|
|
(action (run ${exe:test_p2p_pool.exe} --clients 10 --repeat 5 -v))))
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
(alias
|
|
|
|
((name runtest_p2p_io_scheduler)
|
|
|
|
(action (run ${exe:test_p2p_io_scheduler.exe}
|
|
|
|
--delay 5 --clients 8
|
|
|
|
--max-upload-speed 262144 ;; 1 << 18 = 256kB
|
|
|
|
--max-download-speed 1048576 ;; 1 << 20 = 1MB
|
|
|
|
))))
|
|
|
|
|
|
|
|
(alias
|
|
|
|
((name runtest)
|
2018-01-24 15:48:25 +04:00
|
|
|
(deps ((alias runtest_p2p_socket)
|
|
|
|
(alias runtest_p2p_pool)
|
2017-10-27 22:45:31 +04:00
|
|
|
(alias runtest_p2p_io_scheduler)))))
|
2017-11-27 09:13:12 +04:00
|
|
|
|
|
|
|
(alias
|
|
|
|
((name runtest_indent)
|
|
|
|
(deps ((glob_files *.ml) (glob_files *.mli)))
|
2018-01-27 14:21:41 +04:00
|
|
|
(action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${^}))))
|