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
cfb55cb5
Commit
cfb55cb5
authored
Mar 21, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add increment release test
parent
00a045b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
get_release.sh
tests/get_release.sh
+0
-6
increment_release.sh
tests/increment_release.sh
+37
-0
No files found.
tests/get_release.sh
View file @
cfb55cb5
...
...
@@ -51,12 +51,6 @@ check get_numrelease 3.1 `get_numrelease`
TESTREL
=
alt4.2
check get_txtrelease alt
`
get_txtrelease
`
TESTREL
=
alt5
check inc_subrelease
"alt5.1"
`
inc_subrelease
""
`
TESTREL
=
alt6.2
check inc_subrelease
"alt6.3"
`
inc_subrelease
""
`
BASERELEASE
=
27.5
MAJOR
=
`
echo
"
$BASERELEASE
"
|
sed
-e
"s|
\.
.*||"
`
MINOR
=
`
echo
"
$BASERELEASE
"
|
sed
-e
"s|.*
\.
||"
`
...
...
tests/increment_release.sh
0 → 100755
View file @
cfb55cb5
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
get_release
()
{
#echo "Warning: Error test %test" >&2
echo
$TESTREL
}
set_release
()
{
echo
"
$2
"
}
TESTREL
=
alt5
check inc_subrelease
"alt5.1"
`
inc_subrelease
""
`
TESTREL
=
alt6.2
check inc_subrelease
"alt6.3"
`
inc_subrelease
""
`
TESTREL
=
alt5
check inc_release
"alt6"
`
inc_release
""
`
TESTREL
=
alt6.2
check inc_release
"alt7"
`
inc_release
""
`
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