Skip to content

Commit

Permalink
- [*] allow self test during Debian build
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Jan 1, 2020
1 parent 24af3f8 commit 3d0af52
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ffcvt.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const _encodedExt = "_.mkv"
// Global variables definitions

var (
version = "1.5.03"
date = "2019-12-29"
version = "1.5.05"
date = "2020-01-01"

sprintf = fmt.Sprintf
encodedExt string = _encodedExt
Expand Down
31 changes: 19 additions & 12 deletions test/test-all.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
#! /bin/sh

../ffcvt -version
#env

echo 'Test (config.go) cli help output'
../ffcvt > /tmp/ffcvt_test.txt 2>&1
FFCVT=../ffcvt
# During Debian building, it is at obj-x86_64-linux-gnu/bin/ffcvt
# while the source is at obj-x86_64-linux-gnu/src/github.com/suntong/ffcvt/test
[ -s $FFCVT ] || FFCVT=../../../../../bin/ffcvt

echo Test transcoding single file
../ffcvt -n -debug 0 -f StreamSample.mkv -w /tmp >> /tmp/ffcvt_test.txt 2>&1
$FFCVT -version

echo Test -sym control
../ffcvt -t x265-opus -n -d . >> /tmp/ffcvt_test.txt 2>&1
../ffcvt -t x265-opus -n -d . -sym >> /tmp/ffcvt_test.txt 2>&1
echo '- Test (config.go) cli help output'
$FFCVT > /tmp/ffcvt_test.txt 2>&1

../ffcvt -n -d . >> /tmp/ffcvt_test.txt 2>&1
../ffcvt -n -d . -sym >> /tmp/ffcvt_test.txt 2>&1
echo - Test transcoding single file
$FFCVT -n -debug 0 -f StreamSample.mkv -w /tmp >> /tmp/ffcvt_test.txt 2>&1

../ffcvt -n -sym -debug 2 -d . -w /tmp >> /tmp/ffcvt_test.txt 2>&1
echo - Test -sym control
$FFCVT -t x265-opus -n -d . >> /tmp/ffcvt_test.txt 2>&1
$FFCVT -t x265-opus -n -d . -sym >> /tmp/ffcvt_test.txt 2>&1

echo Compare test results
$FFCVT -n -d . >> /tmp/ffcvt_test.txt 2>&1
$FFCVT -n -d . -sym >> /tmp/ffcvt_test.txt 2>&1

$FFCVT -n -sym -debug 2 -d . -w /tmp >> /tmp/ffcvt_test.txt 2>&1

echo - Compare test results
sed -i '/ [0-9.]*[mµ]*s$/d' /tmp/ffcvt_test.txt
diff -wU 1 ffcvt_test.txt /tmp/ffcvt_test.txt

Expand Down

0 comments on commit 3d0af52

Please sign in to comment.