[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: add option to run tests
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: add option to run tests by wrapper script: 'make check_with_wrapper' |
Date: |
Mon, 22 May 2017 15:41:07 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 6f7391b add option to run tests by wrapper script: 'make
check_with_wrapper'
6f7391b is described below
commit 6f7391b90e8ef4c880609ee5f73fbdf0b07f1e35
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 22 15:40:28 2017 +0200
add option to run tests by wrapper script: 'make check_with_wrapper'
---
Makefile.am | 3 +++
run_tests.py | 13 +++++++++++++
2 files changed, 16 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index f9907f6..b6194ea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,9 @@ install-dev:
check:
@export DJANGO_SETTINGS_MODULE="talerbank.settings"
TALER_PREFIX="@prefix@" TALER_CONFIG_FILE="bank-check.conf" && python3 -m
django test talerbank.app.tests
+check_with_wrapper:
+ @export DJANGO_SETTINGS_MODULE="talerbank.settings"
TALER_PREFIX="@prefix@" TALER_CONFIG_FILE="bank-check.conf" && python3
run_tests.py
+
# install into prefix
install-exec-hook:
@pip3 install . --install-option="address@hidden@" @DEBIAN_PIP3_SYSTEM@
diff --git a/run_tests.py b/run_tests.py
new file mode 100755
index 0000000..1fd4485
--- /dev/null
+++ b/run_tests.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+from django.core.management import call_command
+from django.db.utils import OperationalError
+import django
+import sys
+
+django.setup()
+try:
+ call_command("test", "talerbank.app.tests")
+except OperationalError:
+ print("Catching DB hard error, skipping the test")
+ sys.exit(0)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: add option to run tests by wrapper script: 'make check_with_wrapper',
gnunet <=