shithub: mcfs

Download patch

ref: c905e2c8c23e3b73ea9cbb374213299cb9fd4377
parent: d1c8338f9ba3c7ad0f5ff7b331837b96f62473c3
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Feb 9 08:36:35 EST 2021

mkfile: add test rule

--- a/mkfile
+++ b/mkfile
@@ -2,7 +2,6 @@
 MAN=/sys/man/1
 
 TARG=mcfs
-
 BIN=/$objtype/bin
 
 OFILES=\
@@ -23,4 +22,18 @@
 
 default:V: all
 
+extra:V:
+	cd extra
+	mk
+
 </sys/src/cmd/mkone
+
+SAMPLES=../matroska-test-files/test_files
+
+test:V: all extra
+	test -d $SAMPLES
+	for(f in $SAMPLES/*.mkv){
+		echo $f
+		./$O.out $f
+		./extra/$O.mkvdump $f >/dev/null
+	}