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
ddc5dd94
Commit
ddc5dd94
authored
Jan 13, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for apt conf replacement
parent
1cbfe7e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
test_aptconf.sh
tests/test_aptconf.sh
+17
-5
No files found.
tests/test_aptconf.sh
View file @
ddc5dd94
...
@@ -3,14 +3,26 @@
...
@@ -3,14 +3,26 @@
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod hasher
load_mod hasher
parse_cmd_pre
""
# Create test apt.conf file
cat
<<
EOF
>apt.conf.SS
// Test apt.conf
Dir::Etc::main "/dev/null";
Dir::Etc::parts "/var/empty";
Dir::Etc::SourceParts "/var/empty";
Dir::Etc::sourcelist "
$(
pwd
)
/sources.list.SS";
EOF
cat
<<
EOF
>sources.list.SS
# Test sources.list
rpm file:/var/ftp/ pub/ALTLinux/Sisyphus/i586 classic
rpm file:/var/ftp/ pub/ALTLinux/Sisyphus/noarch classic
EOF
print_tmp_aptconf
$APTCONF
export
APTCONFBASE
=
$(
pwd
)
/apt.conf
echo
"-------------------------------"
#print_tmp_aptconf /etc/apt/apt.conf.SS
parse_cmd_pre
""
print_tmp_sourceslist
$APTCONF
prepare_aptconfig
prepare_aptconfig
...
...
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