Mercurial > hg > audiodb
view tests/9000/run-test.sh @ 201:b5087d00b062
Test for duplicate key detection logic.
(Currently fails, as the string search doesn't include the terminating
null, so the new key will match something with that as a prefix.)
author | mas01cr |
---|---|
date | Tue, 27 Nov 2007 18:13:48 +0000 |
parents | 218106b4db14 |
children | fe4dc39b2dd7 |
line wrap: on
line source
#! /bin/sh . ../test-utils.sh for file in `find .. -name testdb -print | sort -n` do dir=`mktemp -d` echo dumping "${file}" into "${dir}/${file:3:4}" ${AUDIODB} -d ${file} -D --output="${dir}/${file:3:4}" echo restoring "${file}" into "${dir}"/"${file:3:4}"/restoredb export restoreadb=${AUDIODB} (export AUDIODB=`pwd`/$restoreadb && cd "${dir}"/"${file:3:4}" && sh ./restore.sh restoredb) echo comparing dbs for "${file:3:4}" cmp "${file}" "${dir}"/"${file:3:4}"/restoredb rm -rf "${dir}" done exit 104