summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-09-20 13:01:01 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-09-20 13:01:01 +0200
commit0d1b3c4c0e3261d1d4261e9aeb9975a01d0ff2f9 (patch)
tree05ae8b12a4ce9c7173ae5c3365f4f63367c2eb4c /filter/test.conf
parent2dec1e3471385ea191862c8fe85d76a8e47410de (diff)
downloadbird-0d1b3c4c0e3261d1d4261e9aeb9975a01d0ff2f9.tar
bird-0d1b3c4c0e3261d1d4261e9aeb9975a01d0ff2f9.zip
Changes print-like filter commands to use a log instead of a stderr.
And extends the log subsystem to better handle that.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/test.conf b/filter/test.conf
index c25f11a..40fff19 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -130,6 +130,7 @@ function __test2()
function test_pxset(prefix set pxs)
{
+ print pxs;
print " must be true: ", 10.0.0.0/8 ~ pxs, ",", 10.0.0.0/10 ~ pxs, ",", 10.0.0.0/12 ~ pxs, ",",
20.0.0.0/24 ~ pxs, ",", 20.0.40.0/24 ~ pxs, ",", 20.0.0.0/26 ~ pxs, ",",
20.0.100.0/26 ~ pxs, ",", 20.0.0.0/28 ~ pxs, ",", 20.0.255.0/28 ~ pxs;
@@ -212,6 +213,7 @@ string s;
", false: ", RTS_BGP ~ [RTS_STATIC, RTS_DEVICE];
ps = [(1,(one+one)), (3,4)..(4,8), (5,*), (6,3..6)];
+ print "Pair set: ", ps;
print "Testing pair set, true: ", pp ~ ps, " ", (3,5) ~ ps, " ", (4,1) ~ ps, " ", (5,4) ~ ps, " ", (5,65535) ~ ps, " ", (6,4) ~ ps;
print "Testing pair set, false: ", (3,3) ~ ps, " ", (4,9) ~ ps, " ", (4,65535) ~ ps, " ", (6,2) ~ ps, " ", (6,(6+one)) ~ ps, " ", ((one+6),2) ~ ps ;