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

Packaging: version path fix #3691

Merged
merged 5 commits into from
Oct 4, 2023
Merged
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
2 changes: 1 addition & 1 deletion k-distribution/src/main/scripts/lib/k
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for flag in "$@"; do
fi

if [[ -z "${version}" ]]; then
version="v"$(cat "${K_BASE}"/version)
version="v"$(cat "${K_BASE}"/kframework/version)
fi

echo "K version: ${version}"
Expand Down
22 changes: 22 additions & 0 deletions package/test-package
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,27 @@ sort_int = kllvm.ast.CompositeSort("SortInt")
assert str(sort_int) == "SortInt{}"
HERE

# Make sure that the help messages work and that the version of the various components is correct
PACKAGE_VERSION=$(cat /usr/lib/kframework/version)

kast --help | grep -q -- "--version"
kdep --help | grep -q -- "--version"
kompile --help | grep -q -- "--version"
kprove --help | grep -q -- "--version"
krun --help | grep -q -- "--version"
kserver --help | grep -q -- "--version"
kparse --help | grep -q -- "--version"
kparse-gen --help | grep -q -- "--version"
kore-print --help | grep -q -- "--version"
kast --version | grep -q ${PACKAGE_VERSION}
kdep --version | grep -q ${PACKAGE_VERSION}
kompile --version | grep -q ${PACKAGE_VERSION}
kprove --version | grep -q ${PACKAGE_VERSION}
krun --version | grep -q ${PACKAGE_VERSION}
kserver --version | grep -q ${PACKAGE_VERSION}
kparse --version | grep -q ${PACKAGE_VERSION}
kparse-gen --version | grep -q ${PACKAGE_VERSION}
kore-print --version | grep -q ${PACKAGE_VERSION}

# Make sure that the Haskell Backend Booster has been installed properly.
kore-rpc-booster --help