瀏覽代碼

New version of tests

Now an instance is created, tests are copied in it and the run
Yann Weber 8 年之前
父節點
當前提交
fcaf9c86ce
共有 2 個文件被更改,包括 13 次插入0 次删除
  1. 9
    0
      runtest
  2. 4
    0
      tests/__init__.py

+ 9
- 0
runtest 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存