poke: add unit testing
refs #3740
Change-Id: I170068cf69463e92b2019cc27747777d224c0232
diff --git a/tools/peek/wscript b/tools/peek/wscript
index fa657a0..781d015 100644
--- a/tools/peek/wscript
+++ b/tools/peek/wscript
@@ -13,12 +13,17 @@
source='ndnpeek/main.cpp',
use='ndnpeek-objects')
+ bld.objects(
+ target='ndnpoke-objects',
+ source=bld.path.ant_glob('ndnpoke/*.cpp', excl='ndnpoke/main.cpp'),
+ use='core-objects')
+
bld.program(
target='../../bin/ndnpoke',
- source='ndn-poke.cpp',
- use='core-objects')
+ source='ndnpoke/main.cpp',
+ use='ndnpoke-objects')
## (for unit tests)
bld(target='peek-objects',
- use='ndnpeek-objects')
+ use=['ndnpeek-objects', 'ndnpoke-objects'])