Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Backend
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
Zipr Backend
Commits
a680b72a
Commit
a680b72a
authored
9 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Add initial Dollop testing framework.
parent
b4d1a92b
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
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
test/SConscript
+9
-1
9 additions, 1 deletion
test/SConscript
test/ZiprDollop.cpp
+46
-0
46 additions, 0 deletions
test/ZiprDollop.cpp
with
56 additions
and
1 deletion
.gitattributes
+
1
−
0
View file @
a680b72a
...
...
@@ -32,6 +32,7 @@ src/zipr_stats.cpp -text
test/MemorySpace.cpp -text
test/SConscript -text
test/SConstruct -text
test/ZiprDollop.cpp -text
test/ZiprOptions.cpp -text
test/dylib/Makefile -text
test/dylib/dylib.c -text
...
...
This diff is collapsed.
Click to expand it.
test/SConscript
+
9
−
1
View file @
a680b72a
...
...
@@ -19,6 +19,13 @@ OptionFiles= '''
../src/zipr_options.cpp
'''
DollopFiles
=
'''
ZiprDollop.cpp
../src/zipr_dollop_man.cpp
../src/dollop.cpp
../src/utils.cpp
'''
# ELFIO needs to be first so we get the zipr version instead of the sectrans version. the zipr version is modified to include get_offset.
cpppath
=
'''
.
...
...
@@ -60,5 +67,6 @@ myenv=myenv.Clone(CPPPATH=Split(cpppath), LIBS=Split(libs), LIBPATH=Split(libpat
MemorySpace
=
myenv
.
Program
(
"
MemorySpace.exe
"
,
Split
(
MemorySpaceFiles
))
Options
=
myenv
.
Program
(
"
Options.exe
"
,
Split
(
OptionFiles
))
Default
([
MemorySpace
,
Options
])
Dollop
=
myenv
.
Program
(
"
Dollop.exe
"
,
Split
(
DollopFiles
))
Default
([
MemorySpace
,
Options
,
Dollop
])
This diff is collapsed.
Click to expand it.
test/ZiprDollop.cpp
0 → 100644
+
46
−
0
View file @
a680b72a
/*
* Copyright (c) 2014 - Zephyr Software LLC
*
* This file may be used and modified for non-commercial purposes as long as
* all copyright, permission, and nonwarranty notices are preserved.
* Redistribution is prohibited without prior written consent from Zephyr
* Software.
*
* Please contact the authors for restrictions applying to commercial use.
*
* THIS SOURCE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Author: Zephyr Software
* e-mail: jwd@zephyr-software.com
* URL : http://www.zephyr-software.com/
*
*/
#include
<zipr_all.h>
#include
<zipr_sdk.h>
using
namespace
zipr
;
using
namespace
std
;
#define INVOKE(a) \
bool __ ## a ## _result = false; \
__ ## a ## _result = a(); \
printf(#a ":"); \
if (__ ## a ## _result) \
{ \
printf(" pass\n"); \
} \
else \
{ \
printf(" fail\n"); \
}
int
main
(
int
argc
,
char
*
argv
[])
{
ZiprDollopManager_t
dollop_man
;
libIRDB
::
Instruction_t
*
insn
=
new
libIRDB
::
Instruction_t
();
dollop_man
.
AddDollop
(
ZiprDollopManager_t
::
CreateDollop
(
insn
));
return
0
;
}
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