Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libzafl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
libzafl
Compare revisions
00c68e321254563930443f3dbd34fbe6248dba77 to 26f4b47da6575fe4abd9df3f15e6bde6d316c588
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
opensrc/libzafl
Select target project
No results found
26f4b47da6575fe4abd9df3f15e6bde6d316c588
Select Git revision
Swap
Target
opensrc/libzafl
Select target project
No results found
00c68e321254563930443f3dbd34fbe6248dba77
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Updates for ubuntu20
· 9ba0b5e1
Jason Hiser
authored
4 years ago
9ba0b5e1
Updates for ubuntu20
· 05143589
Jason Hiser
authored
4 years ago
05143589
Adjust paths to zafl for opensrcing
· 26f4b47d
Jason Hiser
authored
4 years ago
26f4b47d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
SConscript
+2
-2
2 additions, 2 deletions
SConscript
cicd_testing/test-zafl-docker.sh
+2
-18
2 additions, 18 deletions
cicd_testing/test-zafl-docker.sh
deb/SConscript
+4
-6
4 additions, 6 deletions
deb/SConscript
with
13 additions
and
26 deletions
.gitlab-ci.yml
View file @
26f4b47d
...
...
@@ -17,6 +17,11 @@ stages:
script
:
-
./cicd_testing/test-zafl-docker.sh
test-zafl-docker-ubuntu20
:
<<
:
*test-zafl-docker
tags
:
-
ubuntu20
test-zafl-docker-ubuntu18
:
<<
:
*test-zafl-docker
tags
:
...
...
This diff is collapsed.
Click to expand it.
SConscript
View file @
26f4b47d
...
...
@@ -6,12 +6,12 @@ env.Replace(debug=ARGUMENTS.get("debug",0))
env
.
Replace
(
autozafl
=
ARGUMENTS
.
get
(
"
autozafl
"
,
0
))
if
int
(
env
[
'
debug
'
])
==
1
:
print
"
Setting debug mode
"
print
(
"
Setting debug mode
"
)
env
.
Append
(
CFLAGS
=
"
-g
"
)
env
.
Append
(
CXXFLAGS
=
"
-g
"
)
env
.
Append
(
LINKFLAGS
=
"
-g
"
)
else
:
print
"
Setting release mode
"
print
(
"
Setting release mode
"
)
env
.
Append
(
CFLAGS
=
"
-O3
"
)
env
.
Append
(
CXXFLAGS
=
"
-O3
"
)
env
.
Append
(
LINKFLAGS
=
"
-O3
"
)
...
...
This diff is collapsed.
Click to expand it.
cicd_testing/test-zafl-docker.sh
View file @
26f4b47d
...
...
@@ -2,25 +2,12 @@
set
-e
set
-x
export
ZAFL_PATH
=
git.zephyr-software.com:4567/opensrc/
lib
zafl/
export
ZAFL_PATH
=
git.zephyr-software.com:4567/opensrc/zafl/
export
ZAFL_TAG
=
zafl:latest
export
DOCKER_ZAFL
=
${
ZAFL_PATH
}${
ZAFL_TAG
}
do_login
()
{
# login to gitlab's docker registry as gitlab-user
docker login
$ZAFL_PATH
-u
gitlab-runner
-p
84MyuSuDo4kQat4GZ_Zs 2> /dev/null
}
do_clean
()
{
# rm -f *.deb
# scons -c
docker
logout
$ZAFL_PATH
||
true
}
do_test
()
{
scons
||
exit
1
...
...
@@ -35,7 +22,7 @@ do_test()
set
-e
local
res2
=
$?
sudo
apt-get remove libzafl
-y
sudo
apt-get remove libzafl
-y
||
true
if
[[
$res1
!=
0
]]
||
[[
$res2
!=
0
]]
;
then
exit
1
...
...
@@ -47,10 +34,7 @@ do_test()
main
()
{
do_clean
do_login
do_test
do_clean
}
main
"
$@
"
...
...
This diff is collapsed.
Click to expand it.
deb/SConscript
View file @
26f4b47d
...
...
@@ -11,14 +11,14 @@ minor_version = datetime.datetime.today().strftime('%Y.%m.%d')
DEBNAME
=
"
libzafl
"
p
=
subprocess
.
Popen
([
"
cat
"
,
Dir
(
'
.
'
).
abspath
+
"
/../MAJOR_VERSION
"
],
stdout
=
subprocess
.
PIPE
)
DEBVERSION
=
p
.
stdout
.
read
().
rstrip
()
DEBVERSION
=
p
.
stdout
.
read
().
rstrip
()
.
decode
(
"
utf-8
"
)
p
.
wait
()
print
'
DEBVERSION=
'
+
DEBVERSION
print
(
'
DEBVERSION=
'
+
str
(
DEBVERSION
))
DEBMAINT
=
"
jdh8d@gmail.com
"
p
=
subprocess
.
Popen
(
'
/usr/bin/dpkg-architecture --list|grep DEB_HOST_ARCH=|sed
\"
s/.*=//
\"
'
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
)
DEBARCH
=
p
.
stdout
.
read
().
rstrip
()
DEBARCH
=
p
.
stdout
.
read
().
rstrip
()
.
decode
(
"
utf-8
"
)
p
.
wait
()
print
'
DEBARCH=
'
+
DEBARCH
print
(
'
DEBARCH=
'
+
str
(
DEBARCH
))
DEBDEPENDS
=
"
libc6
"
DEBDESC
=
"
A really cool utility
"
...
...
@@ -78,8 +78,6 @@ env.Depends(DEBCONTROLFILE, env.Value(minor_version))
def
make_control
(
target
=
None
,
source
=
None
,
env
=
None
):
installed_size
=
0
for
i
in
DEBFILES
:
#print 'in make_control with i='+str(i)
#print 'in make_control with env.File(i[1])='+str(env.File(i[1]))
installed_size
+=
os
.
stat
(
str
(
env
.
File
(
i
[
1
])))[
6
]
control_info
=
CONTROL_TEMPLATE
%
(
DEBNAME
,
installed_size
,
DEBMAINT
,
DEBARCH
,
DEBVERSION
,
...
...
This diff is collapsed.
Click to expand it.