From 8e01995f6b0a4fdb11ed8e2f22413ef933fafc1b Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Tue, 31 Jul 2007 03:14:10 +0000 Subject: pass command line options to audiotest_rw through OPTS, e.g. $ OPTS="-e 1 -r 22050 -c 1 -b 1024" DO_AUTEST=1 make --- regress/sys/dev/audio_rw/Makefile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'regress') diff --git a/regress/sys/dev/audio_rw/Makefile b/regress/sys/dev/audio_rw/Makefile index 14a18e4f30b..944ea6d0485 100644 --- a/regress/sys/dev/audio_rw/Makefile +++ b/regress/sys/dev/audio_rw/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2007/07/06 00:43:38 jakemsr Exp $ +# $OpenBSD: Makefile,v 1.2 2007/07/31 03:14:09 jakemsr Exp $ PROG= audiotest_rw CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes @@ -30,69 +30,69 @@ REGRESS_TARGETS += run-regress-duplex-select master.pcm: ${PROG} @echo "creating master input file" - ./audiotest_rw -o master.pcm + ./audiotest_rw -o master.pcm ${OPTS} # recording tests run-regress-record: ${PROG} - ./audiotest_rw -o test.pcm + ./audiotest_rw -o test.pcm ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-record-duplex: ${PROG} - ./audiotest_rw -o test.pcm -d + ./audiotest_rw -o test.pcm -d ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-record-poll: ${PROG} - ./audiotest_rw -o test.pcm -p + ./audiotest_rw -o test.pcm -p ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-record-select: ${PROG} - ./audiotest_rw -o test.pcm -s + ./audiotest_rw -o test.pcm -s ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-record-poll-duplex: ${PROG} - ./audiotest_rw -o test.pcm -p -d + ./audiotest_rw -o test.pcm -p -d ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-record-select-duplex: ${PROG} - ./audiotest_rw -o test.pcm -s -d + ./audiotest_rw -o test.pcm -s -d ${OPTS} @test -s test.pcm || (echo "no output" && false) # playing tests run-regress-play: ${PROG} master.pcm - ./audiotest_rw -i master.pcm + ./audiotest_rw -i master.pcm ${OPTS} run-regress-play-duplex: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -d + ./audiotest_rw -i master.pcm -d ${OPTS} run-regress-play-poll: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -p + ./audiotest_rw -i master.pcm -p ${OPTS} run-regress-play-select: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -s + ./audiotest_rw -i master.pcm -s ${OPTS} run-regress-play-poll-duplex: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -p -d + ./audiotest_rw -i master.pcm -p -d ${OPTS} run-regress-play-select-duplex: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -s -d + ./audiotest_rw -i master.pcm -s -d ${OPTS} # full-duplex tests run-regress-duplex: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -o test.pcm + ./audiotest_rw -i master.pcm -o test.pcm ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-duplex-poll: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -o test.pcm -p + ./audiotest_rw -i master.pcm -o test.pcm -p ${OPTS} @test -s test.pcm || (echo "no output" && false) run-regress-duplex-select: ${PROG} master.pcm - ./audiotest_rw -i master.pcm -o test.pcm -s + ./audiotest_rw -i master.pcm -o test.pcm -s ${OPTS} @test -s test.pcm || (echo "no output" && false) -- cgit v1.2.3