From ffacce28203f3fa93b52c2f8191a96224ac35094 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Sat, 10 Jan 2015 09:55:12 +0100 Subject: [PATCH] Test: skip test for some broken Diadems processors --- tests/test_analyzers_default.py | 16 ++++++++++++---- tests/test_analyzers_stress.py | 7 +++++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/tests/test_analyzers_default.py b/tests/test_analyzers_default.py index 3b07709..9a462ae 100755 --- a/tests/test_analyzers_default.py +++ b/tests/test_analyzers_default.py @@ -1,15 +1,15 @@ #! /usr/bin/env python # Author : Thomas Fillon - - from unit_timeside import unittest, TestRunner -import timeside -from timeside.plugins.decoder.file import FileDecoder import numpy as np + +import timeside.core +from timeside.plugins.decoder.file import FileDecoder from timeside.tools.test_samples import samples + class TestAnalyzers_with_default(unittest.TestCase): """Test analyzer with default parameters""" @@ -56,6 +56,14 @@ def _tests_factory(test_class, test_doc, list_analyzers, skip_reasons={}): # Define test to skip and corresponding reasons skip_reasons = {} +# Define test to skip and corresponding reasons +skip_reasons = {'IRITDiverg': 'IRIT_Diverg has to be fixed', + 'IRITMusicSLN': 'IRITMusicSLN has to be fixed', + 'IRITMusicSNB': 'IRITMusicSNB has to be fixed', + 'IRITSingings': 'IRITSingings has to be fixed', + 'LABRIInstru': 'LABRIInstru has to be fixed', + 'LABRIMultipitch': 'LABRIMultipitch has to be fixed' + } # For each analyzer in TimeSide, test with constant input _tests_factory(test_class=TestAnalyzers_with_default, diff --git a/tests/test_analyzers_stress.py b/tests/test_analyzers_stress.py index 6ae46af..85e71b5 100755 --- a/tests/test_analyzers_stress.py +++ b/tests/test_analyzers_stress.py @@ -64,10 +64,13 @@ def _tests_factory(test_class, test_doc, list_analyzers, skip_reasons={}): setattr(test_class, test_func_name, unittest.skip(skip_reasons[analyzer.__name__])(test_func)) - # Define test to skip and corresponding reasons skip_reasons = {'VampSimpleHost': ('VampSimpleHost bypasses the decoder ' - 'and requires a file input')} + 'and requires a file input'), + 'IRITDiverg': 'IRIT_Diverg fails the stress test', + 'IRITMusicSLN': 'IRITMusicSLN fails the stress test', + 'IRITMusicSNB': 'IRITMusicSNB fails the stress test'} + # For each analyzer in TimeSide, test with constant input _tests_factory(test_class=TestAnalyzers_withDC, -- 2.39.5