diff options
author | Ori Bernstein <ori@eigenstate.org> | 2023-02-19 20:44:56 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2023-02-19 20:44:56 -0500 |
commit | 31913a8524edf97ad79f9f895d6ac5761b9b2fd7 (patch) | |
tree | cc695a76c4a41527eb510c7c9462f059af652636 /sys/src/cmd/audio | |
parent | c3ba64f6935322f09b6de5c2285544fd471c605d (diff) |
mkfiles: add 'mk test' support
9front has several tests scattered throughout the source,
as well as more tests in an external 'regress' repository.
Many of these tests are broken, because there is no easy
way to build and track all of them.
This pulls in several tests from different sources, deletes
the broken tests, tests with missing data, and adds a single
command that can be run from the root of the src directory
to test our system.
The hope is that as we develop new code, we add more tests,
and eventually start running the tests on every commit.
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'sys/src/cmd/audio')
-rw-r--r-- | sys/src/cmd/audio/flacdec/mkfile | 5 | ||||
-rw-r--r-- | sys/src/cmd/audio/flacenc/mkfile | 3 | ||||
-rw-r--r-- | sys/src/cmd/audio/mkfile | 6 | ||||
-rw-r--r-- | sys/src/cmd/audio/mp3enc/mkfile | 4 | ||||
-rw-r--r-- | sys/src/cmd/audio/oggdec/mkfile | 3 | ||||
-rw-r--r-- | sys/src/cmd/audio/oggenc/mkfile | 3 |
6 files changed, 19 insertions, 5 deletions
diff --git a/sys/src/cmd/audio/flacdec/mkfile b/sys/src/cmd/audio/flacdec/mkfile index 89340bda7..0c88bed05 100644 --- a/sys/src/cmd/audio/flacdec/mkfile +++ b/sys/src/cmd/audio/flacdec/mkfile @@ -4,7 +4,7 @@ TARGET=flacdec CC=pcc -CFLAGS=-I. -I../libFLAC -I../libFLAC/FLAC -D_POSIX_SOURCE -D_BSD_EXTENSION -DPlan9 -c +CFLAGS=-I. -I../libFLAC -I../libFLAC/FLAC -D_POSIX_SOURCE -D_BSD_EXTENSION -DPlan9 %.$O: %.c $CC $CFLAGS -c $stem.c @@ -19,3 +19,6 @@ clean:V: install:V: $O.$TARGET cp $O.$TARGET $BIN/$TARGET + +test:VQ: + # nothing diff --git a/sys/src/cmd/audio/flacenc/mkfile b/sys/src/cmd/audio/flacenc/mkfile index f8bc3a111..59792f545 100644 --- a/sys/src/cmd/audio/flacenc/mkfile +++ b/sys/src/cmd/audio/flacenc/mkfile @@ -19,3 +19,6 @@ clean:V: install:V: $O.$TARGET cp $O.$TARGET $BIN/$TARGET + +test:VQ: + # nothing diff --git a/sys/src/cmd/audio/mkfile b/sys/src/cmd/audio/mkfile index 9739e1492..5116edca0 100644 --- a/sys/src/cmd/audio/mkfile +++ b/sys/src/cmd/audio/mkfile @@ -60,3 +60,9 @@ safeinstallall:V: cd $i mk clean } + +test:V: + for (i in $DIRS) @{ + cd $i + mk test + } diff --git a/sys/src/cmd/audio/mp3enc/mkfile b/sys/src/cmd/audio/mp3enc/mkfile index 828fb5f57..b005bea67 100644 --- a/sys/src/cmd/audio/mp3enc/mkfile +++ b/sys/src/cmd/audio/mp3enc/mkfile @@ -59,7 +59,3 @@ LDFLAGS= # -p testcase.new.mp3: testcase.wav $O.out $O.out --nores -h testcase.wav testcase.new.mp3 - -test:V: testcase.new.mp3 - cmp -l testcase.new.mp3 testcase.mp3 | wc -l - rm testcase.new.mp3 diff --git a/sys/src/cmd/audio/oggdec/mkfile b/sys/src/cmd/audio/oggdec/mkfile index 04c36366d..e22711d33 100644 --- a/sys/src/cmd/audio/oggdec/mkfile +++ b/sys/src/cmd/audio/oggdec/mkfile @@ -19,3 +19,6 @@ clean:V: install:V: $O.$TARGET cp $O.$TARGET $BIN/$TARGET + +test:VQ: + # nothing diff --git a/sys/src/cmd/audio/oggenc/mkfile b/sys/src/cmd/audio/oggenc/mkfile index 313d57e4a..e2b8a8bd2 100644 --- a/sys/src/cmd/audio/oggenc/mkfile +++ b/sys/src/cmd/audio/oggenc/mkfile @@ -19,3 +19,6 @@ clean:V: install:V: $O.$TARGET cp $O.$TARGET $BIN/$TARGET + +test:VQ: + # nothing |