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
c5538ff8
Commit
c5538ff8
authored
Jul 25, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: improve replacement checking
parent
20afea58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
test_repl_find.sh
tests/test_repl_find.sh
+30
-8
No files found.
tests/test_repl_find.sh
View file @
c5538ff8
...
...
@@ -7,15 +7,18 @@ load_mod repl
#
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with expected '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
print_replace
()
{
tolocal_anyrepl
$1
`
print_pkgrepl_list
`
||
TARGETPKGNAME
=
"
$1
"
echo
-n
"
$TARGETPKGNAME
"
}
get_pkglist
()
{
VENDOR
=
Fedora
TARGET
=
rpm
DISTRVERSION
=
10
for
i
in
`
print_pkgrepl_list
`
;
do
echo
$(
basename
$i
)
done
...
...
@@ -23,19 +26,38 @@ done
get_grplist
()
{
VENDOR
=
Fedora
TARGET
=
rpm
DISTRVERSION
=
10
for
i
in
`
print_grprepl_list
`
;
do
echo
$(
basename
$i
)
done
}
VENDOR
=
Fedora
TARGET
=
rpm
DISTRVERSION
=
10
echo
"PkgRepl:"
get_pkglist
echo
check pkgrepl
"fedora"
`
get_pkglist
`
#
check pkgrepl "fedora" `get_pkglist`
echo
"GrpRepl:"
get_grplist
echo
check_repl
()
{
check
$1
"
`
print_replace
$1
`
"
$2
}
echo
"Correct replacement checking for
$VENDOR
/
$DISTRVERSION
(target
$TARGET
):"
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb-devel
VENDOR
=
Debian
TARGET
=
deb
DISTRVERSION
=
5.0
echo
"Correct replacement checking for
$VENDOR
/
$DISTRVERSION
(target
$TARGET
):"
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb-dev
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