Skip to content

Commit

Permalink
Fix origin flag removed in #81 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchinson authored Jul 24, 2024
1 parent 999c97d commit 36888e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testdata/build_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
export LOG=${DIR}/log/
export LOG_PRIVATE_KEY="PRIVATE+KEY+example.com/log/testdata+33d7b496+AeymY/SZAX0jZcJ8enZ5FY1Dz+wTML2yWSkK+9DSF3eg"
export LOG_PUBLIC_KEY="example.com/log/testdata+33d7b496+AeHTu4Q3hEIMHNqc6fASMsq3rKNx280NI+oO5xCFkkSx"
export ORIGIN="example.com/log/testdata"

cd ${DIR}
rm -fr log

go run ../cmd/example-posix --storage_dir=${LOG} --initialise --origin="${ORIGIN}"
go run ../cmd/example-posix --storage_dir=${LOG} --initialise
cp ${LOG}/checkpoint ${LOG}/checkpoint.0

export LEAF=`mktemp`
for i in one two three four five six seven eit nain ten ileven twelf threeten fourten fivten; do
echo -n "$i" > ${LEAF}
go run ../cmd/example-posix --storage_dir=${LOG} --origin="${ORIGIN}" --entries="${LEAF}"
go run ../cmd/example-posix --storage_dir=${LOG} --entries="${LEAF}"
size=$(sed -n '2 p' ${LOG}/checkpoint)
cp ${LOG}/checkpoint ${LOG}/checkpoint.${size}
done
Expand Down

0 comments on commit 36888e2

Please sign in to comment.