Use byte differences for sample matching

This commit is contained in:
Michael Hansen 2022-04-27 12:36:47 -04:00
commit 3b9af75eec
7 changed files with 49 additions and 6 deletions

View file

@ -166,7 +166,7 @@ RUN --mount=type=cache,id=apt-run,target=/var/cache/apt \
xargs apt install --yes
# Run test
COPY tests/apope_sample.txt tests/apope_sample_*.wav tests/
COPY tests/* tests/
# Generate sample and check
RUN export expected_sample="tests/apope_sample_${TARGETARCH}${TARGETVARIANT}.wav" && \
@ -175,7 +175,7 @@ RUN export expected_sample="tests/apope_sample_${TARGETARCH}${TARGETVARIANT}.wav
--voice 'en_UK/apope_low' \
< tests/apope_sample.txt \
> tests/actual_sample.wav && \
diff tests/actual_sample.wav "${expected_sample}"
tests/samples_match.sh tests/actual_sample.wav "${expected_sample}"
# -----------------------------------------------------------------------------