2020-02-11 11:13:19 +01:00
|
|
|
ffmpeg_nolog = -hide_banner -loglevel panic
|
|
|
|
|
2020-02-07 12:08:03 +01:00
|
|
|
.PHONY: all
|
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
test:
|
2020-02-11 11:13:19 +01:00
|
|
|
docker exec -d oef_regression_test_selenium_1 ffmpeg -y $(ffmpeg_nolog) -video_size 1360x1020 -framerate 15 -f x11grab -i :99.0 /tmp/recording.mp4
|
2020-02-07 12:08:03 +01:00
|
|
|
go test
|
2020-02-08 12:27:13 +01:00
|
|
|
docker exec oef_regression_test_selenium_1 killall -s SIGINT ffmpeg
|
2020-02-11 11:13:19 +01:00
|
|
|
docker exec oef_regression_test_selenium_1 ffmpeg -y $(ffmpeg_nolog) -i /tmp/recording.mp4 -filter:v "setpts=5*PTS" /tmp/recording_slow.mp4
|
2020-02-11 10:10:10 +01:00
|
|
|
docker exec oef_regression_test_selenium_1 MP4Box -isma -inter 500 -out /tmp/recording_cleaned_up.mp4 /tmp/recording_slow.mp4
|
2020-02-08 12:27:13 +01:00
|
|
|
docker cp oef_regression_test_selenium_1:/tmp/recording_cleaned_up.mp4 recordings/recording.mp4
|
2020-02-07 12:08:03 +01:00
|
|
|
|
|
|
|
all: test
|