Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
cea12251
Commit
cea12251
authored
15 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Split crypto tests into a separate module.
parent
410f31e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/test/Makefile.am
+1
-1
1 addition, 1 deletion
src/test/Makefile.am
src/test/test.c
+7
-755
7 additions, 755 deletions
src/test/test.c
src/test/test.h
+7
-1
7 additions, 1 deletion
src/test/test.h
src/test/test_crypto.c
+768
-0
768 additions, 0 deletions
src/test/test_crypto.c
with
783 additions
and
757 deletions
src/test/Makefile.am
+
1
−
1
View file @
cea12251
...
...
@@ -12,7 +12,7 @@ AM_CFLAGS = -I../or
# This seems to matter nowhere but on windows, but I assure you that it
# matters a lot there, and is quite hard to debug if you forget to do it.
test_SOURCES
=
test_data.c test.c tinytest.c
test_SOURCES
=
test_data.c test.c
test_crypto.c
tinytest.c
test_LDFLAGS
=
@TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@
\
@TOR_LDFLAGS_libevent@
...
...
This diff is collapsed.
Click to expand it.
src/test/test.c
+
7
−
755
View file @
cea12251
This diff is collapsed.
Click to expand it.
src/test/test.h
+
7
−
1
View file @
cea12251
...
...
@@ -8,7 +8,7 @@
/**
* \file test.h
* \brief Macros used by unit tests.
* \brief Macros
and functions
used by unit tests.
*/
#include
"compat.h"
...
...
@@ -62,5 +62,11 @@
#define test_memeq_hex(expr1, hex) test_mem_op_hex(expr1, ==, hex)
const
char
*
get_fname
(
const
char
*
name
);
crypto_pk_env_t
*
pk_generate
(
int
idx
);
void
legacy_test_helper
(
void
*
data
);
extern
const
struct
testcase_setup_t
legacy_setup
;
#endif
This diff is collapsed.
Click to expand it.
src/test/test_crypto.c
0 → 100644
+
768
−
0
View file @
cea12251
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