-SUBDIRS=$(ALL_OMK_SUBDIRS)
+SUBDIRS=$(sort $(ALL_OMK_SUBDIRS) ffmpeg $(wildcard wvtest/c))
+
+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 $^
-SUBDIRS += ffmpeg/libavcodec ffmpeg/libavdevice ffmpeg/libavfilter \
- ffmpeg/libavformat ffmpeg/libavutil ffmpeg/libpostproc \
- ffmpeg/libswscale