Skip to content

Commit

Permalink
Adding version test to test-package
Browse files Browse the repository at this point in the history
  • Loading branch information
Robertorosmaninho committed Oct 4, 2023
1 parent 71a0669 commit 928ac58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package/test-package
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,16 @@ sort_int = kllvm.ast.CompositeSort("SortInt")
assert str(sort_int) == "SortInt{}"
HERE

# Make sure that the version of the various components is correct comparing to
# the KServer version that uses JVM.
KOMPILE_VERSION=$(kompile --version | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[0-9a-z]+(-dirty)?')
KSERVER_VERSION=$(kserver --version | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[0-9a-z]+(-dirty)?')

if [ "$KOMPILE_VERSION" != "$KSERVER_VERSION" ]; then
echo "KOMPILE_VERSION: $KOMPILE_VERSION"
echo "KSERVER_VERSION: $KSERVER_VERSION"
exit 1
fi

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

0 comments on commit 928ac58

Please sign in to comment.