Skip to content

Commit

Permalink
import-generated.sh: correct access to ceph-dencoder
Browse files Browse the repository at this point in the history
align with instructions in doc/dev/corpus.rst.
doc/dev/corpus.rst is under change by [email protected]
in PR 27552.

Signed-off-by: Changcheng Liu <[email protected]>
  • Loading branch information
LiucIntel authored and tchaikov committed Apr 24, 2019
1 parent 4219067 commit 0c3ca82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/encoding/import-generated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ archive=$1

[ -d "$archive" ] || echo "usage: $0 <archive>"

ver=`./ceph-dencoder version`
ver=`bin/ceph-dencoder version`
echo "version $ver"

[ -d "$archive/$ver" ] || mkdir "$archive/$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
rm $tmp1

0 comments on commit 0c3ca82

Please sign in to comment.