Skip to content

Update do_install.sh #62

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
8 changes: 3 additions & 5 deletions do_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ sudo apt install libboost-filesystem-dev

# grab the toz3 extension for the p4 compiler
mkdir -p ${MODULE_DIR}/p4c/extensions
# only install bludgeon if we are not running in CI
if [ "$RUN_CI" == "ON" ]; then
echo "Also linking extra modules..."
ln -sf ${MODULE_DIR}/bludgeon ${MODULE_DIR}/p4c/extensions/bludgeon
fi

echo "Also linking extra modules..."
ln -sf ${MODULE_DIR}/bludgeon ${MODULE_DIR}/p4c/extensions/bludgeon
ln -sf ${MODULE_DIR}/toz3 ${MODULE_DIR}/p4c/extensions/toz3

# build the p4 compiler
Expand Down
3 changes: 1 addition & 2 deletions src/check_random_progs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import json

import util
import validate_p4_translation as validation

# configure logging
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -298,7 +297,7 @@ def check(idx, config):
dump_file(CRASH_BUG_DIR, p4_file)
if config["do_prune"]:
info_file = CRASH_BUG_DIR.joinpath(f"{p4_file.stem}_info.json")
info = validation.INFO
info = 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, instead can we copy over the definition from validation? I will deprecate those files soon.

# customize the main info with the new information
info["compiler"] = str(config["compiler_bin"])
info["exit_code"] = result.returncode
Expand Down