Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
98aa3f70
Commit
98aa3f70
authored
Nov 27, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move MD5 test to src/
parent
c9a36881
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
src/test/Makefile.am
src/test/Makefile.am
+2
-0
src/test/md5.c
src/test/md5.c
+10
-5
test/Makefile.am
test/Makefile.am
+0
-3
No files found.
src/test/Makefile.am
View file @
98aa3f70
...
...
@@ -4,6 +4,7 @@ check_PROGRAMS = \
test_block
\
test_dictionary
\
test_i18n_atof
\
test_md5
\
test_timer
\
test_url
\
test_utf8
\
...
...
@@ -22,6 +23,7 @@ test_block_DEPENDENCIES =
test_dictionary_SOURCES
=
dictionary.c
test_i18n_atof_SOURCES
=
i18n_atof.c
test_md5_SOURCES
=
md5.c
test_timer_SOURCES
=
timer.c
test_url_SOURCES
=
url.c
test_utf8_SOURCES
=
utf8.c
...
...
test/src/misc
/md5.c
→
src/test
/md5.c
View file @
98aa3f70
...
...
@@ -21,11 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <string.h>
#include "../../libvlc/test.h"
#include <vlc_common.h>
#include <vlc_md5.h>
...
...
@@ -60,15 +62,18 @@ static void test_config_StringEscape()
EndMD5
(
&
md5
);
char
*
psz_hash
=
psz_md5_hash
(
&
md5
);
printf
(
"Output: %s, Expected: %s
\n
"
,
psz_hash
,
md5_samples
[
i
].
psz_md5
);
assert
(
!
strcmp
(
psz_hash
,
md5_samples
[
i
].
psz_md5
)
);
if
(
strcmp
(
psz_hash
,
md5_samples
[
i
].
psz_md5
)
)
{
printf
(
"Output: %s
\n
Expected: %s
\n
"
,
psz_hash
,
md5_samples
[
i
].
psz_md5
);
abort
();
}
free
(
psz_hash
);
}
}
int
main
(
void
)
{
log
(
"Testing md5 calculation
\n
"
);
test_config_StringEscape
();
return
0
;
...
...
test/Makefile.am
View file @
98aa3f70
...
...
@@ -18,7 +18,6 @@ check_PROGRAMS = \
test_libvlc_media_list
\
test_libvlc_media_player
\
test_src_config_chain
\
test_src_misc_md5
\
test_src_misc_variables
\
$(NULL)
...
...
@@ -73,8 +72,6 @@ test_src_misc_variables_SOURCES = src/misc/variables.c
test_src_misc_variables_LDADD
=
$(LIBVLCCORE)
$(LIBVLC)
test_src_config_chain_SOURCES
=
src/config/chain.c
test_src_config_chain_LDADD
=
$(LIBVLCCORE)
test_src_misc_md5_SOURCES
=
src/misc/md5.c
test_src_misc_md5_LDADD
=
$(LIBVLCCORE)
checkall
:
$(MAKE)
check_PROGRAMS
=
"
$(check_PROGRAMS)
$(EXTRA_PROGRAMS)
"
check
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment