[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.
- [GNUnet-SVN] [taler-taler-util] 50/51: Make tests work again., (continued)
- [GNUnet-SVN] [taler-taler-util] 50/51: Make tests work again., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 33/51: 4453. Test manual loglevel setup and nonforced env., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 27/51: syntax, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 34/51: 4453. Test for GNUNET_LOG and GNUNET_FORCE_LOG both defined., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 39/51: Log: fix line interval parsing (care about one number case.), gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 31/51: 4453. Test only manual loglevel setup., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 28/51: Testing 4453 with unittest. First batch., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 43/51: Add a .dir-locals, el for configuring emacs for this project, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 44/51: ux, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 46/51: gitignore, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 36/51: Remove old test,
gnunet <=
- [GNUnet-SVN] [taler-taler-util] 45/51: rename., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 35/51: 4453. Fix GNUNET_FORCE_LOG priority., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 40/51: Doxygen-commenting gnunet_log.py, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 41/51: Doxygen-comment logger test cases., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 42/51: Importing the Doxygen-commented config from the bank., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 47/51: rename., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 51/51: wrap-up, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 48/51: README, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 49/51: move around., gnunet, 2019/09/23