]> diplodocus.org Git - flac-archive/commitdiff
test mp3::cd::read_args
authorEric Gillespie <epg@pretzelnet.org>
Thu, 7 Sep 2023 17:25:14 +0000 (12:25 -0500)
committerEric Gillespie <epg@pretzelnet.org>
Thu, 7 Sep 2023 17:25:14 +0000 (12:25 -0500)
  224 Mar 22  2022 t/mp3cd/read-args.t

GNUmakefile
t/mp3cd/read-args.t [new file with mode: 0644]

index 824340b..8fbaaa6 100644 (file)
@@ -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 (file)
index 0000000..56a1197
--- /dev/null
@@ -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()];