diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index be321a9c..ee7fa8c2 100755 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -37,3 +37,6 @@ jobs: - name: Test with pytest run: | python -m pytest -vvv tests + - name: Check getdcmtags version + run: | + cd getdcmtags && ./check_version.sh diff --git a/getdcmtags/check_version.sh b/getdcmtags/check_version.sh new file mode 100755 index 00000000..1ca20ce7 --- /dev/null +++ b/getdcmtags/check_version.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +binary_version=$(../bin/ubuntu22.04/getdcmtags --version | grep -oP 'Version \K.*' ) +source_version=$(grep -oP '#define VERSION "\K.*(?=")' ../getdcmtags/main.cpp) + +echo "Binary version: $binary_version" +echo "Source version: $source_version" +echo "" +if [ "$binary_version" == "$source_version" ]; then + echo "Versions match." + exit 0 +else + echo "Versions do not match!" + exit 1 +fi \ No newline at end of file