From 37bae427c4d08b9e0a1099b60cceeaaef905936b Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Fri, 19 May 2017 20:11:10 +0100 Subject: [PATCH] Remove the current voice tests. These tests are limited in scope and should really be part of a more comprehensive API tests. --- Makefile.am | 7 ------- tests/voices.c | 53 -------------------------------------------------- 2 files changed, 60 deletions(-) delete mode 100644 tests/voices.c diff --git a/Makefile.am b/Makefile.am index 61b33a52..900a9049 100644 --- a/Makefile.am +++ b/Makefile.am @@ -245,12 +245,6 @@ tests_readclause_test_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} tests_readclause_test_LDADD = src/libespeak-ng-test.la tests_readclause_test_SOURCES = tests/readclause.c -noinst_bin_PROGRAMS += tests/voices.test - -tests_voices_test_LDADD = src/libespeak-ng-test.la -tests_voices_test_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} -tests_voices_test_SOURCES = tests/voices.c - %.check: %.test @echo " TEST $<" @ESPEAK_DATA_PATH=$(PWD) $< && echo " PASSED $<" @@ -258,7 +252,6 @@ tests_voices_test_SOURCES = tests/voices.c check: tests/encoding.check \ tests/tokenizer.check \ tests/readclause.check \ - tests/voices.check \ tests/languages.check ##### phoneme data: diff --git a/tests/voices.c b/tests/voices.c deleted file mode 100644 index d5775a74..00000000 --- a/tests/voices.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2017 Reece H. Dunn - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write see: - * . - */ - -#include "config.h" - -#include -#include -#include -#include - -#include -#include - -void -test_selection_by_name() -{ - printf("testing selection of voice by name\n"); - - assert(espeak_SetVoiceByName("de") == EE_OK); - - assert(espeak_SetVoiceByName("und") == EE_NOT_FOUND); - - assert(espeak_ng_SetVoiceByName("de") == ENS_OK); - - assert(espeak_ng_SetVoiceByName("und") == ENS_VOICE_NOT_FOUND); -} - -int -main(int argc, char **argv) -{ - assert(espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, NULL, espeakINITIALIZE_DONT_EXIT) == 22050); - - test_selection_by_name(); - - assert(espeak_Terminate() == EE_OK); - - return EXIT_SUCCESS; -}