mas01cr@252: #! /bin/bash mas01cr@164: mas01cr@164: . ../test-utils.sh mas01cr@164: mas01cr@164: for file in `find .. -name testdb -print | sort -n` mas01cr@164: do mas01cr@164: dir=`mktemp -d` mas01cr@164: echo dumping "${file}" into "${dir}/${file:3:4}" mas01cr@164: ${AUDIODB} -d ${file} -D --output="${dir}/${file:3:4}" mas01cr@164: echo restoring "${file}" into "${dir}"/"${file:3:4}"/restoredb mas01cr@164: export restoreadb=${AUDIODB} mas01cr@164: (export AUDIODB=`pwd`/$restoreadb && cd "${dir}"/"${file:3:4}" && sh ./restore.sh restoredb) mas01cr@164: echo comparing dbs for "${file:3:4}" mas01cr@164: cmp "${file}" "${dir}"/"${file:3:4}"/restoredb mas01cr@164: rm -rf "${dir}" mas01cr@164: done mas01cr@164: mas01cr@164: exit 104