diff --git a/src/test/encoding/import-generated.sh b/src/test/encoding/import-generated.sh index ed2429a503e7b..c328e6fd854de 100755 --- a/src/test/encoding/import-generated.sh +++ b/src/test/encoding/import-generated.sh @@ -4,7 +4,7 @@ archive=$1 [ -d "$archive" ] || echo "usage: $0 " -ver=`./ceph-dencoder version` +ver=`bin/ceph-dencoder version` echo "version $ver" [ -d "$archive/$ver" ] || mkdir "$archive/$ver" @@ -12,19 +12,19 @@ echo "version $ver" tmp1=`mktemp /tmp/typ-XXXXXXXXX` echo "numgen\ttype" -for type in `./ceph-dencoder list_types`; do +for type in `bin/ceph-dencoder list_types`; do [ -d "$archive/$ver/objects/$type" ] || mkdir -p "$archive/$ver/objects/$type" - num=`./ceph-dencoder type $type count_tests` + num=`bin/ceph-dencoder type $type count_tests` echo "$num\t$type" max=$(($num - 1)) for n in `seq 0 $max`; do - ./ceph-dencoder type $type select_test $n encode export $tmp1 + bin/ceph-dencoder type $type select_test $n encode export $tmp1 md=`md5sum $tmp1 | awk '{print $1}'` echo "\t$md" [ -e "$archive/$ver/objects/$type/$md" ] || cp $tmp1 $archive/$ver/objects/$type/$md done done -rm $tmp1 \ No newline at end of file +rm $tmp1