Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
packaging
deb-icingaweb2
Commits
c0ec0023
Commit
c0ec0023
authored
May 07, 2020
by
Johannes Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Outsource test preparation to its own script
parent
fa5db4c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
testing/prepare_test.sh
testing/prepare_test.sh
+17
-0
testing/start_test.sh
testing/start_test.sh
+3
-13
No files found.
testing/prepare_test.sh
0 → 100755
View file @
c0ec0023
#!/bin/bash
set
-ex
if
[
-d
archive
]
;
then
cd
archive
apt-ftparchive packages
.
>
Packages
sudo
su
-c
'echo "deb [trusted=yes] file:$(pwd)/ ./" >> /etc/apt/sources.list'
sudo
apt-get update
-y
fi
sudo
apt-get
install
-y
--force-yes
icingaweb2 apache2
sudo
apache2ctl start
||
echo
"apache2ctl start failed"
testing/start_test.sh
View file @
c0ec0023
#!/bin/bash
set
-ex
SCRIPT_HOME
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
if
[
-d
archive
]
;
then
cd
archive
apt-ftparchive packages
.
>
Packages
sudo
su
-c
'echo "deb [trusted=yes] file:$(pwd)/ ./" >> /etc/apt/sources.list'
sudo
apt-get update
-y
if
!
$SCRIPT_HOME
/prepare_test.sh
;
then
exit
1
fi
sudo
apt-get
install
-y
--force-yes
icingaweb2 apache2
sudo
apache2ctl start
||
echo
"apache2ctl start failed"
RSTATUS
=
$(
curl
-s
-w
"%{http_code}"
http://localhost/icingaweb2/authentication/login
-o
/dev/null
)
if
[
"200"
!=
"
$RSTATUS
"
]
;
then
echo
"Http exit code was not ok!"
...
...
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