change wscript: by default no debug

change wait time before checking in test
This commit is contained in:
Zhenkai Zhu authored and Alexander Afanasyev committed 2012-05-29 19:58:17 -07:00
1 parent 8e845ba47f
commit 699d740f56
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -103,7 +103,7 @@ BOOST_AUTO_TEST_CASE (AppSocketTest)
s1.publish (p1, 0, data1, 10);
_LOG_DEBUG ("s1 publish");
s1.publish (p1, 0, data2, 10);
this_thread::sleep (posix_time::milliseconds (250));
this_thread::sleep (posix_time::milliseconds (1000));
// from code logic, we won't be fetching our own data
a1.set(p1 + "/0/1", data1);
@@ -122,7 +122,7 @@ BOOST_AUTO_TEST_CASE (AppSocketTest)
// another single source, multiple data at once
s2.publish(p2, 0, data4, 10);
s2.publish(p2, 0, data5, 10);
this_thread::sleep (posix_time::milliseconds (200));
this_thread::sleep (posix_time::milliseconds (1000));
// from code logic, we won't be fetching our own data
a3.set(p3 + "/0/0", data3);
+2 -2
View File
@@ -4,7 +4,7 @@ VERSION='0.0.1'
APPNAME='sync'
def options(opt):
opt.add_option('--no-debug',action='store_true',default=False,dest='no_debug',help='''Make an optimized build of the library (remove debugging code)''')
opt.add_option('--debug',action='store_true',default=False,dest='debug',help='''debugging mode''')
opt.add_option('--log4cxx', action='store_true',default=False,dest='log4cxx',help='''Compile with log4cxx/native NS3 logging support''')
opt.add_option('--ns3', action='store_true',default=False,dest='ns3_enable',help='''Compile as NS-3 module''')
opt.add_option('--ns3-debug', action='store_true',default=False,dest='ns3_debug',help='''Link against debug NS3 libraries. Optimized version will be used otherwise''')
@@ -47,7 +47,7 @@ def configure(conf):
if conf.options.log4cxx:
conf.check_cfg(package='liblog4cxx', args=['--cflags', '--libs'], uselib_store='LOG4CXX', mandatory=True)
if not conf.options.no_debug:
if conf.options.debug:
conf.define ('_DEBUG', 1)
conf.env.append_value('CXXFLAGS', ['-O0', '-g3'])
else: