On Thu, May 9, 2019 at 10:08 PM Numan Siddique <[email protected]> wrote:
> > > On Thu, May 9, 2019 at 9:45 PM Lorenzo Bianconi < > [email protected]> wrote: > >> > > >> > > From: Numan Siddique <[email protected]> >> > > >> > > This patch cleans up the tests folder and removes the non OVN >> > > test files. >> > > >> > > Signed-off-by: Numan Siddique <[email protected]> >> >> Tested-by: Lorenzo Bianconi <[email protected]> >> > > Thanks Lorenzo for testing it out. I missed adding Tested-by tag in the > next version I posted, which is same as this one > except the subject line to trigger the bot to compile on ovn repo. > > Let's see what the bot says about the tests results. > I pushed this commit to the master of the ovn-org/ovn repo. Thanks Numan > Thanks > Numan > > >> >> > > --- >> > > TODO_SPLIT.rst | 5 +- >> > > tests/MockXenAPI.py | 117 - >> > > tests/aes128.at | 146 - >> > > tests/appctl.py | 74 - >> > > tests/auto-attach.at | 7 - >> > > tests/automake.mk | 301 +- >> > > tests/bfd.at | 1102 -- >> > > tests/bridge.at | 105 - >> > > tests/bundle.at | 454 - >> > > tests/cfm.at | 510 - >> > > tests/check-structs.at | 56 - >> > > tests/checkpatch.at | 330 - >> > > tests/classifier.at | 308 - >> > > tests/completion.at | 794 -- >> > > tests/daemon-py.at | 252 - >> > > tests/daemon.at | 228 - >> > > tests/dpctl.at | 87 - >> > > tests/dpdk/ring_client.c | 200 - >> > > tests/dpif-netdev.at | 422 - >> > > tests/file_name.at | 125 - >> > > tests/flowgen.py | 239 - >> > > tests/fuzz-regression-list.at | 23 - >> > > tests/fuzz-regression.at | 21 - >> > > .../flow_extract_fuzzer-5112775280951296 | Bin 54 -> 0 bytes >> > > .../flow_extract_fuzzer-5457710546944000 | Bin 227 -> 0 bytes >> > > .../json_parser_fuzzer-4790908707930112 | Bin 43 -> 0 bytes >> > > .../ofp_print_fuzzer-4584019764183040 | Bin 128 -> 0 bytes >> > > .../ofp_print_fuzzer-4730143510626304 | Bin 12 -> 0 bytes >> > > .../ofp_print_fuzzer-4854119633256448 | Bin 48 -> 0 bytes >> > > .../ofp_print_fuzzer-5070973479944192 | Bin 112 -> 0 bytes >> > > .../ofp_print_fuzzer-5072291707748352 | Bin 112 -> 0 bytes >> > > .../ofp_print_fuzzer-5147430386401280 | Bin 128 -> 0 bytes >> > > .../ofp_print_fuzzer-5168455220199424 | Bin 80 -> 0 bytes >> > > .../ofp_print_fuzzer-5190507327127552 | Bin 113 -> 0 bytes >> > > .../ofp_print_fuzzer-5204186701496320 | Bin 80 -> 0 bytes >> > > .../ofp_print_fuzzer-5394482341085184 | Bin 128 -> 0 bytes >> > > .../ofp_print_fuzzer-5395207246839808 | Bin 156 -> 0 bytes >> > > .../ofp_print_fuzzer-5647458888581120 | Bin 48 -> 0 bytes >> > > .../ofp_print_fuzzer-5674119268925440 | Bin 96 -> 0 bytes >> > > .../ofp_print_fuzzer-5674419757252608 | Bin 112 -> 0 bytes >> > > .../ofp_print_fuzzer-5677588436484096 | Bin 128 -> 0 bytes >> > > .../ofp_print_fuzzer-5706562554298368 | Bin 72 -> 0 bytes >> > > .../ofp_print_fuzzer-5722747668791296 | Bin 120 -> 0 bytes >> > > .../ofp_print_fuzzer-6285128790704128 | Bin 128 -> 0 bytes >> > > .../ofp_print_fuzzer-6470117922701312 | Bin 256 -> 0 bytes >> > > .../ofp_print_fuzzer-6502620041576448 | Bin 128 -> 0 bytes >> > > tests/heap.at | 13 - >> > > tests/idltest.ann | 9 - >> > > tests/idltest.ovsschema | 184 - >> > > tests/idltest2.ovsschema | 144 - >> > > tests/interface-reconfigure.at | 1052 -- >> > > tests/json.at | 412 - >> > > tests/jsonrpc-py.at | 46 - >> > > tests/jsonrpc.at | 29 - >> > > tests/lacp.at | 1013 -- >> > > tests/learn.at | 838 -- >> > > tests/lib.at | 9 - >> > > tests/library.at | 258 - >> > > tests/lockfile.at | 54 - >> > > tests/mcast-snooping.at | 218 - >> > > tests/mpls-xlate.at | 209 - >> > > tests/multipath.at | 582 - >> > > tests/netdev-type.at | 24 - >> > > tests/nsh.at | 823 -- >> > > tests/odp.at | 406 - >> > > tests/ofp-actions.at | 912 -- >> > > tests/ofp-errors.at | 232 - >> > > tests/ofp-print.at | 4060 ------ >> > > tests/ofp-util.at | 95 - >> > > tests/ofproto-dpif.at | 10668 >> ---------------- >> > > tests/ofproto.at | 6641 ---------- >> > > tests/ovs-ofctl.at | 3225 ----- >> > > tests/ovs-router.at | 83 - >> > > tests/ovs-vsctl.at | 1444 --- >> > > tests/ovs-vswitchd.at | 265 - >> > > tests/ovs-xapi-sync.at | 75 - >> > > tests/ovsdb-client.at | 173 - >> > > tests/ovsdb-cluster-testsuite.at | 10 - >> > > tests/ovsdb-cluster.at | 450 - >> > > tests/ovsdb-column.at | 13 - >> > > tests/ovsdb-condition.at | 970 -- >> > > tests/ovsdb-data.at | 928 -- >> > > tests/ovsdb-execution.at | 1140 -- >> > > tests/ovsdb-idl.at | 1924 --- >> > > tests/ovsdb-lock.at | 73 - >> > > tests/ovsdb-log.at | 388 - >> > > tests/ovsdb-monitor-sort.py | 85 - >> > > tests/ovsdb-monitor.at | 958 -- >> > > tests/ovsdb-mutation.at | 827 -- >> > > tests/ovsdb-query.at | 543 - >> > > tests/ovsdb-rbac.at | 375 - >> > > tests/ovsdb-replication.at | 190 - >> > > tests/ovsdb-row.at | 271 - >> > > tests/ovsdb-schema.at | 120 - >> > > tests/ovsdb-server.at | 1905 --- >> > > tests/ovsdb-table.at | 76 - >> > > tests/ovsdb-tool.at | 461 - >> > > tests/ovsdb-transaction.at | 410 - >> > > tests/ovsdb-trigger.at | 187 - >> > > tests/ovsdb-types.at | 167 - >> > > tests/ovsdb.at | 21 - >> > > tests/packet-type-aware.at | 1041 -- >> > > tests/pmd.at | 720 -- >> > > tests/reconnect.at | 1283 -- >> > > tests/rstp.at | 255 - >> > > tests/run-oftest | 94 - >> > > tests/run-ryu | 150 - >> > > tests/sendpkt.py | 96 - >> > > tests/stp.at | 662 - >> > > tests/system-dpdk-macros.at | 65 - >> > > tests/system-dpdk-testsuite.at | 25 - >> > > tests/system-dpdk.at | 234 - >> > > tests/system-interface.at | 65 - >> > > tests/system-kmod-testsuite.at | 3 - >> > > tests/system-layer3-tunnels.at | 99 - >> > > tests/system-offloads-testsuite.at | 25 - >> > > tests/system-offloads-traffic.at | 68 - >> > > tests/system-traffic.at | 5932 --------- >> > > tests/system-userspace-testsuite.at | 4 - >> > > tests/test-aa.c | 289 - >> > > tests/test-aes128.c | 71 - >> > > tests/test-atomic.c | 434 - >> > > tests/test-bitmap.c | 169 - >> > > tests/test-bundle.c | 268 - >> > > tests/test-byte-order.c | 55 - >> > > tests/test-ccmap.c | 292 - >> > > tests/test-classifier.c | 1909 --- >> > > tests/test-cmap.c | 652 - >> > > tests/test-conntrack.c | 278 - >> > > tests/test-csum.c | 321 - >> > > tests/test-daemon.py | 61 - >> > > tests/test-flows.c | 101 - >> > > tests/test-hash.c | 319 - >> > > tests/test-heap.c | 489 - >> > > tests/test-hindex.c | 327 - >> > > tests/test-hmap.c | 339 - >> > > tests/test-json.c | 159 - >> > > tests/test-json.py | 102 - >> > > tests/test-jsonrpc.c | 348 - >> > > tests/test-jsonrpc.py | 223 - >> > > tests/test-lib.c | 94 - >> > > tests/test-list.c | 245 - >> > > tests/test-lockfile.c | 318 - >> > > tests/test-multipath.c | 137 - >> > > tests/test-netflow.c | 304 - >> > > tests/test-netlink-conntrack.c | 186 - >> > > tests/test-odp.c | 256 - >> > > tests/test-ofpbuf.c | 66 - >> > > tests/test-ovsdb.c | 3139 ----- >> > > tests/test-ovsdb.py | 965 -- >> > > tests/test-packets.c | 186 - >> > > tests/test-random.c | 79 - >> > > tests/test-rcu.c | 51 - >> > > tests/test-reconnect.c | 307 - >> > > tests/test-reconnect.py | 231 - >> > > tests/test-rstp.c | 715 -- >> > > tests/test-sflow.c | 814 -- >> > > tests/test-sha1.c | 154 - >> > > tests/test-skiplist.c | 211 - >> > > tests/test-stopwatch.c | 195 - >> > > tests/test-stp.c | 672 - >> > > tests/test-stream.c | 46 - >> > > tests/test-stream.py | 32 - >> > > tests/test-strtok_r.c | 38 - >> > > tests/test-type-props.c | 70 - >> > > tests/test-unix-socket.c | 64 - >> > > tests/test-unix-socket.py | 59 - >> > > tests/test-unixctl.c | 186 - >> > > tests/test-unixctl.py | 90 - >> > > tests/test-util.c | 1230 -- >> > > tests/test-uuid.c | 42 - >> > > tests/test-vconn.c | 461 - >> > > tests/test-vlog.py | 50 - >> > > tests/testsuite.at | 56 - >> > > tests/tunnel-push-pop-ipv6.at | 394 - >> > > tests/tunnel-push-pop.at | 603 - >> > > tests/tunnel.at | 922 -- >> > > tests/unixctl-py.at | 192 - >> > > tests/uuid.at | 39 - >> > > tests/vconn.at | 22 - >> > > tests/vlog.at | 515 - >> > > tests/vtep-ctl.at | 948 -- >> > > 182 files changed, 6 insertions(+), 85999 deletions(-) >> > > delete mode 100644 tests/MockXenAPI.py >> > > delete mode 100644 tests/aes128.at >> > > delete mode 100644 tests/appctl.py >> > > delete mode 100644 tests/auto-attach.at >> > > delete mode 100644 tests/bfd.at >> > > delete mode 100644 tests/bridge.at >> > > delete mode 100644 tests/bundle.at >> > > delete mode 100644 tests/cfm.at >> > > delete mode 100644 tests/check-structs.at >> > > delete mode 100755 tests/checkpatch.at >> > > delete mode 100644 tests/classifier.at >> > > delete mode 100644 tests/completion.at >> > > delete mode 100644 tests/daemon-py.at >> > > delete mode 100644 tests/daemon.at >> > > delete mode 100644 tests/dpctl.at >> > > delete mode 100644 tests/dpdk/ring_client.c >> > > delete mode 100644 tests/dpif-netdev.at >> > > delete mode 100644 tests/file_name.at >> > > delete mode 100755 tests/flowgen.py >> > > delete mode 100644 tests/fuzz-regression-list.at >> > > delete mode 100644 tests/fuzz-regression.at >> > > delete mode 100644 >> tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 >> > > delete mode 100644 >> tests/fuzz-regression/flow_extract_fuzzer-5457710546944000 >> > > delete mode 100644 >> tests/fuzz-regression/json_parser_fuzzer-4790908707930112 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-4584019764183040 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-4730143510626304 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-4854119633256448 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5070973479944192 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5072291707748352 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5147430386401280 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5168455220199424 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5190507327127552 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5204186701496320 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5394482341085184 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5395207246839808 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5647458888581120 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5674119268925440 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5674419757252608 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5677588436484096 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5706562554298368 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-5722747668791296 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-6285128790704128 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-6470117922701312 >> > > delete mode 100644 >> tests/fuzz-regression/ofp_print_fuzzer-6502620041576448 >> > > delete mode 100644 tests/heap.at >> > > delete mode 100644 tests/idltest.ann >> > > delete mode 100644 tests/idltest.ovsschema >> > > delete mode 100644 tests/idltest2.ovsschema >> > > delete mode 100644 tests/interface-reconfigure.at >> > > delete mode 100644 tests/json.at >> > > delete mode 100644 tests/jsonrpc-py.at >> > > delete mode 100644 tests/jsonrpc.at >> > > delete mode 100644 tests/lacp.at >> > > delete mode 100644 tests/learn.at >> > > delete mode 100644 tests/lib.at >> > > delete mode 100644 tests/library.at >> > > delete mode 100644 tests/lockfile.at >> > > delete mode 100644 tests/mcast-snooping.at >> > > delete mode 100644 tests/mpls-xlate.at >> > > delete mode 100644 tests/multipath.at >> > > delete mode 100644 tests/netdev-type.at >> > > delete mode 100644 tests/nsh.at >> > > delete mode 100644 tests/odp.at >> > > delete mode 100644 tests/ofp-actions.at >> > > delete mode 100644 tests/ofp-errors.at >> > > delete mode 100644 tests/ofp-print.at >> > > delete mode 100644 tests/ofp-util.at >> > > delete mode 100644 tests/ofproto-dpif.at >> > > delete mode 100644 tests/ofproto.at >> > > delete mode 100644 tests/ovs-ofctl.at >> > > delete mode 100644 tests/ovs-router.at >> > > delete mode 100644 tests/ovs-vsctl.at >> > > delete mode 100644 tests/ovs-vswitchd.at >> > > delete mode 100644 tests/ovs-xapi-sync.at >> > > delete mode 100644 tests/ovsdb-client.at >> > > delete mode 100644 tests/ovsdb-cluster-testsuite.at >> > > delete mode 100644 tests/ovsdb-cluster.at >> > > delete mode 100644 tests/ovsdb-column.at >> > > delete mode 100644 tests/ovsdb-condition.at >> > > delete mode 100644 tests/ovsdb-data.at >> > > delete mode 100644 tests/ovsdb-execution.at >> > > delete mode 100644 tests/ovsdb-idl.at >> > > delete mode 100644 tests/ovsdb-lock.at >> > > delete mode 100644 tests/ovsdb-log.at >> > > delete mode 100755 tests/ovsdb-monitor-sort.py >> > > delete mode 100644 tests/ovsdb-monitor.at >> > > delete mode 100644 tests/ovsdb-mutation.at >> > > delete mode 100644 tests/ovsdb-query.at >> > > delete mode 100644 tests/ovsdb-rbac.at >> > > delete mode 100644 tests/ovsdb-replication.at >> > > delete mode 100644 tests/ovsdb-row.at >> > > delete mode 100644 tests/ovsdb-schema.at >> > > delete mode 100644 tests/ovsdb-server.at >> > > delete mode 100644 tests/ovsdb-table.at >> > > delete mode 100644 tests/ovsdb-tool.at >> > > delete mode 100644 tests/ovsdb-transaction.at >> > > delete mode 100644 tests/ovsdb-trigger.at >> > > delete mode 100644 tests/ovsdb-types.at >> > > delete mode 100644 tests/ovsdb.at >> > > delete mode 100644 tests/packet-type-aware.at >> > > delete mode 100644 tests/pmd.at >> > > delete mode 100644 tests/reconnect.at >> > > delete mode 100644 tests/rstp.at >> > > delete mode 100755 tests/run-oftest >> > > delete mode 100755 tests/run-ryu >> > > delete mode 100755 tests/sendpkt.py >> > > delete mode 100644 tests/stp.at >> > > delete mode 100644 tests/system-dpdk-macros.at >> > > delete mode 100644 tests/system-dpdk-testsuite.at >> > > delete mode 100644 tests/system-dpdk.at >> > > delete mode 100644 tests/system-interface.at >> > > delete mode 100644 tests/system-layer3-tunnels.at >> > > delete mode 100644 tests/system-offloads-testsuite.at >> > > delete mode 100644 tests/system-offloads-traffic.at >> > > delete mode 100644 tests/system-traffic.at >> > > delete mode 100644 tests/test-aa.c >> > > delete mode 100644 tests/test-aes128.c >> > > delete mode 100644 tests/test-atomic.c >> > > delete mode 100644 tests/test-bitmap.c >> > > delete mode 100644 tests/test-bundle.c >> > > delete mode 100644 tests/test-byte-order.c >> > > delete mode 100644 tests/test-ccmap.c >> > > delete mode 100644 tests/test-classifier.c >> > > delete mode 100644 tests/test-cmap.c >> > > delete mode 100644 tests/test-conntrack.c >> > > delete mode 100644 tests/test-csum.c >> > > delete mode 100644 tests/test-daemon.py >> > > delete mode 100644 tests/test-flows.c >> > > delete mode 100644 tests/test-hash.c >> > > delete mode 100644 tests/test-heap.c >> > > delete mode 100644 tests/test-hindex.c >> > > delete mode 100644 tests/test-hmap.c >> > > delete mode 100644 tests/test-json.c >> > > delete mode 100644 tests/test-json.py >> > > delete mode 100644 tests/test-jsonrpc.c >> > > delete mode 100644 tests/test-jsonrpc.py >> > > delete mode 100644 tests/test-lib.c >> > > delete mode 100644 tests/test-list.c >> > > delete mode 100644 tests/test-lockfile.c >> > > delete mode 100644 tests/test-multipath.c >> > > delete mode 100644 tests/test-netflow.c >> > > delete mode 100644 tests/test-netlink-conntrack.c >> > > delete mode 100644 tests/test-odp.c >> > > delete mode 100644 tests/test-ofpbuf.c >> > > delete mode 100644 tests/test-ovsdb.c >> > > delete mode 100644 tests/test-ovsdb.py >> > > delete mode 100644 tests/test-packets.c >> > > delete mode 100644 tests/test-random.c >> > > delete mode 100644 tests/test-rcu.c >> > > delete mode 100644 tests/test-reconnect.c >> > > delete mode 100644 tests/test-reconnect.py >> > > delete mode 100644 tests/test-rstp.c >> > > delete mode 100644 tests/test-sflow.c >> > > delete mode 100644 tests/test-sha1.c >> > > delete mode 100644 tests/test-skiplist.c >> > > delete mode 100644 tests/test-stopwatch.c >> > > delete mode 100644 tests/test-stp.c >> > > delete mode 100644 tests/test-stream.c >> > > delete mode 100644 tests/test-stream.py >> > > delete mode 100644 tests/test-strtok_r.c >> > > delete mode 100644 tests/test-type-props.c >> > > delete mode 100644 tests/test-unix-socket.c >> > > delete mode 100644 tests/test-unix-socket.py >> > > delete mode 100644 tests/test-unixctl.c >> > > delete mode 100644 tests/test-unixctl.py >> > > delete mode 100644 tests/test-util.c >> > > delete mode 100644 tests/test-uuid.c >> > > delete mode 100644 tests/test-vconn.c >> > > delete mode 100644 tests/test-vlog.py >> > > delete mode 100644 tests/tunnel-push-pop-ipv6.at >> > > delete mode 100644 tests/tunnel-push-pop.at >> > > delete mode 100644 tests/tunnel.at >> > > delete mode 100644 tests/unixctl-py.at >> > > delete mode 100644 tests/uuid.at >> > > delete mode 100644 tests/vconn.at >> > > delete mode 100644 tests/vlog.at >> > > delete mode 100644 tests/vtep-ctl.at >> > > >> > > diff --git a/TODO_SPLIT.rst b/TODO_SPLIT.rst >> > > index 29e7e5c75..5d32c4b9e 100644 >> > > --- a/TODO_SPLIT.rst >> > > +++ b/TODO_SPLIT.rst >> > > @@ -28,10 +28,7 @@ OVN/OVS Split To-do List >> > > Immediate tasks >> > > --------------------------- >> > > >> > > -* The tests/ directory currently contains a lot of irrelevant test >> files. Many >> > > - .at files can be outright removed since they test OVS code rather >> than OVN. >> > > - >> > > -* Similarly, there are likely many other unused files throughout the >> source tree >> > > +* There are likely many unused files throughout the source tree >> > > since they pertain to OVS rather than OVN. These can also be >> removed from the >> > > repo. >> > > >> > > diff --git a/tests/MockXenAPI.py b/tests/MockXenAPI.py >> > > deleted file mode 100644 >> > > index b8de4ee71..000000000 >> > > --- a/tests/MockXenAPI.py >> > > +++ /dev/null >> > > @@ -1,117 +0,0 @@ >> > > -# Copyright (c) 2011, 2012 Nicira, Inc. >> > > -# >> > > -# Licensed under the Apache License, Version 2.0 (the "License"); >> > > -# you may not use this file except in compliance with the License. >> > > -# You may obtain a copy of the License at: >> > > -# >> > > -# http://www.apache.org/licenses/LICENSE-2.0 >> > > -# >> > > -# Unless required by applicable law or agreed to in writing, software >> > > -# distributed under the License is distributed on an "AS IS" BASIS, >> > > -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or >> implied. >> > > -# See the License for the specific language governing permissions and >> > > -# limitations under the License. >> > > - >> > > -import re >> > > - >> > > - >> > > -def xapi_local(): >> > > - return Session() >> > > - >> > > - >> > > -class Session(object): >> > > - def __init__(self): >> > > - self.xenapi = XenAPI() >> > > - >> > > - >> > > -class Failure(Exception): >> > > - pass >> > > - >> > > - >> > > -class XenAPI(object): >> > > - def __init__(self): >> > > - self.network = Network() >> > > - self.pool = Pool() >> > > - self.VIF = VIF() >> > > - self.VM = VM() >> > > - >> > > - def login_with_password(self, unused_username, unused_password): >> > > - pass >> > > - >> > > - >> > > -class RecordRef(object): >> > > - def __init__(self, attrs): >> > > - self.attrs = attrs >> > > - >> > > - >> > > -class Table(object): >> > > - def __init__(self, records): >> > > - self.records = records >> > > - >> > > - def get_all(self): >> > > - return [RecordRef(rec) for rec in self.records] >> > > - >> > > - def get_all_records_where(self, condition): >> > > - k, v = re.match(r'field "([^"]*)"="([^"]*)"$', >> condition).groups() >> > > - d = {} >> > > - >> > > - # I'm sure that the keys used in the dictionary below are >> wrong >> > > - # but I can't find any documentation on get_all_records_where >> > > - # and this satisfies the current test case. >> > > - i = 0 >> > > - for rec in self.records: >> > > - if rec[k] == v: >> > > - d[i] = rec >> > > - i += 1 >> > > - return d >> > > - >> > > - def get_by_uuid(self, uuid): >> > > - recs = [rec for rec in self.records if rec["uuid"] == uuid] >> > > - if len(recs) != 1: >> > > - raise Failure("No record with UUID %s" % uuid) >> > > - return RecordRef(recs[0]) >> > > - >> > > - def get_record(self, record_ref): >> > > - return record_ref.attrs >> > > - >> > > - >> > > -class Network(Table): >> > > - __records = ({"uuid": "9b66c68b-a74e-4d34-89a5-20a8ab352d1e", >> > > - "bridge": "xenbr0", >> > > - "other_config": >> > > - {"vswitch-controller-fail-mode": "secure", >> > > - "nicira-bridge-id": "custom bridge ID"}}, >> > > - {"uuid": "e1c9019d-375b-45ac-a441-0255dd2247de", >> > > - "bridge": "xenbr1", >> > > - "other_config": >> > > - {"vswitch-disable-in-band": "true"}}) >> > > - >> > > - def __init__(self): >> > > - Table.__init__(self, Network.__records) >> > > - >> > > - >> > > -class Pool(Table): >> > > - __records = ({"uuid": "7a793edf-e5f4-4994-a0f9-cee784c0cda3", >> > > - "other_config": >> > > - {"vswitch-controller-fail-mode": "secure"}},) >> > > - >> > > - def __init__(self): >> > > - Table.__init__(self, Pool.__records) >> > > - >> > > - >> > > -class VIF(Table): >> > > - __records = ({"uuid": "6ab1b260-398e-49ba-827b-c7696108964c", >> > > - "other_config": >> > > - {"nicira-iface-id": "custom iface ID"}},) >> > > - >> > > - def __init__(self): >> > > - Table.__init__(self, VIF.__records) >> > > - >> > > - >> > > -class VM(Table): >> > > - __records = ({"uuid": "fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8", >> > > - "other_config": >> > > - {"nicira-vm-id": "custom vm ID"}},) >> > > - >> > > - def __init__(self): >> > > - Table.__init__(self, VM.__records) >> > > diff --git a/tests/aes128.at b/tests/aes128.at >> > > deleted file mode 100644 >> > > index 6876dd23a..000000000 >> > > --- a/tests/aes128.at >> > > +++ /dev/null >> > > @@ -1,146 +0,0 @@ >> > > -AT_BANNER([AES-128 unit tests]) >> > > - >> > > -m4_define([AES128_CHECK], >> > > - [AT_SETUP([$1]) >> > > - AT_KEYWORDS([aes128]) >> > > - AT_CHECK([ovstest test-aes128 $2 $3], [0], [$4 >> > > -], []) >> > > - AT_CLEANUP]) >> > > - >> > > -AES128_CHECK( >> > > - [wikipedia test vector 1], >> > > - [00010203050607080a0b0c0d0f101112], >> > > - [506812a45f08c889b97f5980038b8359], >> > > - [d8f532538289ef7d06b506a4fd5be9c9]) >> > > - >> > > -AES128_CHECK( >> > > - [wikipedia test vector 2], >> > > - [95A8EE8E89979B9EFDCBC6EB9797528D], >> > > - [4ec137a426dabf8aa0beb8bc0c2b89d6], >> > > - [d9b65d1232ba0199cdbd487b2a1fd646]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 0], >> > > - [10a58869d74be5a374cf867cfb473859], >> > > - [00000000000000000000000000000000], >> > > - [6d251e6944b051e04eaa6fb4dbf78465]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 1], >> > > - [caea65cdbb75e9169ecd22ebe6e54675], >> > > - [00000000000000000000000000000000], >> > > - [6e29201190152df4ee058139def610bb]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 2], >> > > - [a2e2fa9baf7d20822ca9f0542f764a41], >> > > - [00000000000000000000000000000000], >> > > - [c3b44b95d9d2f25670eee9a0de099fa3]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 3], >> > > - [b6364ac4e1de1e285eaf144a2415f7a0], >> > > - [00000000000000000000000000000000], >> > > - [5d9b05578fc944b3cf1ccf0e746cd581]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 4], >> > > - [64cf9c7abc50b888af65f49d521944b2], >> > > - [00000000000000000000000000000000], >> > > - [f7efc89d5dba578104016ce5ad659c05]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 5], >> > > - [47d6742eefcc0465dc96355e851b64d9], >> > > - [00000000000000000000000000000000], >> > > - [0306194f666d183624aa230a8b264ae7]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 6], >> > > - [3eb39790678c56bee34bbcdeccf6cdb5], >> > > - [00000000000000000000000000000000], >> > > - [858075d536d79ccee571f7d7204b1f67]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 7], >> > > - [64110a924f0743d500ccadae72c13427], >> > > - [00000000000000000000000000000000], >> > > - [35870c6a57e9e92314bcb8087cde72ce]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 8], >> > > - [18d8126516f8a12ab1a36d9f04d68e51], >> > > - [00000000000000000000000000000000], >> > > - [6c68e9be5ec41e22c825b7c7affb4363]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 9], >> > > - [f530357968578480b398a3c251cd1093], >> > > - [00000000000000000000000000000000], >> > > - [f5df39990fc688f1b07224cc03e86cea]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 10], >> > > - [da84367f325d42d601b4326964802e8e], >> > > - [00000000000000000000000000000000], >> > > - [bba071bcb470f8f6586e5d3add18bc66]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 11], >> > > - [e37b1c6aa2846f6fdb413f238b089f23], >> > > - [00000000000000000000000000000000], >> > > - [43c9f7e62f5d288bb27aa40ef8fe1ea8]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 12], >> > > - [6c002b682483e0cabcc731c253be5674], >> > > - [00000000000000000000000000000000], >> > > - [3580d19cff44f1014a7c966a69059de5]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 13], >> > > - [143ae8ed6555aba96110ab58893a8ae1], >> > > - [00000000000000000000000000000000], >> > > - [806da864dd29d48deafbe764f8202aef]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 14], >> > > - [b69418a85332240dc82492353956ae0c], >> > > - [00000000000000000000000000000000], >> > > - [a303d940ded8f0baff6f75414cac5243]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 15], >> > > - [71b5c08a1993e1362e4d0ce9b22b78d5], >> > > - [00000000000000000000000000000000], >> > > - [c2dabd117f8a3ecabfbb11d12194d9d0]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 16], >> > > - [e234cdca2606b81f29408d5f6da21206], >> > > - [00000000000000000000000000000000], >> > > - [fff60a4740086b3b9c56195b98d91a7b]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 17], >> > > - [13237c49074a3da078dc1d828bb78c6f], >> > > - [00000000000000000000000000000000], >> > > - [8146a08e2357f0caa30ca8c94d1a0544]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 18], >> > > - [3071a2a48fe6cbd04f1a129098e308f8], >> > > - [00000000000000000000000000000000], >> > > - [4b98e06d356deb07ebb824e5713f7be3]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 19], >> > > - [90f42ec0f68385f2ffc5dfc03a654dce], >> > > - [00000000000000000000000000000000], >> > > - [7a20a53d460fc9ce0423a7a0764c6cf2]) >> > > - >> > > -AES128_CHECK( >> > > - [NIST KAT ECBKeySbox128e vector 20], >> > > - [febd9a24d8b65c1c787d50a4ed3619a9], >> > > - [00000000000000000000000000000000], >> > > - [f4a70d8af877f9b02b4c40df57d45b17]) >> > > diff --git a/tests/appctl.py b/tests/appctl.py >> > > deleted file mode 100644 >> > > index b85b364fa..000000000 >> > > --- a/tests/appctl.py >> > > +++ /dev/null >> > > @@ -1,74 +0,0 @@ >> > > -# Copyright (c) 2012 Nicira, Inc. >> > > -# >> > > -# Licensed under the Apache License, Version 2.0 (the "License"); >> > > -# you may not use this file except in compliance with the License. >> > > -# You may obtain a copy of the License at: >> > > -# >> > > -# http://www.apache.org/licenses/LICENSE-2.0 >> > > -# >> > > -# Unless required by applicable law or agreed to in writing, software >> > > -# distributed under the License is distributed on an "AS IS" BASIS, >> > > -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or >> implied. >> > > -# See the License for the specific language governing permissions and >> > > -# limitations under the License. >> > > - >> > > -import argparse >> > > -import sys >> > > - >> > > -import ovs.daemon >> > > -import ovs.unixctl >> > > -import ovs.unixctl.client >> > > -import ovs.util >> > > -import ovs.vlog >> > > -from ovs.fatal_signal import signal_alarm >> > > - >> > > - >> > > -def connect_to_target(target): >> > > - error, str_result = ovs.unixctl.socket_name_from_target(target) >> > > - if error: >> > > - ovs.util.ovs_fatal(error, str_result) >> > > - else: >> > > - socket_name = str_result >> > > - >> > > - error, client = >> ovs.unixctl.client.UnixctlClient.create(socket_name) >> > > - if error: >> > > - ovs.util.ovs_fatal(error, "cannot connect to \"%s\"" % >> socket_name) >> > > - >> > > - return client >> > > - >> > > - >> > > -def main(): >> > > - parser = argparse.ArgumentParser(description="Python >> Implementation of" >> > > - " ovs-appctl.") >> > > - parser.add_argument("-t", "--target", default="ovs-vswitchd", >> > > - help="pidfile or socket to contact") >> > > - >> > > - parser.add_argument("command", metavar="COMMAND", >> > > - help="Command to run.") >> > > - parser.add_argument("argv", metavar="ARG", nargs="*", >> > > - help="Arguments to the command.") >> > > - parser.add_argument("-T", "--timeout", metavar="SECS", >> > > - help="wait at most SECS seconds for a >> response") >> > > - args = parser.parse_args() >> > > - >> > > - signal_alarm(int(args.timeout) if args.timeout else None) >> > > - >> > > - ovs.vlog.Vlog.init() >> > > - target = args.target >> > > - client = connect_to_target(target) >> > > - err_no, error, result = client.transact(args.command, args.argv) >> > > - client.close() >> > > - >> > > - if err_no: >> > > - ovs.util.ovs_fatal(err_no, "%s: transaction error" % target) >> > > - elif error is not None: >> > > - sys.stderr.write(error) >> > > - ovs.util.ovs_error(0, "%s: server returned an error" % >> target) >> > > - sys.exit(2) >> > > - else: >> > > - assert result is not None >> > > - sys.stdout.write(result) >> > > - >> > > - >> > > -if __name__ == '__main__': >> > > - main() >> > > diff --git a/tests/auto-attach.at b/tests/auto-attach.at >> > > deleted file mode 100644 >> > > index ded1126a8..000000000 >> > > --- a/tests/auto-attach.at >> > > +++ /dev/null >> > > @@ -1,7 +0,0 @@ >> > > -AT_BANNER([auto-attach unit tests]) >> > > - >> > > -AT_SETUP([auto-attach - packets]) >> > > -AT_KEYWORDS([auto-attach]) >> > > -AT_CHECK(ovstest test-aa, [], [ignore], [ignore]) >> > > - >> > > -AT_CLEANUP >> > > diff --git a/tests/automake.mk b/tests/automake.mk >> > > index 0d113ff0e..210aab964 100644 >> > > --- a/tests/automake.mk >> > > +++ b/tests/automake.mk >> > > @@ -4,15 +4,9 @@ EXTRA_DIST += \ >> > > $(SYSTEM_TESTSUITE_AT) \ >> > > $(SYSTEM_KMOD_TESTSUITE_AT) \ >> > > $(SYSTEM_USERSPACE_TESTSUITE_AT) \ >> > > - $(SYSTEM_OFFLOADS_TESTSUITE_AT) \ >> > > - $(SYSTEM_DPDK_TESTSUITE_AT) \ >> > > - $(OVSDB_CLUSTER_TESTSUITE_AT) \ >> > > $(TESTSUITE) \ >> > > $(SYSTEM_KMOD_TESTSUITE) \ >> > > $(SYSTEM_USERSPACE_TESTSUITE) \ >> > > - $(SYSTEM_OFFLOADS_TESTSUITE) \ >> > > - $(SYSTEM_DPDK_TESTSUITE) \ >> > > - $(OVSDB_CLUSTER_TESTSUITE) \ >> > > tests/atlocal.in \ >> > > $(srcdir)/package.m4 \ >> > > $(srcdir)/tests/testsuite \ >> > > @@ -25,127 +19,12 @@ COMMON_MACROS_AT = \ >> > > >> > > TESTSUITE_AT = \ >> > > tests/testsuite.at \ >> > > - tests/completion.at \ >> > > - tests/checkpatch.at \ >> > > - tests/library.at \ >> > > - tests/heap.at \ >> > > - tests/bundle.at \ >> > > - tests/classifier.at \ >> > > - tests/check-structs.at \ >> > > - tests/daemon.at \ >> > > - tests/daemon-py.at \ >> > > - tests/ofp-actions.at \ >> > > - tests/ofp-print.at \ >> > > - tests/ofp-util.at \ >> > > - tests/ofp-errors.at \ >> > > - tests/ovs-ofctl.at \ >> > > - tests/fuzz-regression.at \ >> > > - tests/fuzz-regression-list.at \ >> > > - tests/odp.at \ >> > > - tests/mpls-xlate.at \ >> > > - tests/multipath.at \ >> > > - tests/bfd.at \ >> > > - tests/cfm.at \ >> > > - tests/lacp.at \ >> > > - tests/lib.at \ >> > > - tests/learn.at \ >> > > - tests/vconn.at \ >> > > - tests/file_name.at \ >> > > - tests/aes128.at \ >> > > - tests/unixctl-py.at \ >> > > - tests/uuid.at \ >> > > - tests/json.at \ >> > > - tests/jsonrpc.at \ >> > > - tests/jsonrpc-py.at \ >> > > - tests/pmd.at \ >> > > - tests/tunnel.at \ >> > > - tests/tunnel-push-pop.at \ >> > > - tests/tunnel-push-pop-ipv6.at \ >> > > - tests/ovs-router.at \ >> > > - tests/lockfile.at \ >> > > - tests/reconnect.at \ >> > > - tests/ovs-vswitchd.at \ >> > > - tests/dpif-netdev.at \ >> > > - tests/dpctl.at \ >> > > - tests/ofproto-dpif.at \ >> > > - tests/bridge.at \ >> > > - tests/ofproto.at \ >> > > - tests/netdev-type.at \ >> > > - tests/ovsdb.at \ >> > > - tests/ovsdb-log.at \ >> > > - tests/ovsdb-types.at \ >> > > - tests/ovsdb-data.at \ >> > > - tests/ovsdb-column.at \ >> > > - tests/ovsdb-table.at \ >> > > - tests/ovsdb-row.at \ >> > > - tests/ovsdb-schema.at \ >> > > - tests/ovsdb-condition.at \ >> > > - tests/ovsdb-mutation.at \ >> > > - tests/ovsdb-query.at \ >> > > - tests/ovsdb-transaction.at \ >> > > - tests/ovsdb-execution.at \ >> > > - tests/ovsdb-trigger.at \ >> > > - tests/ovsdb-tool.at \ >> > > - tests/ovsdb-replication.at \ >> > > - tests/ovsdb-server.at \ >> > > - tests/ovsdb-client.at \ >> > > - tests/ovsdb-monitor.at \ >> > > - tests/ovsdb-idl.at \ >> > > - tests/ovsdb-lock.at \ >> > > - tests/ovsdb-rbac.at \ >> > > - tests/ovs-vsctl.at \ >> > > - tests/ovs-xapi-sync.at \ >> > > - tests/stp.at \ >> > > - tests/rstp.at \ >> > > - tests/interface-reconfigure.at \ >> > > - tests/vlog.at \ >> > > - tests/vtep-ctl.at \ >> > > - tests/auto-attach.at \ >> > > tests/ovn.at \ >> > > tests/ovn-northd.at \ >> > > tests/ovn-nbctl.at \ >> > > tests/ovn-sbctl.at \ >> > > tests/ovn-controller.at \ >> > > - tests/ovn-controller-vtep.at \ >> > > - tests/mcast-snooping.at \ >> > > - tests/packet-type-aware.at \ >> > > - tests/nsh.at >> > > - >> > > -EXTRA_DIST += $(FUZZ_REGRESSION_TESTS) >> > > -FUZZ_REGRESSION_TESTS = \ >> > > - tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 \ >> > > - tests/fuzz-regression/flow_extract_fuzzer-5457710546944000 \ >> > > - tests/fuzz-regression/json_parser_fuzzer-4790908707930112 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-4584019764183040 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-4730143510626304 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-4854119633256448 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5070973479944192 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5072291707748352 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5147430386401280 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5168455220199424 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5190507327127552 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5204186701496320 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5394482341085184 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5395207246839808 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5647458888581120 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5674119268925440 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5674419757252608 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5677588436484096 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5706562554298368 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-5722747668791296 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-6285128790704128 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-6470117922701312 \ >> > > - tests/fuzz-regression/ofp_print_fuzzer-6502620041576448 >> > > -$(srcdir)/tests/fuzz-regression-list.at: tests/automake.mk >> > > - $(AM_V_GEN)for name in $(FUZZ_REGRESSION_TESTS); do \ >> > > - basename=`echo $$name | sed 's,^.*/,,'`; \ >> > > - echo "TEST_FUZZ_REGRESSION([$$basename])"; \ >> > > - done > [email protected] && mv [email protected] $@ >> > > - >> > > -OVSDB_CLUSTER_TESTSUITE_AT = \ >> > > - tests/ovsdb-cluster-testsuite.at \ >> > > - tests/ovsdb-execution.at \ >> > > - tests/ovsdb-cluster.at >> > > + tests/ovn-controller-vtep.at >> > > >> > > SYSTEM_KMOD_TESTSUITE_AT = \ >> > > tests/system-common-macros.at \ >> > > @@ -160,21 +39,7 @@ SYSTEM_USERSPACE_TESTSUITE_AT = \ >> > > >> > > SYSTEM_TESTSUITE_AT = \ >> > > tests/system-common-macros.at \ >> > > - tests/system-ovn.at \ >> > > - tests/system-layer3-tunnels.at \ >> > > - tests/system-traffic.at \ >> > > - tests/system-interface.at >> > > - >> > > -SYSTEM_OFFLOADS_TESTSUITE_AT = \ >> > > - tests/system-common-macros.at \ >> > > - tests/system-offloads-traffic.at \ >> > > - tests/system-offloads-testsuite.at >> > > - >> > > -SYSTEM_DPDK_TESTSUITE_AT = \ >> > > - tests/system-common-macros.at \ >> > > - tests/system-dpdk-macros.at \ >> > > - tests/system-dpdk-testsuite.at \ >> > > - tests/system-dpdk.at >> > > + tests/system-ovn.at >> > > >> > > check_SCRIPTS += tests/atlocal >> > > >> > > @@ -182,9 +47,6 @@ TESTSUITE = $(srcdir)/tests/testsuite >> > > TESTSUITE_PATCH = $(srcdir)/tests/testsuite.patch >> > > SYSTEM_KMOD_TESTSUITE = $(srcdir)/tests/system-kmod-testsuite >> > > SYSTEM_USERSPACE_TESTSUITE = >> $(srcdir)/tests/system-userspace-testsuite >> > > -SYSTEM_OFFLOADS_TESTSUITE = $(srcdir)/tests/system-offloads-testsuite >> > > -SYSTEM_DPDK_TESTSUITE = $(srcdir)/tests/system-dpdk-testsuite >> > > -OVSDB_CLUSTER_TESTSUITE = $(srcdir)/tests/ovsdb-cluster-testsuite >> > > DISTCLEANFILES += tests/atconfig tests/atlocal >> > > >> > > AUTOTEST_PATH = >> ovs/utilities:ovs/vswitchd:ovs/ovsdb:ovs/vtep:tests:$(PTHREAD_WIN32_DIR_DLL):$(SSL_DIR):controller-vtep:northd:utilities:controller >> > > @@ -267,18 +129,6 @@ check-valgrind: all $(valgrind_wrappers) >> $(check_DATA) >> > > @echo >> '----------------------------------------------------------------------' >> > > @echo 'Valgrind output can be found in >> tests/testsuite.dir/*/valgrind.*' >> > > @echo >> '----------------------------------------------------------------------' >> > > -check-ovsdb-cluster-valgrind: all $(valgrind_wrappers) $(check_DATA) >> > > - $(SHELL) '$(OVSDB_CLUSTER_TESTSUITE)' -C tests >> CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' >> AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS) -j1 >> > > - @echo >> > > - @echo >> '----------------------------------------------------------------------' >> > > - @echo 'Valgrind output can be found in >> tests/ovsdb-cluster-testsuite.dir/*/valgrind.*' >> > > - @echo >> '----------------------------------------------------------------------' >> > > -check-kernel-valgrind: all $(valgrind_wrappers) $(check_DATA) >> > > - $(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests >> VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d >> $(TESTSUITEFLAGS) -j1 >> > > - @echo >> > > - @echo >> '----------------------------------------------------------------------' >> > > - @echo 'Valgrind output can be found in >> tests/system-kmod-testsuite.dir/*/valgrind.*' >> > > - @echo >> '----------------------------------------------------------------------' >> > > check-userspace-valgrind: all $(valgrind_wrappers) $(check_DATA) >> > > $(SHELL) '$(SYSTEM_USERSPACE_TESTSUITE)' -C tests >> VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d >> $(TESTSUITEFLAGS) -j1 >> > > @echo >> > > @@ -288,49 +138,18 @@ check-userspace-valgrind: all >> $(valgrind_wrappers) $(check_DATA) >> > > check-helgrind: all $(valgrind_wrappers) $(check_DATA) >> > > -$(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true >> VALGRIND='$(HELGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d >> $(TESTSUITEFLAGS) >> > > >> > > - >> > > -# OFTest support. >> > > - >> > > -check-oftest: all >> > > - $(AM_V_at)srcdir='$(srcdir)' $(SHELL) >> $(srcdir)/tests/run-oftest >> > > -EXTRA_DIST += tests/run-oftest >> > > - >> > > -# Ryu support. >> > > -check-ryu: all >> > > - $(AM_V_at)srcdir='$(srcdir)' $(SHELL) $(srcdir)/tests/run-ryu >> > > -EXTRA_DIST += tests/run-ryu >> > > - >> > > # Run kmod tests. Assume kernel modules has been installed or linked >> into the kernel >> > > check-kernel: all >> > > set $(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests >> AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ >> > > "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && >> "$$@" --recheck) >> > > >> > > -# Testing the out of tree Kernel module >> > > -check-kmod: all >> > > - $(MAKE) modules_install >> > > - modprobe -r -a vport-geneve vport-gre vport-lisp vport-stt >> vport-vxlan openvswitch >> > > - $(MAKE) check-kernel >> > > - >> > > -check-system-userspace: all >> > > + check-system-userspace: all >> > > set $(SHELL) '$(SYSTEM_USERSPACE_TESTSUITE)' -C tests >> AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ >> > > "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && >> "$$@" --recheck) >> > > >> > > -check-offloads: all >> > > - set $(SHELL) '$(SYSTEM_OFFLOADS_TESTSUITE)' -C tests >> AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ >> > > - "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && >> "$$@" --recheck) >> > > - >> > > -check-dpdk: all >> > > - set $(SHELL) '$(SYSTEM_DPDK_TESTSUITE)' -C tests >> AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ >> > > - "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && >> "$$@" --recheck) >> > > - >> > > clean-local: >> > > test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests >> --clean >> > > >> > > -# Run OVSDB cluster tests. >> > > -check-ovsdb-cluster: all >> > > - set $(SHELL) '$(OVSDB_CLUSTER_TESTSUITE)' -C tests >> AUTOTEST_PATH='$(AUTOTEST_PATH)'; \ >> > > - "$$@" $(TESTSUITEFLAGS) -j1 || (test X'$(RECHECK)' = Xyes && >> "$$@" --recheck) >> > > - >> > > AUTOTEST = $(AUTOM4TE) --language=autotest >> > > > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
