Browse Source

New version of tests

Now an instance is created, tests are copied in it and the run
Yann Weber 8 years ago
parent
commit
fcaf9c86ce
2 changed files with 13 additions and 0 deletions
  1. 9
    0
      runtest
  2. 4
    0
      tests/__init__.py

+ 9
- 0
runtest View File

@@ -46,4 +46,13 @@
46 46
 # https://docs.python.org/3.4/library/unittest.html
47 47
 #
48 48
 
49
+testdir=$(mktemp -d)
50
+rmdir $testdir
51
+./scripts/create_instance.sh test_instance $testdir &>/dev/null
52
+cp -R examples $testdir
53
+cp -R tests $testdir
54
+cd $testdir
55
+rm -R conf.d && mv tests/tests_conf.d conf.d
49 56
 python3 -W ignore -m unittest $@
57
+
58
+rm -Rf $testdir

+ 4
- 0
tests/__init__.py View File

@@ -0,0 +1,4 @@
1
+try:
2
+    import loader
3
+except ImportError:
4
+    print("This tests are designed to be runned with the runtest utility")

Loading…
Cancel
Save