view tests/refupdate.sh @ 36437:eb6cdd6b9b86

Update track information at GUI_SET_STREAM for CDDA and VCD. This is (only) necessary for playbacks that have been started on the command line (specifying such as cdda://5 or vcd://2) rather than using the GUI menus. For TV/DVB (that don't have tracks) set it to a fixed value.
author ib
date Mon, 02 Dec 2013 14:43:24 +0000
parents 6dc79618ec0e
children
line wrap: on
line source

#!/bin/sh
# updates all changed/new results in ref/
find res -name '*.bad' | while read bad_res ; do
  ref_file="ref/${bad_res#res/}"
  ref_file="${ref_file%.bad}"
  mkdir -p "$(dirname "$ref_file")"
  cp "$bad_res" "$ref_file"
done