Browse Source

Add utility scripts to run the test suite with python3

Pierre-Yves Chibon 8 years ago
parent
commit
f694de1cc3
2 changed files with 17 additions and 0 deletions
  1. 12 0
      nosetests3
  2. 5 0
      runtests3.sh

+ 12 - 0
nosetests3

@@ -0,0 +1,12 @@
+#!/usr/bin/python3
+# EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.3.7','console_scripts','nosetests-3.4'
+__requires__ = 'nose>=1.3.7'
+import sys
+from pkg_resources import load_entry_point
+
+if __name__ == '__main__':
+    sys.exit(
+        load_entry_point(
+            'nose>=1.3.7', 'console_scripts', 'nosetests-3.%s' %
+                sys.version_info.minor)()
+    )

+ 5 - 0
runtests3.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+PAGURE_CONFIG=`pwd`/tests/test_config \
+PYTHONPATH=pagure \
+./nosetests3 --with-coverage --cover-erase --cover-package=pagure $*