Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
6fdb5225
Commit
6fdb5225
authored
Apr 01, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for get_version
parent
71e76c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
get_version.sh
tests/get_version.sh
+39
-0
No files found.
tests/get_version.sh
0 → 100755
View file @
6fdb5225
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
SPEC
=
get_ver.spec
check_get_version
()
{
RES
=
$1
cat
<<
EOF
>
$SPEC
Name: get_version_test
Release: alt1
Summary: Test
Group: Other
License: Public License
%define major 1.0
%define ver 10
%define maj 1.0
Version:
$TESTVER
%description
Get version test
EOF
RESGET
=
`
get_version
$SPEC
`
[
"
$RES
"
!=
"
$RESGET
"
]
&&
echo
"FATAL with 'get_version': result '
$RES
' do not match with '
$RESGET
'"
||
echo
"OK for 'get_version' with '
$RESGET
'"
}
TESTVER
=
1.0.10
check_get_version 1.0.10
# spec evals only on ALT
TESTVER
=
%major.10
check_get_version 1.0.10
TESTVER
=
%maj.%ver
check_get_version 1.0.10
rm
-f
$SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment