Skip to content
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
4 changes: 3 additions & 1 deletion scripts/package-svcomp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ set -euo pipefail
# Set SWAT_SVCOMP_ARTIFACT_DIR only if those generated files live somewhere
# else. The artifact root must contain:
#
# - symbolic-executor/lib/symbolic-executor.jar
# - symbolic-executor/lib/symbolic-executor.jar, or symbolic-executor.jar at the
# root (actions/upload-artifact drops the directories of a single-file upload)
#
# Set SWAT_SVCOMP_PYTHON_DIR to the Python dependency directory produced by
# scripts/build-svcomp-python-runtime.sh (it includes the witnesscreator
Expand Down Expand Up @@ -127,6 +128,7 @@ install -m 0644 targets/sv-comp/sv-comp.cfg "$PACKAGE_DIR/sv-comp.cfg"

EXECUTOR_JAR="$(first_artifact_file \
symbolic-executor/lib/symbolic-executor.jar \
symbolic-executor.jar \
symbolic-executor/build/libs/symbolic-executor-all.jar)"
copy_artifact_file "$EXECUTOR_JAR" "$PACKAGE_DIR/symbolic-executor/lib/symbolic-executor.jar"

Expand Down
7 changes: 7 additions & 0 deletions scripts/svcomp-package/run-swat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
for arg in "$@"
do
if [ "$arg" == "-v" ] || [ "$arg" == "--version" ]; then
# The package version (e.g. svcomp27-rc1) from BUILD_INFO.txt, written by
# scripts/package-svcomp.sh.
version="$(sed -n 's/^version=//p' "$SCRIPT_DIR/BUILD_INFO.txt" 2>/dev/null)"
if [ -n "$version" ]; then
echo "$version"
exit 0
fi
exec java -cp "$SCRIPT_DIR/symbolic-executor/lib/symbolic-executor.jar" de.uzl.its.swat.Version
fi
done
Expand Down
Loading