diff options
-rwxr-xr-x | testprogs/visopts.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testprogs/visopts.py b/testprogs/visopts.py index ab4f396d..d0e46d64 100755 --- a/testprogs/visopts.py +++ b/testprogs/visopts.py @@ -6,16 +6,16 @@ each optimize phase. Usage guide: 1. Enable optimizier debugging code when configure libpcap, - and build libpcap & filtertest + and build libpcap & the test programs ./configure --enable-optimizer-dbg make - make filtertest + make testprogs 2. Run filtertest to compile BPF expression, save to output a.txt - ./filtertest EN10MB host 192.168.1.1 > a.txt + testprogs/filtertest EN10MB host 192.168.1.1 > a.txt 3. Send a.txt to this program's standard input - cat a.txt | tests/visopts.py + cat a.txt | testprogs/visopts.py 4. Step 2&3 can be merged: - ./filtertest EN10MB host 192.168.1.1 | tests/visopts.py + testprogs/filtertest EN10MB host 192.168.1.1 | testprogs/visopts.py 5. The standard output is something like this: generated files under directory: /tmp/visopts-W9ekBw the directory will be removed when this programs finished. |