Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
4d552d1a
Commit
4d552d1a
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add some tests
parent
17327baf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
0 deletions
+84
-0
test_filter_out.sh
tests/test_filter_out.sh
+29
-0
test_repofix.sh
tests/test_repofix.sh
+37
-0
test_repofix.sources.list
tests/test_repofix.sources.list
+18
-0
No files found.
tests/test_filter_out.sh
0 → 100755
View file @
4d552d1a
#!/bin/sh
load_helper
()
{
.
../bin/
$1
}
PMTYPE
=
apt-rpm
.
../bin/epm-sh-altlinux
.
../bin/epm-sh-functions
.
../bin/epm-install
#installlist=$(../bin/epm --short qp glusterfs6)
installlist
=
"libglusterfs6
glusterfs6-gfevents
glusterfs6
glusterfs6-client
glusterfs6-vim
glusterfs6-rdma
glusterfs6-georeplication
libglusterfs6-api
glusterfs6-thin-arbiter
python3-module-glusterfs6
glusterfs6-server"
echo
"installed:
$installlist
"
echo
"non installed:"
echo
"
$installlist
"
|
(
skip_installed
=
'yes'
filter_out_installed_packages
)
#echo "$installlist" | __fast_hack_for_filter_out_installed_rpm
This diff is collapsed.
Click to expand it.
tests/test_repofix.sh
0 → 100755
View file @
4d552d1a
#!/bin/sh
# test func
regexp_subst
()
{
echo
"regexp_subst:
$*
"
local
expression
=
"
$1
"
shift
cp
-f
"
$1
"
"
$1
.tmp"
sed
-i
-r
-e
"
$expression
"
"
$1
.tmp"
diff
-u
"
$1
"
"
$1
.tmp"
||
echo
"NO CHANGES!"
rm
-f
"
$1
.tmp"
}
__replace_text_in_alt_repo
()
{
local
i
for
i
in
test_repofix.sources.list
;
do
[
-s
"
$i
"
]
||
continue
regexp_subst
"
$1
"
"
$i
"
done
}
# TODO drop updates using
__alt_repofix
()
{
local
TO
=
"
$1
"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![
$TO
]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
[tpc][6-9]
\]
![
$TO
]!g"
}
echo
echo
"=== to p9"
__alt_repofix p9
echo
echo
"=== to Sisyphus"
__alt_repofix alt
This diff is collapsed.
Click to expand it.
tests/test_repofix.sources.list
0 → 100644
View file @
4d552d1a
# Local package resource list for APT goes here.
# To inspect package defined part, see /etc/apt/sources.list.d/*.list
rpm [p7] http://download.etersoft.ru/pub ALTLinux/p8/branch/x86_64 classic
rpm [p8] http://download.etersoft.ru/pub ALTLinux/p8/branch/x86_64-i586 classic
rpm [t9] http://download.etersoft.ru/pub ALTLinux/p8/branch/noarch classic
rpm [updates] http://download.etersoft.ru/pub ALTLinux/p8/branch/x86_64 classic
rpm [updates] http://download.etersoft.ru/pub ALTLinux/p8/branch/x86_64-i586 classic
rpm [updates] http://download.etersoft.ru/pub ALTLinux/p8/branch/noarch classic
#rpm [alt] http://download.etersoft.ru/pub ALTLinux/p9/branch/x86_64 classic debuginfo
#rpm [alt] http://download.etersoft.ru/pub ALTLinux/p9/branch/x86_64-i586 classic
#rpm [alt] http://download.etersoft.ru/pub ALTLinux/p9/branch/noarch classic
rpm [etersoft] http://download.etersoft.ru/pub/Etersoft LINUX@Etersoft/p8/branch/noarch addon
rpm [etersoft] http://download.etersoft.ru/pub/Etersoft LINUX@Etersoft/p8/branch/x86_64-i586 addon
rpm [etersoft] http://download.etersoft.ru/pub/Etersoft LINUX@Etersoft/p8/branch/x86_64 addon
This diff is collapsed.
Click to expand it.
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