]> Sergey Matveev's repositories - ndproxy.git/blob - TESTING.TXT
Compatibility with FreeBSD 14
[ndproxy.git] / TESTING.TXT
1
2 Unit testing on a single vlan:
3
4 on the same vlan than the BSD server, choose a host (W7):
5 link local address of this host is:
6 fe80::6d19:b3a3:b8cb:6f1b
7 global address of this host is:
8 2a01:e35:8aae:bc60:a159:8fcf:7043:3278
9
10 on the BSD server, use the host addresses:
11
12   compile with debug messages
13   sysctl -w net.inet6.ndproxyconf_uplink_interface=em0
14   sysctl -w net.inet6.ndproxyconf_downlink_mac_address=00:01:23:45:67:89
15   sysctl -w net.inet6.ndproxyconf_uplink_ipv6_addresses='2a01:e35:8aae:bc60:a159:8fcf:7043:3278;fe80::6d19:b3a3:b8cb:6f1b;::'
16   ifconfig em0 promisc
17   tail -f /var/log/messages
18
19 unit testing from the host (W7):
20
21   - 1st test:
22     ping 2a01:e35:8aae:bc60::29ff:fe9d:1234
23     netsh interface ipv6 show neig
24     and find 2a01:e35:8aae:bc60::29ff:fe9d:1234
25
26   - 2nd test:
27     netsh interface ipv6 show interface
28     ping -6 fe80::1:1:1:3%28
29     netsh interface ipv6 show neig
30     and find fe80::1:1:1:3%28
31
32 ------------------------------------------------------------
33
34 Testing with poudriere on AWS
35 create an EC2 instance of a FreeBSD version newer than the latest poudriere target to test
36 add a ZFS volume dedicated to poudriere
37 add DEVELOPER=yes to /etc/make.conf
38 zpool create ztank /dev/xbd1
39 update /usr/local/etc/poudriere.conf:
40 root@ip-172-30-1-13:/usr/local/etc # diff poudriere.conf poudriere.conf.orig
41   12c12
42   < ZPOOL=ztank
43   ---
44   > #ZPOOL=tank
45   30c30
46   < FREEBSD_HOST=ftp://ftp.freebsd.org
47   ---
48   > FREEBSD_HOST=_PROTO_://_CHANGE_THIS_
49   48c48
50   < USE_PORTLINT=yes
51   ---
52   > USE_PORTLINT=no
53   82c82
54   < DISTFILES_CACHE=/root/distfiles
55   ---
56   > DISTFILES_CACHE=/usr/ports/distfiles
57 mkdir /root/distfiles
58 portsnap fetch
59 portsnap extract
60 poudriere ports -c -F -f none -M /root/ports -p local
61 cp -rp /usr/ports /root/ports
62 rm -rf /root/ports/net/ndproxy
63 cd ~/git/ndproxy/usr/ports/net ; shar `find . -print` > /tmp/ndproxy.shar
64 cd /root/ports/net/ndproxy
65 sh /tmp/ndproxy.shar
66
67 Creation of jails for poudriere:
68 - by the network:
69   poudriere jail -c -j 12amd64 -v head@321619 -a amd64 -m svn+https (uname -a to get the svn release)
70 - with a local repository:
71   - repository downloaded with svnlite:
72     mkdir /root/svn
73     cd /root/svn
74     svnlite co -r 344112 https://svn.freebsd.org/base/head src
75     cd src
76     poudriere jail -c -j 13i386 -b -a i386 -m src=/root/svn/src -J 112 >& /tmp/poud-c-13i386.log &
77   - repository downloaded with http:
78     mkdir /root/svn
79     fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/11.1-RELEASE/src.txz
80     unxz src.txz
81     tar xf src.tar
82     poudriere jail -c -j 111i386 -b -a i386 -m src=/root/svn/src -J 112 >& /tmp/poud-c-111i386.log &
83 Many jails can be created at the same time: (note that -b means "make build-world")
84 poudriere jail -c -j 13amd64 -b -a amd64 -m src=/root/bsd-current/src -J 112 > /tmp/poud-c-13amd64.log &
85 poudriere jail -c -j 13i386 -b -a i386 -m src=/root/bsd-current/src -J 112 >& /tmp/poud-c-13i386.log &
86 poudriere jail -c -j 12amd64 -b -a amd64 -m src=/root/bsd-12.0/src -J 112 >& /tmp/poud-c-12amd64.log &
87 poudriere jail -c -j 12i386 -b -a i386 -m src=/root/bsd-12.0/src -J 112 >& /tmp/poud-c-12i386.log &
88
89 Many tests can be done at the same time:
90 poudriere testport -j 13amd64 -p local -o net/ndproxy -J 112 > ~/testport-13amd64.log &
91 poudriere testport -j 13i386 -p local -o net/ndproxy -J 112 > ~/testport-13i386.log &
92 poudriere testport -j 12amd64 -p local -o net/ndproxy -J 112 > ~/testport-12amd64.log &
93 poudriere testport -j 12i386 -p local -o net/ndproxy -J 112 > ~/testport-12i386.log &
94
95 For CURRENT, the jail version must be less recent than the host one (see uname -a to get the host svn revision version).