begin to test explorer success in test_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f5a58f7683
commit
13ed37a4e9
2 changed files with 17 additions and 3 deletions
8
build.sh
8
build.sh
|
@ -41,9 +41,6 @@ MAN1DSTDIR=${MANDIR}/man1
|
||||||
MAN7DSTDIR=${MANDIR}/man7
|
MAN7DSTDIR=${MANDIR}/man7
|
||||||
SPEECHESDIR=doc/speeches
|
SPEECHESDIR=doc/speeches
|
||||||
|
|
||||||
# FIXME: make lib for tests!
|
|
||||||
# PYTHONPATH=$PYTHONPATH:$(pwd -P)/test/lib
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
man)
|
man)
|
||||||
set -e
|
set -e
|
||||||
|
@ -133,6 +130,11 @@ case "$1" in
|
||||||
python3 -m unittest discover lib/cdist/test 'test_*.py'
|
python3 -m unittest discover lib/cdist/test 'test_*.py'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
test-install)
|
||||||
|
PYTHONPATH=$PYTHONPATH:$(pwd -P)/lib \
|
||||||
|
python3 -m unittest cdist.test.test_install
|
||||||
|
;;
|
||||||
|
|
||||||
test-all)
|
test-all)
|
||||||
python3 -m unittest discover lib/cdist/test '*.py'
|
python3 -m unittest discover lib/cdist/test '*.py'
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -43,6 +43,18 @@ class Install(unittest.TestCase):
|
||||||
exec_path=cdist_exec_path)
|
exec_path=cdist_exec_path)
|
||||||
self.config.link_emulator()
|
self.config.link_emulator()
|
||||||
|
|
||||||
|
### NEW FOR INSTALL ############################################################
|
||||||
|
|
||||||
|
def test_explorer_ran(self):
|
||||||
|
"""Check that all explorers returned a result"""
|
||||||
|
self.config.run_global_explores()
|
||||||
|
explorers = self.config.path.list_global_explorers()
|
||||||
|
|
||||||
|
for explorer in explorers:
|
||||||
|
output = self.path.global_explorer_output_path(explorer)
|
||||||
|
self.assertTrue(os.path.isfile(output))
|
||||||
|
|
||||||
|
### OLD FROM CONFIG ############################################################
|
||||||
def test_initial_manifest_different_parameter(self):
|
def test_initial_manifest_different_parameter(self):
|
||||||
manifest_fd = open(self.init_manifest, "w")
|
manifest_fd = open(self.init_manifest, "w")
|
||||||
manifest_fd.writelines(["#!/bin/sh\n",
|
manifest_fd.writelines(["#!/bin/sh\n",
|
||||||
|
|
Loading…
Reference in a new issue