Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Zipr Toolchain
Commits
f4c1d448
Commit
f4c1d448
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Add elfdep test
Former-commit-id: b98b5790a4fc33d31656bb7b8c8a8d9d9fe49a12
parent
01dcd78d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+31
-0
31 additions, 0 deletions
.gitlab-ci.yml
cicd_tests/elfdep.sh
+9
-0
9 additions, 0 deletions
cicd_tests/elfdep.sh
libElfDep/test/test-elfdep.sh
+44
-0
44 additions, 0 deletions
libElfDep/test/test-elfdep.sh
with
84 additions
and
0 deletions
.gitlab-ci.yml
+
31
−
0
View file @
f4c1d448
...
...
@@ -145,3 +145,34 @@ xform-cat-centos75:
variables
:
OS
:
'
centos75'
#
# elfdep test
#
# template
.elfdep
:
&elfdep
stage
:
test
script
:
-
./cicd_tests/elfdep.sh
elfdep-ubuntu18
:
<<
:
*elfdep
tags
:
-
ubuntu18
variables
:
OS
:
'
ubuntu18'
elfdep-ubuntu16
:
<<
:
*elfdep
tags
:
-
ubuntu16
variables
:
OS
:
'
ubuntu16'
elfdep-centos75
:
<<
:
*elfdep
tags
:
-
centos75
variables
:
OS
:
'
centos75'
This diff is collapsed.
Click to expand it.
cicd_tests/elfdep.sh
0 → 100755
+
9
−
0
View file @
f4c1d448
#!/bin/bash
set
-e
set
-x
cd
$CICD_MODULE_WORK_DIR
/peasoup_umbrella
source
set_env_vars
cd
$SECURITY_TRANSFORMS_HOME
/libElfDep/test/
./test-elfdep.sh
This diff is collapsed.
Click to expand it.
libElfDep/test/test
it
.sh
→
libElfDep/test/test
-elfdep
.sh
+
44
−
0
View file @
f4c1d448
#!/bin/bash
TMP_ORIG
=
/tmp/testelfdep.ls.orig.
$$
TMP_ORIG2
=
/tmp/testelfdep.ls.orig.2.
$$
TMP_ELFDEP
=
/tmp/testelfdep.ls.elfdep.
$$
cleanup_files
()
{
rm
/tmp/testelfdep.ls
*
>
/dev/null 2>&1
}
cleanup
()
{
echo
"************"
echo
"test failed."
echo
"************"
cleanup_files
exit
1
}
...
...
@@ -14,8 +25,19 @@ scons || cleanup
$PSZ
/bin/ls ./xxx
-c
move_globals
=
on
-o
move_globals:--elftables
-c
edt
=
on
||
cleanup
/bin/ls /tmp
||
cleanup
./xxx /tmp
||
cleanup
/bin/ls /tmp
>
$TMP_ORIG
||
cleanup
./xxx /tmp
>
$TMP_ELFDEP
||
cleanup
echo
"Verify external vars was overwritten"
grep
"var = 0"
$TMP_ELFDEP
||
cleanup
grep
"var = 1"
$TMP_ELFDEP
||
cleanup
echo
"Verify same output"
grep
-v
"var ="
$TMP_ELFDEP
>
$TMP_ORIG2
diff
$TMP_ORIG2
$TMP_ELFDEP
cleanup_files
echo
echo
"test passed."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment