From 538db3db3bd73b3c2acf968f3af4159ad2443f51 Mon Sep 17 00:00:00 2001 From: Eric Gillespie Date: Thu, 7 Sep 2023 12:25:14 -0500 Subject: [PATCH] test mp3::cd::read_args 224 Mar 22 2022 t/mp3cd/read-args.t --- GNUmakefile | 7 ++++--- t/mp3cd/read-args.t | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 t/mp3cd/read-args.t diff --git a/GNUmakefile b/GNUmakefile index 824340b..8fbaaa6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,3 @@ -# $Id$ - prefix=/usr/local exec_prefix=${prefix} bindir=${exec_prefix}/bin @@ -31,11 +29,14 @@ MAN=\ all: apic-read apic-write strip-tags ${SCRIPTS} ${MAN} test: - prove -r t + ${PROVE} ${PROVEFLAGS} -r t #CXX= /opt/llvm-3.3.src/bin/clang -std=c++11 -g -Wall CXX= g++ -std=c++0x -g -Wall +PROVE= prove +PROVEFLAGS= --nocolor + %: %.cc ${CXX} -o $@ $< ${TAGLIBFLAGS} diff --git a/t/mp3cd/read-args.t b/t/mp3cd/read-args.t new file mode 100644 index 0000000..56a1197 --- /dev/null +++ b/t/mp3cd/read-args.t @@ -0,0 +1,16 @@ +use v5.12; +use warnings; + +use Test::Simple tests => 1; + +use Test::Differences; + +use FindBin; + +use lib "$FindBin::Bin/../.."; + +require 'fa-mp3cd'; + +eq_or_diff + ['.', undef], + [epg::flac::archive::mp3::cd::read_args()]; -- 2.56.0