Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions ocaml/libs/log/test/log_test.t
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
$ ./log_test.exe | sed -re 's/[0-9]+T[0-9:.]+Z//'
[|error||0 |main|backtrace] Raised Invalid_argument("index out of bounds")
[|error||0 |main|backtrace] 1/4 log_test.exe Raised at file ocaml/libs/log/test/log_test.ml, line 7
[|error||0 |main|backtrace] 2/4 log_test.exe Called from file fun.ml, line 33
[|error||0 |main|backtrace] 3/4 log_test.exe Called from file fun.ml, line 38
[|error||0 |main|backtrace] 4/4 log_test.exe Called from file ocaml/libs/log/test/log_test.ml, line 18
[|error||0 |main|backtrace]
[| warn||0 |main|log_test.ml] Got exception: Invalid_argument("index out of bounds")
The log_test executable produces a backtrace on purpose, on x86_64, and with
the datetimes removed, it looks like this:
$ ./log_test.exe | sed -re 's/[0-9]+T[0-9:.]+Z//'
[|error||0 |main|backtrace] Raised Invalid_argument("index out of bounds")
[|error||0 |main|backtrace] 1/4 log_test.exe Raised at file ocaml/libs/log/test/log_test.ml, line 7
[|error||0 |main|backtrace] 2/4 log_test.exe Called from file fun.ml, line 33
[|error||0 |main|backtrace] 3/4 log_test.exe Called from file fun.ml, line 38
[|error||0 |main|backtrace] 4/4 log_test.exe Called from file ocaml/libs/log/test/log_test.ml, line 18
[|error||0 |main|backtrace]
[| warn||0 |main|log_test.ml] Got exception: Invalid_argument("index out of bounds")

and on aarch64:
[|error||0 |main|backtrace] Raised Invalid_argument("index out of bounds")
[|error||0 |main|backtrace] 1/3 log_test.exe Raised at file ocaml/libs/log/test/log_test.ml, line 7
[|error||0 |main|backtrace] 2/3 log_test.exe Called from file fun.ml, line 38
[|error||0 |main|backtrace] 3/3 log_test.exe Called from file ocaml/libs/log/test/log_test.ml, line 18
[|error||0 |main|backtrace]
[| warn||0 |main|log_test.ml] Got exception: Invalid_argument("index out of bounds")

$ ./log_test.exe | grep "main|backtrace" -c | xargs -I _ sh -c "test 5 -eq _ || test 6 -eq _"
$ ./log_test.exe | grep "log_test.exe" -c | xargs -I _ sh -c "test 3 -eq _ || test 4 -eq _"
$ ./log_test.exe | grep "ocaml/libs/log/test/log_test.ml" -c
2
31 changes: 4 additions & 27 deletions ocaml/tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
test_cluster_host test_cluster test_pusb test_network_sriov
test_client test_valid_ref_list suite_alcotest_server
test_vm_placement test_vm_helpers test_repository test_repository_helpers
test_ref test_xapi_helpers test_vm_group test_host_driver_helpers
test_ref test_xapi_helpers test_vm_group
test_livepatch test_rpm test_updateinfo test_storage_smapiv1_wrapper test_storage_quicktest test_observer
test_pool_periodic_update_sync test_pkg_mgr test_tar_ext test_pool_repository))
(libraries
Expand Down Expand Up @@ -50,7 +50,6 @@
xapi_xenopsd
xapi_cli_server
xapi_database
xapi_host_driver_helpers
xapi_internal
xml-light2
)
Expand Down Expand Up @@ -78,19 +77,18 @@
)
)


(tests
(names test_vm_helpers test_vm_placement test_network_sriov test_vdi_cbt test_bounded_psq test_auth_cache
test_clustering test_pusb test_daemon_manager test_repository test_repository_helpers
test_livepatch test_rpm test_updateinfo test_pool_periodic_update_sync test_pkg_mgr
test_xapi_helpers test_tar_ext test_pool_repository test_host_driver_helpers)
test_xapi_helpers test_tar_ext test_pool_repository)
(package xapi)
(modes exe)
(modules test_vm_helpers test_vm_placement test_network_sriov test_vdi_cbt test_bounded_psq test_auth_cache
test_event test_clustering test_cluster_host test_cluster test_pusb
test_daemon_manager test_repository test_repository_helpers test_livepatch test_rpm
test_updateinfo test_pool_periodic_update_sync test_pkg_mgr
test_xapi_helpers test_tar_ext test_pool_repository test_host_driver_helpers)
test_xapi_helpers test_tar_ext test_pool_repository)
(libraries
alcotest
bos
Expand Down Expand Up @@ -121,13 +119,13 @@
xapi-types
xapi_cli_server
xapi_database
xapi_host_driver_helpers
xapi_internal
xml-light2
yojson
)
(preprocess (per_module ((pps ppx_deriving_rpc) Test_cluster_host)))
)

(test
(name test_storage_smapiv1_wrapper)
(modes exe)
Expand Down Expand Up @@ -171,27 +169,6 @@
(action (run ./check-no-xenctrl %{x}))
)

(rule
(alias runtest)
(package xapi)
(targets
.note.XenServer
.note.Linux
.note.gnu.build-id
.note.XenServerTwo
)
(deps
(:asm
test_data/xenserver.s
test_data/xenserver_two_notes.s
test_data/linux.s
test_data/buildid.s
)
(:script test_data/gen_notes.sh)
)
(action (bash "%{script} %{asm}"))
)

(env (_ (env-vars (XAPI_TEST 1))))

; disassemble, but without sources
Expand Down
9 changes: 0 additions & 9 deletions ocaml/tests/test_data/buildid.s

This file was deleted.

22 changes: 0 additions & 22 deletions ocaml/tests/test_data/gen_notes.sh

This file was deleted.

9 changes: 0 additions & 9 deletions ocaml/tests/test_data/linux.s

This file was deleted.

9 changes: 0 additions & 9 deletions ocaml/tests/test_data/xenserver.s

This file was deleted.

20 changes: 0 additions & 20 deletions ocaml/tests/test_data/xenserver_two_notes.s

This file was deleted.

89 changes: 0 additions & 89 deletions ocaml/tests/test_host_driver_helpers.ml

This file was deleted.

Empty file.
7 changes: 0 additions & 7 deletions ocaml/util/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@
)
(wrapped false)
)

(library
(name xapi_host_driver_helpers)
(modules xapi_host_driver_helpers)
(libraries yojson angstrom xapi-stdext-unix)
(wrapped false)
)
Loading
Loading