Skip to content

Commit

Permalink
FATE: add support for testing hwaccels
Browse files Browse the repository at this point in the history
  • Loading branch information
elenril committed Mar 10, 2015
1 parent dc7536c commit 96a06db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fate: $(FATE)

$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@echo "TEST $(@:fate-%=%)"
$(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)'
$(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)' '$(HWACCEL)'

fate-list:
@printf '%s\n' $(sort $(FATE))
Expand Down
3 changes: 2 additions & 1 deletion tests/fate-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cmp_target=${13:-0}
size_tolerance=${14:-0}
cmp_unit=${15:-2}
gen=${16:-no}
hwaccel=${17:-none}

outdir="tests/data/fate"
outfile="${outdir}/${test}"
Expand Down Expand Up @@ -76,7 +77,7 @@ probefmt(){
}

avconv(){
dec_opts="-threads $threads -thread_type $thread_type"
dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags"
for arg in $@; do
[ x${arg} = x-i ] && avconv_args="${avconv_args} ${dec_opts}"
Expand Down

0 comments on commit 96a06db

Please sign in to comment.