Skip to content

Commit 3d0af52

Browse files
committed
- [*] allow self test during Debian build
1 parent 24af3f8 commit 3d0af52

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

ffcvt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const _encodedExt = "_.mkv"
4141
// Global variables definitions
4242

4343
var (
44-
version = "1.5.03"
45-
date = "2019-12-29"
44+
version = "1.5.05"
45+
date = "2020-01-01"
4646

4747
sprintf = fmt.Sprintf
4848
encodedExt string = _encodedExt

test/test-all.sh

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
#! /bin/sh
22

3-
../ffcvt -version
3+
#env
44

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

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

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

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

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

20-
echo Compare test results
22+
$FFCVT -n -d . >> /tmp/ffcvt_test.txt 2>&1
23+
$FFCVT -n -d . -sym >> /tmp/ffcvt_test.txt 2>&1
24+
25+
$FFCVT -n -sym -debug 2 -d . -w /tmp >> /tmp/ffcvt_test.txt 2>&1
26+
27+
echo - Compare test results
2128
sed -i '/ [0-9.]*[mµ]*s$/d' /tmp/ffcvt_test.txt
2229
diff -wU 1 ffcvt_test.txt /tmp/ffcvt_test.txt
2330

0 commit comments

Comments
 (0)