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

chore: use PocketIC in drun #4555

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mraszyk
Copy link

@mraszyk mraszyk commented May 28, 2024

This MR needs to pull the latest drun and PocketIC server binaries:

https://download.dfinity.systems/ic/a6707c42691fccbe3d90dcd596637172a926ce02/binaries/x86_64-linux/drun.gz
https://download.dfinity.systems/ic/a6707c42691fccbe3d90dcd596637172a926ce02/binaries/x86_64-linux/pocket-ic.gz

and

export POCKET_IC_BIN=<path-to-pocket-ic>

Also note that the output format changed slightly and thus the expected test output should be regenerated.

@mraszyk mraszyk marked this pull request as draft May 28, 2024 05:49
@mraszyk mraszyk requested a review from crusso May 28, 2024 05:50
if [ -e $out/$base.metrics -a -n "$PERF_OUT" ]
then
LANG=C perl -ne "print \"gas/$base;\$1\n\" if /^scheduler_(?:cycles|instructions)_consumed_per_round_sum (\\d+)\$/" $out/$base.metrics >> $PERF_OUT;
CYCLES_USED="$(awk -F':' '{sum+=$2;} END {print sum;}' $out/$base.metrics)";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line depends on awk being available as a dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant