chiark / gitweb /
Tests now use a somewhat longer track, to reduce the chance that a
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 29 Mar 2008 12:08:20 +0000 (12:08 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 29 Mar 2008 12:08:20 +0000 (12:08 +0000)
track will play out before the test spots it.

.bzrignore
sounds/Makefile.am
tests/dtest.py

index a08805f..5c8238b 100644 (file)
@@ -144,3 +144,5 @@ lib/versionstring.h
 scripts/setup
 examples/disorder.rc
 scripts/teardown
+sounds/long.ogg
+sounds/slap.raw
index f3e9d3b..bf9f333 100644 (file)
 #
 
 pkgdata_DATA=slap.ogg scratch.ogg
+noinst_DATA=long.ogg
 
 EXTRA_DIST=${pkgdata_DATA}
+
+%.raw: %.ogg
+       oggdec -b16 -R -o $@ $<
+
+long.ogg: slap.raw
+       cat slap.raw slap.raw slap.raw slap.raw slap.raw slap.raw \
+               slap.raw slap.raw | oggenc -r -o $@ -
+
+clean-local:
+       rm -f long.ogg slap.raw
index 3937eb6..fff1866 100644 (file)
@@ -87,7 +87,7 @@ Make track with relative path S exist"""
     trackdir = os.path.dirname(trackpath)
     if not os.path.exists(trackdir):
         os.makedirs(trackdir)
-    copyfile("%s/sounds/slap.ogg" % top_srcdir, trackpath)
+    copyfile("%s/sounds/long.ogg" % top_srcdir, trackpath)
     # We record the tracks we created so they can be tested against
     # server responses.  We put them into NFC since that's what the server
     # uses internally.