includeos / IncludeOS

A minimal, resource efficient unikernel for cloud services
https://includeos.github.io/
Apache License 2.0
4.93k stars 365 forks source link

Fix unittests #2250

Closed alfreb closed 5 months ago

alfreb commented 5 months ago

I get this output:

[100%] Linking CXX executable bin/router_test
[100%] Built target dhcp
[100%] Built target tcp_benchmark
[100%] Built target ip6
[100%] Built target napt_test
[100%] Built target unit_liveupdate
[100%] Built target path_mtu_discovery
[100%] Built target interfaces_test
[100%] Built target ip4
[100%] Built target router_test
Test project /home/alfreb/IncludeOS/build_tests
      Start  1: memdisk_test
 1/84 Test  #1: memdisk_test .....................   Passed    0.00 sec
      Start  2: path_test
 2/84 Test  #2: path_test ........................***Exception: SegFault  1.07 sec
      Start  3: vfs_test
 3/84 Test  #3: vfs_test .........................   Passed    0.00 sec
      Start  4: unit_fs
 4/84 Test  #4: unit_fs ..........................   Passed    0.00 sec
      Start  5: unit_fat
 5/84 Test  #5: unit_fat .........................   Passed    0.00 sec
      Start  6: mac_addr_test
 6/84 Test  #6: mac_addr_test ....................   Passed    0.00 sec
      Start  7: usernet
 7/84 Test  #7: usernet ..........................   Passed    0.00 sec
      Start  8: virtio_queue
 8/84 Test  #8: virtio_queue .....................   Passed    0.00 sec
      Start  9: arch
 9/84 Test  #9: arch .............................   Passed    0.00 sec
      Start 10: block
10/84 Test #10: block ............................   Passed    0.00 sec
      Start 11: cpuid
11/84 Test #11: cpuid ............................   Passed    0.00 sec
      Start 12: memmap_test
12/84 Test #12: memmap_test ......................***Failed    0.00 sec
      Start 13: test_memory
13/84 Test #13: test_memory ......................   Passed    0.81 sec
      Start 14: os_test
14/84 Test #14: os_test ..........................***Failed    0.00 sec
      Start 15: rng
15/84 Test #15: rng ..............................   Passed    0.00 sec
      Start 16: service_stub_test
16/84 Test #16: service_stub_test ................   Passed    0.00 sec
      Start 17: test_hal
17/84 Test #17: test_hal .........................   Passed    0.00 sec
      Start 18: unit_events
18/84 Test #18: unit_events ......................   Passed    0.01 sec
      Start 19: unit_liveupdate
19/84 Test #19: unit_liveupdate ..................   Passed    0.00 sec
      Start 20: unit_timers
20/84 Test #20: unit_timers ......................   Passed    0.00 sec
      Start 21: x86_paging
21/84 Test #21: x86_paging .......................***Exception: SegFault  1.06 sec
      Start 22: addr_test
22/84 Test #22: addr_test ........................   Passed    0.00 sec
      Start 23: bufstore
23/84 Test #23: bufstore .........................   Passed    0.07 sec
      Start 24: checksum
24/84 Test #24: checksum .........................   Passed    0.07 sec
      Start 25: cidr
25/84 Test #25: cidr .............................***Exception: SegFault  1.06 sec
      Start 26: conntrack_test
26/84 Test #26: conntrack_test ...................   Passed    0.00 sec
      Start 27: cookie_test
27/84 Test #27: cookie_test ......................   Passed    0.01 sec
      Start 28: dhcp
28/84 Test #28: dhcp .............................***Exception: SegFault  1.06 sec
      Start 29: dhcp_message_test
29/84 Test #29: dhcp_message_test ................   Passed    0.00 sec
      Start 30: error
30/84 Test #30: error ............................   Passed    0.00 sec
      Start 31: http_header_test
31/84 Test #31: http_header_test .................   Passed    0.00 sec
      Start 32: http_status_codes_test
32/84 Test #32: http_status_codes_test ...........   Passed    0.00 sec
      Start 33: http_method_test
33/84 Test #33: http_method_test .................   Passed    0.00 sec
      Start 34: http_mime_types_test
34/84 Test #34: http_mime_types_test .............   Passed    0.00 sec
      Start 35: http_time_test
35/84 Test #35: http_time_test ...................   Passed    0.00 sec
      Start 36: http_version_test
36/84 Test #36: http_version_test ................   Passed    0.00 sec
      Start 37: interfaces_test
37/84 Test #37: interfaces_test ..................   Passed    0.00 sec
      Start 38: ip4_addr
38/84 Test #38: ip4_addr .........................   Passed    0.00 sec
      Start 39: ip4
39/84 Test #39: ip4 ..............................   Passed    0.00 sec
      Start 40: ip4_packet_test
40/84 Test #40: ip4_packet_test ..................   Passed    0.00 sec
      Start 41: ip6
41/84 Test #41: ip6 ..............................   Passed    0.00 sec
      Start 42: ip6_addr
42/84 Test #42: ip6_addr .........................   Passed    0.00 sec
      Start 43: ip6_addr_list_test
43/84 Test #43: ip6_addr_list_test ...............   Passed    0.00 sec
      Start 44: ip6_packet_test
44/84 Test #44: ip6_packet_test ..................   Passed    0.00 sec
      Start 45: nat_test
45/84 Test #45: nat_test .........................   Passed    0.00 sec
      Start 46: napt_test
46/84 Test #46: napt_test ........................   Passed    0.00 sec
      Start 47: packets
47/84 Test #47: packets ..........................   Passed    0.00 sec
      Start 48: path_mtu_discovery
48/84 Test #48: path_mtu_discovery ...............   Passed    0.00 sec
      Start 49: port_util_test
49/84 Test #49: port_util_test ...................   Passed    0.01 sec
      Start 50: router_test
50/84 Test #50: router_test ......................***Failed    0.00 sec
      Start 51: socket
51/84 Test #51: socket ...........................   Passed    0.00 sec
      Start 52: stateful_addr_test
52/84 Test #52: stateful_addr_test ...............   Passed    0.00 sec
      Start 53: tcp_benchmark
53/84 Test #53: tcp_benchmark ....................   Passed    0.05 sec
      Start 54: tcp_packet_test
54/84 Test #54: tcp_packet_test ..................***Exception: SegFault  1.06 sec
      Start 55: tcp_read_buffer_test
55/84 Test #55: tcp_read_buffer_test .............   Passed    0.00 sec
      Start 56: tcp_read_request_test
56/84 Test #56: tcp_read_request_test ............   Passed    0.00 sec
      Start 57: tcp_write_queue
57/84 Test #57: tcp_write_queue ..................   Passed    0.00 sec
      Start 58: fd_map_test
58/84 Test #58: fd_map_test ......................   Passed    0.00 sec
      Start 59: inet_test
59/84 Test #59: inet_test ........................   Passed    0.00 sec
      Start 60: unit_fd
60/84 Test #60: unit_fd ..........................   Passed    0.00 sec
      Start 61: base64
61/84 Test #61: base64 ...........................   Passed    0.00 sec
      Start 62: bitops
62/84 Test #62: bitops ...........................   Passed    0.00 sec
      Start 63: buddy_alloc_test
63/84 Test #63: buddy_alloc_test .................   Passed    0.20 sec
      Start 64: config
64/84 Test #64: config ...........................   Passed    0.00 sec
      Start 65: crc32
65/84 Test #65: crc32 ............................   Passed    0.00 sec
      Start 66: delegate
66/84 Test #66: delegate .........................   Passed    0.00 sec
      Start 67: fixed_list_alloc_test
67/84 Test #67: fixed_list_alloc_test ............***Exception: SegFault  1.06 sec
      Start 68: fixed_queue
68/84 Test #68: fixed_queue ......................   Passed    0.00 sec
      Start 69: fixed_vector
69/84 Test #69: fixed_vector .....................   Passed    0.00 sec
      Start 70: isotime
70/84 Test #70: isotime ..........................   Passed    0.00 sec
      Start 71: logger_test
71/84 Test #71: logger_test ......................***Failed    0.03 sec
      Start 72: membitmap
72/84 Test #72: membitmap ........................   Passed    0.00 sec
      Start 73: path_to_regex_parse
73/84 Test #73: path_to_regex_parse ..............   Passed    0.00 sec
      Start 74: path_to_regex_options
74/84 Test #74: path_to_regex_options ............   Passed    0.00 sec
      Start 75: percent_encoding_test
75/84 Test #75: percent_encoding_test ............   Passed    0.00 sec
      Start 76: pmr_alloc_test
76/84 Test #76: pmr_alloc_test ...................   Passed    0.02 sec
      Start 77: ringbuffer
77/84 Test #77: ringbuffer .......................   Passed    0.00 sec
      Start 78: sha1
78/84 Test #78: sha1 .............................   Passed    0.01 sec
      Start 79: statman
79/84 Test #79: statman ..........................   Passed    0.00 sec
      Start 80: syslogd_test
80/84 Test #80: syslogd_test .....................   Passed    0.00 sec
      Start 81: syslog_facility_test
81/84 Test #81: syslog_facility_test .............   Passed    0.00 sec
      Start 82: test_lstack_nodes
82/84 Test #82: test_lstack_nodes ................***Exception: SegFault  1.06 sec
      Start 83: test_lstack_merging
83/84 Test #83: test_lstack_merging ..............***Exception: SegFault  1.06 sec
      Start 84: test_lstack_nomerge
84/84 Test #84: test_lstack_nomerge ..............***Exception: SegFault  1.06 sec

85% tests passed, 13 tests failed out of 84

Total Test time (real) =  11.04 sec

The following tests FAILED:
      2 - path_test (SEGFAULT)
     12 - memmap_test (Failed)
     14 - os_test (Failed)
     21 - x86_paging (SEGFAULT)
     25 - cidr (SEGFAULT)
     28 - dhcp (SEGFAULT)
     50 - router_test (Failed)
     54 - tcp_packet_test (SEGFAULT)
     67 - fixed_list_alloc_test (SEGFAULT)
     71 - logger_test (Failed)
     82 - test_lstack_nodes (SEGFAULT)
     83 - test_lstack_merging (SEGFAULT)
     84 - test_lstack_nomerge (SEGFAULT)
Errors while running CTest
Output from these tests are in: /home/alfreb/IncludeOS/build_tests/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
MagnusS commented 5 months ago

Would you like to merge this as is or fix the tests first? I think it should be fine to merge, as it's currently a separate nix file so it doesn't interfere with the regular build.