Skip to content

Commit f5bc114

Browse files
committed
Fixed binary output check.
1 parent 4cac97f commit f5bc114

4 files changed

Lines changed: 23 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Sourcecode on GitHub](https://img.shields.io/badge/Paebbels-pyVersioning-323131.svg?logo=github&longCache=true)](https://github.com/Paebbels/pyVersioning)
22
[![Sourcecode License](https://img.shields.io/pypi/l/pyVersioning?longCache=true&style=flat-square&logo=Apache&label=code)](LICENSE.md)
3-
[![Documentation](https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports%2Findex.html)](https://Paebbels.github.io/pyVersioning/)
3+
[![Documentation](https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning%2Findex.html)](https://Paebbels.github.io/pyVersioning/)
44
[![Documentation License](https://img.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff)](LICENSE.md)
55
[![PyPI](https://img.shields.io/pypi/v/pyVersioning?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)](https://pypi.org/project/pyVersioning/)
66
![PyPI - Status](https://img.shields.io/pypi/status/pyVersioning?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
@@ -20,7 +20,7 @@
2020
# pyVersioning
2121

2222
The Python package `pyVersioning` offers a template tool to write version information for any programming language as a
23-
source file that can be included into the normal build flow.
23+
source file that can be included into the normal application build flow.
2424

2525
The main idea is to provide a unified tool to collect all necessary version information from a configuration file, user
2626
defined parameters, version control systems (e.g. Git) or environment variables. Especially the latter ones can be

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pyVersioning Documentation
3636
##########################
3737

3838
The Python package ``pyVersioning`` offers a template tool to write version information for any programming language as
39-
a source file that can be included into the normal build flow.
39+
a source file that can be included into the normal application build flow.
4040

4141
The main idea is to provide a unified tool to collect all necessary version information from a configuration file, user
4242
defined parameters, version control systems (e.g. Git) or environment variables. Especially the latter ones can be

doc/shields.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@
150150
:target: https://GitHub.com/Paebbels/pyVersioning/blob/main/doc/License.rst
151151

152152
.. # GHPages - read now
153-
.. |SHIELD:svg:pyVersioning-ghp-doc| image:: https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2Fsphinx%2Dreports&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports%2Findex.html
153+
.. |SHIELD:svg:pyVersioning-ghp-doc| image:: https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning%2Findex.html
154154
:alt: Documentation - Read Now!
155155
:height: 22
156156
:target: https://Paebbels.github.io/pyVersioning/
157-
.. |SHIELD:png:pyVersioning-ghp-doc| image:: https://raster.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2Fsphinx%2Dreports&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports%2Findex.html
157+
.. |SHIELD:png:pyVersioning-ghp-doc| image:: https://raster.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning%2Findex.html
158158
:alt: Documentation - Read Now!
159159
:height: 22
160160
:target: https://Paebbels.github.io/pyVersioning/

example/check.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@ exampleName="$1"
44

55
cd ${exampleName} || exit 1
66

7+
check() {
8+
printf "$1"
9+
./example | grep -E "$2" > /dev/null
10+
if [[ $? -eq 0 ]]; then
11+
printf "[OK]\n"
12+
else
13+
printf "[MISMATCH]\n"
14+
fi
15+
}
16+
717
case "${exampleName}" in
818
C)
919
./example
10-
./example | grep version
20+
21+
check "Check for version string ... " "^Version:\w+v2\.1\.6"
22+
check "Check Git SHA ... " "${GITHUB_SHA}"
23+
check "Check Git repository ... " "${GITHUB_REPOSITORY}"
1124
;;
1225
CXX)
1326
./example
14-
./example | grep version
27+
28+
check "Check for version string ... " "^Version:\w+v2\.1\.6"
29+
check "Check Git SHA ... " "${GITHUB_SHA}"
30+
check "Check Git repository ... " "${GITHUB_REPOSITORY}"
1531
;;
1632
*)
1733
printf "Unknown example '%s'\n" "${exampleName}"

0 commit comments

Comments
 (0)