]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
O_DIRECT works!!!
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:42:08 +0000 (22:42 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:42:08 +0000 (22:42 +0200)
build/Makefile.omk
src/ffmpeg

index 9e9dd19048945400394eda4ca8d2615d80316789..68a89ba274e6b028a438289bc74961610b4a34f1 100644 (file)
@@ -1,9 +1,14 @@
 SUBDIRS=$(sort $(ALL_OMK_SUBDIRS) ffmpeg)
 
-test:
-       ./_compiled/bin/recorder -i snapshot%02d.png -y test_normal.mp4
-       ./_compiled/bin/recorder -i snapshot%02d.png -y -direct test_direct.mp4
-       hexdump -C test_normal.mp4 > test_normal.hex
-       hexdump -C test_direct.mp4 > test_direct.hex
-       kdiff3 test_normal.hex test_direct.hex
+test: run_diff
+
+.PHONY: test run_diff
+
+test_direct.mp4: RECFLAGS=-direct
+test_%.mp4: _compiled/bin/recorder
+       ./_compiled/bin/recorder -i snapshot%02d.png -y $(RECFLAGS) $@ 2>&1 | tee $@.log
+%.hex: %.mp4
+       hexdump -C $< > $@
+run_diff: test_normal.hex test_direct.hex
+       kdiff3 $^
 
index a4582fb42456fe83734835ecc73d5a9b2ec2aba3..393f0349bfb53860d5b44e8b936395bd5727914c 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a4582fb42456fe83734835ecc73d5a9b2ec2aba3
+Subproject commit 393f0349bfb53860d5b44e8b936395bd5727914c