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
e01d7f80
Commit
e01d7f80
authored
Jul 10, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for get_etersoft_srpm_path
parent
15c6a127
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
get_tarballname.sh
tests/get_tarballname.sh
+29
-5
No files found.
tests/get_tarballname.sh
View file @
e01d7f80
#!/bin/sh
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
load_mod spec
etersoft
SPEC
=
get_ver.spec
SPEC
=
get_ver.spec
gen_spec
()
check_get_version
()
{
{
RES
=
$1
cat
<<
EOF
>
$SPEC
cat
<<
EOF
>
$SPEC
Name: get_version_test
Name: get_version_test
Release: alt1
Release: alt1
Version:
$TESTVER
Version:
$TESTVER
Source: %name-%version.tar.bz2
Source:
$SOURCEPATH
%name-%version.tar.bz2
Summary: Test
Summary: Test
Group: Other
Group: Other
License: Public License
License: Public License
...
@@ -23,12 +21,38 @@ License: Public License
...
@@ -23,12 +21,38 @@ License: Public License
%description
%description
Get version test
Get version test
EOF
EOF
}
check_get_version
()
{
RES
=
$1
gen_spec
RESGET
=
`
get_tarballname
$SPEC
`
RESGET
=
`
get_tarballname
$SPEC
`
[
"
$RES
"
!=
"
$RESGET
"
]
&&
echo
"FATAL with 'get_tarballname': result '
$RES
' do not match with '
$RESGET
'"
||
echo
"OK for 'get_tarballname' with '
$RESGET
'"
[
"
$RES
"
!=
"
$RESGET
"
]
&&
echo
"FATAL with 'get_tarballname': result '
$RES
' do not match with '
$RESGET
'"
||
echo
"OK for 'get_tarballname' with '
$RESGET
'"
}
}
TESTVER
=
1.0.10
TESTVER
=
1.0.10
SOURCEPATH
=
check_get_version get_version_test
check_get_version get_version_test
SOURCEPATH
=
ftp://etersoft.ru/pub/Etersoft/TEST/
echo
"Source path
$SOURCEPATH
: "
gen_spec
get_etersoft_srpm_path
$SPEC
SOURCEPATH
=
/var/ftp/pub/Etersoft/TEST/
echo
"Source path
$SOURCEPATH
: "
gen_spec
get_etersoft_srpm_path
$SPEC
SOURCEPATH
=
ftp.eter:/var/ftp/pub/Etersoft/TEST/
echo
"Source path
$SOURCEPATH
: "
gen_spec
get_etersoft_srpm_path
$SPEC
SOURCEPATH
=
ftp://somecompany.ru/Etersoft/TEST/
echo
"Source path
$SOURCEPATH
: "
gen_spec
get_etersoft_srpm_path
$SPEC
rm
-f
$SPEC
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