Skip to content

Commit

Permalink
Merge pull request xapi-project#59 from gaborigloi/stress
Browse files Browse the repository at this point in the history
Fix stress test
  • Loading branch information
edwintorok authored May 18, 2018
2 parents 0805174 + b75d4d9 commit 9db42f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ release:
test:
jbuilder runtest

stresstest:
jbuilder build @stresstest

install:
jbuilder install

Expand Down
6 changes: 3 additions & 3 deletions test/jbuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(executable
((name suite)
((name stress)
(libraries
(alcotest
alcotest-lwt
local_lib))
))

(alias
((name runtest)
(deps (suite.exe))
((name stresstest)
(deps (stress.exe (files_recursively_in .)))
(action (run ${<}))))
4 changes: 2 additions & 2 deletions test/suite.ml → test/stress.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ let test_huge_input switch () =
let raw = `anything in
let server = "" in
let export_name = "" in
Nbd_input.raw ~extent_reader:"../../../test/dummy_extent_reader.py" raw server export_name >>= fun _ ->
Nbd_input.raw ~extent_reader:"./dummy_extent_reader.py" raw server export_name >>= fun _ ->
Lwt.return_unit

let test_set =
let t = Alcotest_lwt.test_case in
[ t "VDI with a large allocated extent list" `Quick test_huge_input ]

let () =
Alcotest.run "suite"
Alcotest.run "stress test"
[ "Nbd_input", test_set ]

0 comments on commit 9db42f1

Please sign in to comment.