Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix origin flag removed in #81 #84

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading