History log of /openbsd-current/regress/sbin/route/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.33 19-Oct-2023 anton

Add missing removal of network interfaces in regress cleanup targets.
Reducing the risk tests conflicting with each other.

ok bluhm@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.32 30-Mar-2019 yasuoka

tweak comment lines.


# 1.31 30-Mar-2019 asou

Add 5 test cases for
- adding default route with "deault"
- adding default route with "0.0.0.0/0"
- adding 0.0.0.0 route
- adding routes with mask
ok yasuoka


Revision tags: OPENBSD_6_4_BASE
# 1.30 04-Jun-2018 kn

Allow specifying binary via ROUTE

OK bluhm jca


Revision tags: OPENBSD_6_3_BASE
# 1.29 20-Feb-2018 mpi

Test that removing a mpath RTF_CLONING route entry do not remove the
RTF_CACHED entry of a sibling RTF_CLONING entry.


# 1.28 19-Feb-2018 mpi

Correctly diff the output of test 32.


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


Revision tags: OPENBSD_6_5_BASE
# 1.32 30-Mar-2019 yasuoka

tweak comment lines.


# 1.31 30-Mar-2019 asou

Add 5 test cases for
- adding default route with "deault"
- adding default route with "0.0.0.0/0"
- adding 0.0.0.0 route
- adding routes with mask
ok yasuoka


Revision tags: OPENBSD_6_4_BASE
# 1.30 04-Jun-2018 kn

Allow specifying binary via ROUTE

OK bluhm jca


Revision tags: OPENBSD_6_3_BASE
# 1.29 20-Feb-2018 mpi

Test that removing a mpath RTF_CLONING route entry do not remove the
RTF_CACHED entry of a sibling RTF_CLONING entry.


# 1.28 19-Feb-2018 mpi

Correctly diff the output of test 32.


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


# 1.30 04-Jun-2018 kn

Allow specifying binary via ROUTE

OK bluhm jca


Revision tags: OPENBSD_6_3_BASE
# 1.29 20-Feb-2018 mpi

Test that removing a mpath RTF_CLONING route entry do not remove the
RTF_CACHED entry of a sibling RTF_CLONING entry.


# 1.28 19-Feb-2018 mpi

Correctly diff the output of test 32.


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


# 1.29 20-Feb-2018 mpi

Test that removing a mpath RTF_CLONING route entry do not remove the
RTF_CACHED entry of a sibling RTF_CLONING entry.


# 1.28 19-Feb-2018 mpi

Correctly diff the output of test 32.


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


# 1.28 19-Feb-2018 mpi

Correctly diff the output of test 32.


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


# 1.27 14-Feb-2018 mpi

Make sure lo5 is tied to rdomain 5.


# 1.26 12-Feb-2018 mpi

Always destroy all interfaces before starting a new test.

This should make tests following a failing test pass.


# 1.25 12-Feb-2018 mpi

Pass '-inet6' to the default loopback before each test.

In order to have reproducible tests route entries must not stay. Otherwise
the 'Use' counter keeps growing.


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


# 1.24 08-Feb-2018 mpi

Test that next-hop L2 caches are cloned using the correct MPATH route.

ok jmatthew@, claudio@, dlg@


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test


Revision tags: OPENBSD_6_2_BASE
# 1.23 12-Sep-2017 mpi

Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time. Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.


# 1.22 05-Sep-2017 mpi

Test that MPATH routes with different priorities are insterted respecting
their priority order.


# 1.21 05-Sep-2017 mpi

Document new test.


# 1.20 05-Sep-2017 mpi

Test that all MPATH routes attached to an interface are taken down when
the link state change.

Issue reported by gerhard@


# 1.19 10-Aug-2017 mpi

Use "! cmd" for commands that are expected to fail.

Suggested by bluhm@


# 1.18 10-Aug-2017 mpi

Test that 'route change' has no effect on a RTF_LOCAL route.


# 1.17 27-Jul-2017 mpi

Work around for rttest8 that some times fail due to a reference count
race in the kernel.


# 1.16 07-Jul-2017 bluhm

Remove all references to "make depend" from regress.


# 1.15 30-May-2017 bluhm

Remove the .INTERRUPT target, it prevented to terminate the test
with Ctrl-C in some situations.


Revision tags: OPENBSD_6_1_BASE
# 1.14 01-Sep-2016 mpi

Test that RTF_LOCAL routes cannot be deleted from userland.


# 1.13 31-Aug-2016 claudio

Add a bunch of regress test to verify the RTM_CHANGE behaviour of mpath
and non-mpath routes. Some of the tests currently fail.


# 1.12 31-Aug-2016 claudio

Document what the various test here do. With mpi@


# 1.11 22-Aug-2016 mpi

Use a reachable next hop for test 13, which make it fail as it should.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 02-Dec-2015 mpi

Check that routes to the same destination but with a different priority
are inserted in the right order.

Currently failing with ART.


# 1.9 30-Nov-2015 mpi

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@


# 1.8 27-Oct-2015 mpi

Check that RTM_GET works without RTAX_GATEWAY argument for multipath
route entries.


# 1.7 31-Aug-2015 mpi

No more connected routes on loopback interfaces.

Those tests now pass even if you have an AUTOCONF'd address on your machine.

Note that the global list of prefixes is *still* not rtable ID aware.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 02-Mar-2015 claudio

Add three extra checks that test proper removal of the P flag. Currently 2 fail


# 1.5 26-Nov-2014 mpi

Add 3 regression tests for "route change" dealing with -ifp, -ifa and
-mtu. Triggered by a report from Florian Riehm on tech@.

Note that two of these tests are using IPv6 addresses and expose another
bug with ::1. I'll deal with this afterward unless someone else(tm)
fixes it.


Revision tags: OPENBSD_5_6_BASE
# 1.4 31-May-2014 claudio

Add a basic test for RTM_CHANGE


# 1.3 18-Apr-2014 claudio

Introduce some regress tests against our routing table. At least that way
there is a chance that we do not break the network stack even more.
These regress tests already found a few issues.
The framework is ugly and does not properly recover from failures. Somebody
more skilled can come up with a better solution.
mpi@, blambert@ and sthen@ support this


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.2 29-Dec-2004 david

define REGRESS_ROOT_TARGETS for tests that require root privileges


# 1.1 24-Sep-2004 markus

simple route regress test