def _collectFiles()

in benchmarking/benchmarks/benchmarks.py [0:0]


    def _collectFiles(self, benchmark):
        files = []
        tmp_files = []
        if "model" in benchmark:
            if "files" in benchmark["model"]:
                self._collectOneGroupFiles(benchmark["model"]["files"], files)
            if "libraries" in benchmark["model"]:
                self._collectOneGroupFiles(benchmark["model"]["libraries"], files)

        for test in benchmark["tests"]:
            if "files" in test:
                self._collectOneGroupFiles(test["files"], files, tmp_files)
            if "input_files" in test:
                self._collectOneGroupFiles(test["input_files"], files)
            if "output_files" in test:
                self._collectOneGroupFiles(test["output_files"], files, tmp_files)
            if "preprocess" in test and "files" in test["preprocess"]:
                self._collectOneGroupFiles(
                    test["preprocess"]["files"], files, tmp_files
                )
            if "postprocess" in test and "files" in test["postprocess"]:
                self._collectOneGroupFiles(
                    test["postprocess"]["files"], files, tmp_files
                )
        return files, tmp_files