%.py: %.py.in Makefile
$(do_subst) < $(srcdir)/$< > $@
chmod +x $@
+
+gnunet_testing.py: gnunet_testing.py.in Makefile
+ $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
+ chmod +x gnunet_testing.py
test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
$(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
$(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
chmod +x test_integration_disconnect.py
+test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
+ $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
+ chmod +x test_integration_disconnect_nat.py
+
test_integration_restart.py: test_integration_restart.py.in Makefile
$(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
chmod +x test_integration_restart.py
gnunet_testing.py.in \
test_integration_bootstrap_and_connect.py.in \
test_integration_disconnect.py.in \
+ test_integration_disconnect_nat.py \
test_integration_restart.py.in \
test_integration_clique.py.in \
test_integration_clique_nat.py.in
fail = ""
op = " == "
if ((self.fulfilled == False) and (failed_only == True)):
- print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : ' + str(self.value) + op + res + fail
+ print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail
elif (failed_only == False):
- print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : ' + str(self.value) + op + res + fail
+ print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail
return self.fulfilled
class Test:
def cleanup ():
if os.name == "nt":
- shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True)
+ shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_bootstrap_server"), True)
shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
else:
shutil.rmtree ("/tmp/c_bootstrap_server/", True)