gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-taler-util] 36/51: Remove old test


From: gnunet
Subject: [GNUnet-SVN] [taler-taler-util] 36/51: Remove old test
Date: Mon, 23 Sep 2019 22:02:27 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository taler-util.

commit 4bd97012f18e85925d082aa15277fe233e4bb818
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Feb 7 16:18:51 2019 +0100

    Remove old test
---
 python/log/test.old | 68 -----------------------------------------------------
 1 file changed, 68 deletions(-)

diff --git a/python/log/test.old b/python/log/test.old
deleted file mode 100755
index 763ef38..0000000
--- a/python/log/test.old
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/usr/bin/env python3
-
-from gnunet_log import GnunetLogger as GL
-import os
-import sys
-
-# TODO
-import unittest
-
-# 1st test _without_ GNUNET_FORCE_LOG being defined.
-print("Testing with GNUNET_FORCE_LOG *unset*")
-if os.environ.get("GNUNET_FORCE_LOG"):
-    del os.environ["GNUNET_FORCE_LOG"]
-
-gl = GL("gnunetish-python-logging")
-print("Setting loglevel to INFO")
-gl.setup(gl.INFO)
-
-gl.log("I am a INFO message", gl.INFO)
-gl.log("I am a WARNING message", gl.WARNING)
-gl.log("I am a DEBUG message, and I should *not* get displayed", gl.DEBUG)
-
-print("Testing with GNUNET_FORCE_LOG *set* to WARNING")
-os.environ["GNUNET_FORCE_LOG"] = "gnunetish-python-logging;;;;WARNING"
-
-gl = GL("gnunetish-python-logging")
-gl.setup(gl.INFO)
-
-gl.log("I am a INFO message, and I should *not* get displayed", gl.INFO)
-gl.log("I am a ERROR message, and I should get displayed", gl.ERROR)
-
-print("Testing with GNUNET_FORCE_LOG *set* to DEBUG")
-os.environ["GNUNET_FORCE_LOG"] = "gnunetish-python-logging;;;;DEBUG"
-
-gl = GL("gnunetish-python-logging")
-gl.setup(gl.INFO)
-
-gl.log("I am a DEBUG message, and I should get displayed", gl.DEBUG)
-gl.log("I am a WARNING message, and I should get displayed", gl.WARNING)
-
-print("Testing with GNUNET_FORCE_LOG *set* to DEBUG and _empty_ component 
field")
-os.environ["GNUNET_FORCE_LOG"] = ";;;;DEBUG"
-
-gl = GL("gnunetish-python-logging")
-gl.setup(gl.WARNING)
-
-gl.log("I am a DEBUG message, and I should get displayed", gl.DEBUG)
-gl.log("I am a WARNING message, and I should get displayed", gl.WARNING)
-
-print("Testing with NO forced definitions neither one setup")
-del os.environ["GNUNET_FORCE_LOG"]
-gl = GL("gnunetish-python-logging")
-gl.log("I am a DEBUG message and I should *not* get displayed", gl.DEBUG)
-gl.log("I am a INFO message and I should get displayed (for default reasons)", 
gl.INFO)
-
-print("Testing with GNUNET_LOG=gnunetish-python-logging;;;;ERROR")
-os.environ["GNUNET_LOG"] = "gnunetish-python-logging;;;;ERROR"
-gl = GL("gnunetish-python-logging")
-gl.log("I am a WARNING message and I should *not* get displayed", gl.WARNING)
-gl.log("I am a ERROR message and I should get displayed", gl.ERROR)
-
-print("Testing with GNUNET_FORCE_LOGFILE set to 
/tmp/{}-pid_[]-year_%Y-month_%m-day_%d.log")
-del os.environ["GNUNET_LOG"]
-os.environ["GNUNET_FORCE_LOGFILE"] = 
"/tmp/{}-pid_[]-year_%Y-month_%m-day_%d.log"
-# It uses the default INFO level.
-gl = GL("gnunetish-python-logging")
-gl.log("I'm a ERROR message, and should go to 
/tmp/{}-[]-year_%Y-month_%m-day_%d.log", gl.ERROR)
-gl.log("I'm a DEBUG message, and should *not* go to 
/tmp/{}-pid_[]-year_%Y-month_%m-day_%d.log (& console)", gl.DEBUG)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]