| 1 | #!/bin/sh |
| 2 | |
| 3 | exec 2>&1 |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | cp tests/data/inputfiles/test.ogg "$AUTOPKGTEST_TMP"/ |
| 8 | cd "$AUTOPKGTEST_TMP" |
| 9 | |
| 10 | test_classic_output() { |
| 11 | in=test.ogg |
| 12 | out=video.mp4 |
| 13 | for py in $(py3versions -s); do |
| 14 | echo "testing with $py:" |
| 15 | rm -vf $out |
| 16 | xvfb-run -a $py $(command -v avp) -i $in -o $out -c 0 vis layout=classic |
| 17 | assertEquals "video/mp4" "$(file --mime-type --brief $out)" |
| 18 | done |
| 19 | } |
| 20 | |
| 21 | . shunit2 |