📄 notes
字号:
NOTES on the "in vitro" Pluto tests===================================These can be used by themselves, or run as pluto-unit-* via "makecheck". I will now describe how they can be run outside of "makecheck".You should add `pwd`/bin to PATH. It contains the testing scripts.bin/CONFIG specifies configuration details for all the scripts. At aminimum, you must specify where to find the binaries for pluto andwhack (you can set environment variables rather than editingbin/CONFIG).Since the testing uses information from the Domain Name System, acouple of zones must be added to the name server: test.zone andtest.rev.zone. Each of these zone files includes comments as to whatchanges need to be made to /etc/named.conf.The only script that needs superuser privileges is bin/ifconfigs. Thissets up aliases to interface lo for testing. It can also be used toremove these aliases. Since the setup persists, "ifconfigs up" onlyneeds to be redone after a system reboots (or something else drastic).bin/doauto runs all current tests. Output is captured insubdirectories under log/. The whack portion of the output iscompared with that captured under log.ref/. We don't yet distribute asample log.ref.Example of a test (run in this directory): export PATH=`pwd`/bin:$PATH su -c "ifconfigs up" export PLUTO=`pwd`/../../programs/pluto/pluto export WHACK=`pwd`/../../programs/pluto/whack # if using lwdnsq (i.e. if Makefile.inc includes USE_LWRES=true): export USE_LWRES=true export IPSEC_EXECDIR=`pwd`/../../programs/lwdnsq doauto
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -