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
ea6e2910
Commit
ea6e2910
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Add zafl zafl_ida to test configs
Former-commit-id: 8c2e56a617cbe531e18e36844edbeb97005c8dee
parent
8e4a1e61
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_cmds.sh
+23
-19
23 additions, 19 deletions
tests/test_cmds.sh
with
23 additions
and
19 deletions
tests/test_cmds.sh
+
23
−
19
View file @
ea6e2910
...
...
@@ -17,17 +17,10 @@
#configs="killdeads_strata"
#configs="ibtl ibtl_p1"
#configs="zipr scfi p1"
#configs="rida"
configs
=
"rida_p1 rida_scfi rida_p1_scfi"
configs
=
"zafl zafl_ida"
# specify programs to test
#orig_progs="grep ncal bzip2 du ls objdump readelf sort tar touch tcpdump"
orig_progs
=
"du grep bzip2 ls objdump readelf sort tar touch"
orig_progs
=
"ncal"
#orig_progs="gedit"
#orig_progs="gimp"
#orig_progs="openssl"
#orig_progs="tcpdump sort touch"
orig_progs
=
"grep ncal bzip2 du ls objdump readelf sort tar touch tcpdump"
build_only
=
0
export
IB_VERBOSE
=
1
...
...
@@ -38,6 +31,7 @@ do
echo
"----------------------------------"
echo
"TEST CONFIGURATION:
$config
"
progs_pass
=
""
progs_pass_peasoup
=
""
progs_fail
=
""
progs_fail_peasoup
=
""
...
...
@@ -64,14 +58,23 @@ do
rm
$protected
fi
echo
"TEST (
$config
)
${
prog
}
: Protecting..."
progpath
=
$(
which
$prog
)
if
[
!
-e
$progpath
]
;
then
echo
"
$prog
not found: skipping..."
continue
fi
echo
"TEST (
$config
)
${
prog
}
: Protecting..."
progpath
=
$(
readlink
-f
$progpath
)
case
$config
in
zafl
)
zafl.sh
$progpath
$protected
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
zafl.sh
$progpath
$protected
--rida
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
zafl_ida
)
zafl.sh
$progpath
$protected
--ida
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
zipr
)
$PSZ
$progpath
$protected
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
...
...
@@ -152,9 +155,9 @@ do
if
[
!
$?
-eq
0
]
;
then
echo
"TEST (
$config
)
${
prog
}
: FAILED to peasoupify"
progs_fail_peasoup
=
"
$progs_fail_peasoup
$prog
"
progs_fail_peasoup
=
"
$progs_fail_peasoup
$prog
.
$config
"
else
progs_pass_peasoup
=
"
$progs_pass_peasoup
$prog
"
progs_pass_peasoup
=
"
$progs_pass_peasoup
$prog
.
$config
"
fi
if
[
$build_only
-eq
1
]
;
then
...
...
@@ -165,18 +168,19 @@ do
timeout
300 ../
$prog
/test_script.sh
$progpath
./
$protected
>
test_
${
prog
}
.log 2>&1
if
[
$?
-eq
0
]
;
then
echo
"TEST (
$config
)
${
prog
}
: PASS"
progs_pass
=
"
$progs_pass
$prog
"
progs_pass
=
"
$progs_pass
$prog
.
$config
"
else
echo
"TEST (
$config
)
${
prog
}
: FAIL"
progs_fail
=
"
$progs_fail
$prog
"
progs_fail
=
"
$progs_fail
$prog
.
$config
"
fi
done
echo
echo
"================================================"
echo
"TEST SUMMARY PASS (
$config
):
$progs_pass
"
echo
"TEST SUMMARY PASS (
$config
) (ps_analyze
):
$progs_pass
_peasoup
"
echo
"TEST SUMMARY FAIL (
$config
):
$progs_fail
"
echo
"TEST SUMMARY FAIL (
$config
) (ps_analyze
):
$progs_fail
_peasoup
"
echo
"TEST SUMMARY PASS (
build
):
$progs_pass
_peasoup
"
echo
"TEST SUMMARY PASS (
functional
):
$progs_pass
"
echo
"TEST SUMMARY FAIL (
build
):
$progs_fail
_peasoup
"
echo
"TEST SUMMARY FAIL (
functional
):
$progs_fail
"
popd
...
...
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