Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
92533bea
Commit
92533bea
authored
Jun 15, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: dont run sh manually but respect #!/bin/sh in each test
That way we can set sh options case by case
parent
2dd7ad9a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
10 deletions
+13
-10
test/.gitignore
test/.gitignore
+2
-0
test/Makefile
test/Makefile
+4
-3
test/test1.sh
test/test1.sh
+1
-1
test/test2.sh
test/test2.sh
+1
-1
test/test3.sh
test/test3.sh
+1
-1
test/test4.sh
test/test4.sh
+1
-1
test/test5.sh
test/test5.sh
+1
-1
test/test6.sh
test/test6.sh
+1
-1
test/test7.sh
test/test7.sh
+1
-1
No files found.
test/.gitignore
View file @
92533bea
...
...
@@ -2,3 +2,5 @@ src
pkg
*.apk
*.tar.gz
conf.mk
test/Makefile
View file @
92533bea
-include
conf.mk
repos
:=
repo1 repo2
...
...
@@ -6,8 +7,8 @@ testroot = $(tmproot)/$(basename $@)
SUDO
:=
sudo
APK
:=
../src/apk
--keys-dir
/etc/apk/keys
#SYSREPO ?= http://alpinelinux.org/cgi-bin/dl.cgi/edge/main
SYSREPO
?=
http://
192.168.8.4
/main
SYSREPO
?=
http://
alpinelinux.org/cgi-bin/dl.cgi/edge
/main
LD_LIBRARY_PATH
=
../src
export
LD_LIBRARY_PATH
SYSREPO
...
...
@@ -41,7 +42,7 @@ repos.stamp: $(repos)
@
echo
-n
"
$<
"
;
\
rm
-rf
"
$(testroot)
"
;
\
mkdir
-p
"
$(testroot)
"
;
\
if
!
APK
=
"
$(APK)
"
ROOT
=
"
$(testroot)
"
SYSREPO
=
"
$(SYSREPO)
"
sh
-e
$<
>
$(
basename
$@
)
.out 2>&1
;
then
\
if
!
APK
=
"
$(APK)
"
ROOT
=
"
$(testroot)
"
SYSREPO
=
"
$(SYSREPO)
"
./
$<
>
$(
basename
$@
)
.out 2>&1
;
then
\
echo
" FAIL"
;
\
exit
1
;
\
fi
;
\
...
...
test/test1.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test if basic add/del/upgrade works
...
...
test/test2.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test if dependencies works
...
...
test/test3.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test successful pre-install
...
...
test/test4.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test failing pre-install
...
...
test/test5.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test post-install script
...
...
test/test6.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test triggers in kernel package
...
...
test/test7.sh
View file @
92533bea
#!/bin/sh
#!/bin/sh
-e
# desc: test triggers in busybox package
...
...
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