# Path: elbepack/commands/test.py
# class ElbeTestCase(unittest.TestCase):
# 
#     level = ElbeTestLevel.BASE
# 
#     def __init__(self, methodName='runTest', param=None):
#         self.methodName = methodName
#         self.param = param
#         self.stdout = None
#         super().__init__(methodName)
# 
#     def __str__(self):
#         name = super(ElbeTestCase, self).__str__()
#         if self.param:
#             return "%s : param=%s" % (name, self.param)
#         return name
# 
#     def parameterize(self, param):
#         return self.__class__(methodName=self.methodName, param=param)
# 
# def system(cmd, allow_fail=False):
#     ret, out = command_out(cmd)
#     if ret != 0 and not allow_fail:
#         raise ElbeTestException(cmd, ret, out)
# 
# class ElbeTestException(Exception):
# 
#     def __init__(self, cmd, ret, out):
#         super().__init__()
#         self.cmd = cmd
#         self.ret = ret
#         self.out = out
# 
#     def __repr__(self):
#         return f"ElbeTestException: \"{self.cmd}\" returns {self.ret}"
# 
#     def __str__(self):
#         return f"ElbeTestException: \"{self.cmd}\" returns {self.ret}"
# 
# Path: elbepack/directories.py
# def init_directories(elbe_relpath):
# def get_cmdlist():


import os
from elbepack.commands.test import ElbeTestCase, system, ElbeTestException
from elbepack.directories import elbe_exe, elbe_dir
# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2020 Olivier Dion <dion@linutronix.de>
# Copyright (c) 2021 Torben Hohn <torben.hohn@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later



class TestPreproc(ElbeTestCase):

    failure_set = {os.path.join(elbe_dir, path)
                   for path
                   in [
                       "tests/preproc-01.xml"
                   ]}


# Path: elbepack/commands/test.py
# class ElbeTestCase(unittest.TestCase):
# 
#     level = ElbeTestLevel.BASE
# 
#     def __init__(self, methodName='runTest', param=None):
#         self.methodName = methodName
#         self.param = param
#         self.stdout = None
#         super().__init__(methodName)
# 
#     def __str__(self):
#         name = super(ElbeTestCase, self).__str__()
#         if self.param:
#             return "%s : param=%s" % (name, self.param)
#         return name
# 
#     def parameterize(self, param):
#         return self.__class__(methodName=self.methodName, param=param)
# 
# def system(cmd, allow_fail=False):
#     ret, out = command_out(cmd)
#     if ret != 0 and not allow_fail:
#         raise ElbeTestException(cmd, ret, out)
# 
# class ElbeTestException(Exception):
# 
#     def __init__(self, cmd, ret, out):
#         super().__init__()
#         self.cmd = cmd
#         self.ret = ret
#         self.out = out
# 
#     def __repr__(self):
#         return f"ElbeTestException: \"{self.cmd}\" returns {self.ret}"
# 
#     def __str__(self):
#         return f"ElbeTestException: \"{self.cmd}\" returns {self.ret}"
# 
# Path: elbepack/directories.py
# def init_directories(elbe_relpath):
# def get_cmdlist():


# Path: elbepack/tests/test_preproc.py
import os
from elbepack.commands.test import ElbeTestCase, system, ElbeTestException
from elbepack.directories import elbe_exe, elbe_dir

# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2020 Olivier Dion <dion@linutronix.de>
# Copyright (c) 2021 Torben Hohn <torben.hohn@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later



class TestPreproc(ElbeTestCase):

    failure_set = {os.path.join(elbe_dir, path)
                   for path
                   in [
                       "tests/preproc-01.xml"
                   ]}


    params = [os.path.join(elbe_dir, "tests", fname)