Francois Cartegnie
d5fd1c8ca2
tests: check dash uri token replacements
2018-07-31 18:31:32 +02:00
Steve Lhomme
ccd4241414
modules: set 0 for items which value is actually 0
...
And it should not be set explicitly to INPUT_DURATION_NONE which is for nodes
and directories.
2018-07-30 07:15:31 +02:00
Rémi Denis-Courmont
9541414aea
tls: use const struct for callbacks
2018-07-29 12:00:59 +03:00
Thomas Guillem
967a217668
test_input_stream: reduce random file size
...
1MB is enough, this fixes test timeout happening randomly.
2018-07-12 18:49:13 +02:00
Steve Lhomme
19b2429265
test:demux-run: use %PRIuMAX instead of %ju
2018-07-11 09:31:27 +02:00
Steve Lhomme
cdc784b2e9
libvlc: make use of the special duration value INPUT_DURATION_ZERO
...
Instead of a hardcoded value
2018-07-07 10:16:25 +02:00
Steve Lhomme
c7ba6127be
test:libvlc: explicitly convert milliseconds into vlc_tick_t
2018-07-06 16:05:24 +02:00
Steve Lhomme
26fef56c52
core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t
2018-07-06 10:48:19 +02:00
Steve Lhomme
8b0c6bb9fa
rename msleep() to vlc_tick_sleep()
2018-06-22 13:29:09 +02:00
Steve Lhomme
a6149e2c1e
include: rename vlc_mtime.h to vlc_tick.h
2018-06-22 13:26:57 +02:00
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
...
Keep a copy of vlc_tick_tfor backward compatibility.
2018-06-22 13:19:24 +02:00
Hugo Beauzée-Luyssen
d81da6c4f5
test: input: Assign packetizer to the owner
2018-06-14 13:26:30 +02:00
Rémi Denis-Courmont
d13408f04d
demux-run: use typed pointer for parent object
2018-06-10 17:43:05 +03:00
Rémi Denis-Courmont
ab6dfaa92f
es_out: use constant callback structures
2018-06-10 17:43:05 +03:00
Rémi Denis-Courmont
0b3b1edf14
variables: use table of vlc_value_t for VLC_VAR_GETCHOICES
...
This simplifies the notation. No function differences.
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
7048874668
variables: inline var_FreeList() in simple loops
...
This works like config choices.
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
5e50399a45
variables: add count parameter for VLC_VAR_GETCHOICES
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
34925c7cb5
variables: use char *** for VLC_VAR_GETCHOICES texts
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
63ce436225
variables: pass vlc_list_t directly with VLC_VAR_GETCHOICES
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
77a24d6a33
variables: pass VLC_VAR_DELCHOICES parameter by value
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
84b960546b
variables: pass VLC_VAR_ADDCHOICES parameters by value
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
123aa0a683
variables: pass VLC_VAR_SETSTEP parameter by value
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
880bfc7266
variables: pass VLC_VAR_SETMINMAX parameters by value
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
2a4003910b
variables: remove first useless VLC_VAR_CLEARCHOICES parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
43a7005129
variables: remove second useless VLC_VAR_CLEARCHOICES parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
c35617c578
variables: remove useless VLC_VAR_DELCHOICE parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
dcf2f38330
variables: remove useless VLC_VAR_GETSTEP parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
53ee7207fe
variables: remove useless VLC_VAR_SETSTEP parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
8f6a9a7e0b
variables: remove useless VLC_VAR_GETMAX parameter
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
bee23fb0f8
variables: remove useless VLC_VAR_GETMIN parameter
2018-06-10 13:08:44 +03:00
Thomas Guillem
f1f9c10113
test: input: use new decoder owner/callbacks
...
Introduced by d49b43b606
2018-06-07 12:08:25 +02:00
Hugo Beauzée-Luyssen
e65aec1c3b
demux-run: Fix leak when failing to create a decoder
2018-04-20 10:28:33 +02:00
Hugo Beauzée-Luyssen
e196e7cad0
test: fuzzing: Add ogg module
2018-04-20 10:28:33 +02:00
Hugo Beauzée-Luyssen
9df0795c69
demux-run: Ignore ES_OUT_SET_GROUP
2018-04-18 12:15:52 +02:00
Hugo Beauzée-Luyssen
2917cf94a6
demux-run: Don't abort on ES_OUT_RESTART_ES
2018-04-18 12:15:52 +02:00
Rémi Denis-Courmont
ef99cf2d66
demux: remove constant demux_New() parameter
2018-04-16 18:08:07 +03:00
Steve Lhomme
333ed248b9
use the proper check for sys/socket.h availability
2018-04-12 13:19:23 +02:00
Francois Cartegnie
65a3c5eb54
tests: add annexb lookup test
2018-04-12 10:45:07 +02:00
Rémi Denis-Courmont
bc98af6858
test: inherit a variable that actually exists
2018-02-28 20:07:25 +02:00
Hugo Beauzée-Luyssen
40a4fd63da
demux-run: Re-add MKV to the list of fuzzer modules
...
But only when MKV is enabled.
reverts e75e49c039
.
2018-02-28 17:52:49 +01:00
Rémi Denis-Courmont
787c1cca0b
demux: remove demux_sys_t.info
2018-01-28 16:48:45 +02:00
Francois Cartegnie
9aa79523e1
test: hxxx: reorder include
2017-12-26 23:49:46 +01:00
Francois Cartegnie
bb9623a7e8
test: hxxx: missing config.h
2017-12-26 11:05:41 +01:00
Rémi Denis-Courmont
e75e49c039
fuzz: drop mkv (refs #19190 )
2017-12-16 16:18:04 +02:00
Rémi Denis-Courmont
0d95677aa3
dirac: remove Dirac packetizer
2017-12-16 16:18:01 +02:00
Rémi Denis-Courmont
eb8ab8df4b
diracsys: remove raw Dirac demuxer
2017-12-16 11:55:36 +02:00
Thomas Guillem
766224ce65
test: input: fix decoder reload
...
Be sure to not use the previous decoder context.
2017-11-15 14:35:17 +01:00
Hugo Beauzée-Luyssen
9dbe39da27
test: Add vlc-demux(-dec)-run to default targets
...
(when building with libfuzzer)
2017-11-12 18:44:26 +01:00
Thomas Guillem
24c731a896
test: input: fix test_decoder_destroy
...
Behave like the one in the core:
- clean decoder->p_description
- clean fmt_out only in case of success
2017-11-12 18:43:18 +01:00
Rémi Denis-Courmont
ec31390c5d
test: simplify fuzzer build rules
2017-11-12 16:00:10 +02:00
Thomas Guillem
eacf9abdd3
test: build vlc-demux-* when libfuzzer is used
2017-11-12 14:40:29 +01:00
Thomas Guillem
12324e11f7
test: input: add missing modules
2017-11-12 14:40:29 +01:00
Shaleen Jain
b83e9fe08d
test: input: test decoder from demux
...
This a merge of the work done by Shaleen during GSOC 2017. See
https://code.videolan.org/GSoC2017/shalzz/vlc.git
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-11-12 14:40:29 +01:00
Thomas Guillem
1fc1cd332e
test: input: fix demux-run usage
2017-11-11 19:06:34 +01:00
Thomas Guillem
195c909f08
test: input: add missing modules
2017-11-11 15:45:40 +01:00
Shaleen Jain
74e7bd240d
test: input: test demux controls
...
This a partial merge of the work done by Shaleen during GSOC 2017. See
https://code.videolan.org/GSoC2017/shalzz/vlc.git
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-11-11 15:45:40 +01:00
Thomas Guillem
b90ec7d343
test: input: change args handling
...
vlc arguments are passed by environment variable in order to don't mess
libfuzzer arguments handling:
- "VLC_TARGET" to pass the target name (or demux name).
- "V" to specify the verbose level.
2017-11-11 15:45:40 +01:00
Thomas Guillem
e25fefce33
test: input: add console
2017-11-11 15:45:40 +01:00
Thomas Guillem
b6689cb891
test: input: move libvlc initialisation in a common helper
2017-11-11 15:45:40 +01:00
Thomas Guillem
2c2eb4d06c
configure: add --with-libfuzzer
...
DIR is the dir path of the libFuzzer.a static library.
When used, it forces a static build without vlc binary and enable sanitize
coverage.
How to fetch and build libFuzzer.a from llvm.org:
$ git clone https://git.llvm.org/git/compiler-rt
$ cd compiler-rt/lib/fuzzer
for gcc:
$ CXX=g++ ./build.sh
for clang:
$ ./build.sh
This a partial merge of the work done by Shaleen during GSOC 2017. See
https://code.videolan.org/GSoC2017/shalzz/vlc.git
2017-11-11 15:45:40 +01:00
Thomas Guillem
aa4c7ce795
input: item: fix false positives when matching slaves
...
- don't match 2 possible slaves between each others
- The slave name len should not be twice longer than the item name len.
(avoid matching "2016 - blabla.aac" with "20.mkv" for example)
The matching algorithm is still quite dumb and far from perfect. We should
detect item as slaves only if they have a language indication in their path
name.
Fixes #18913
2017-11-06 15:51:47 +01:00
Thomas Guillem
674c416d2d
test: slaves: fix false positive when calling test_expected_slaves with 0
2017-11-06 15:41:03 +01:00
Thomas Guillem
bb44d80ade
test: slaves: remove unused code
2017-11-06 15:41:03 +01:00
Thomas Guillem
779354ca8b
test: media: don't detect slaves when testing parsing
...
There is a slave test for that.
2017-11-06 15:40:27 +01:00
Hugo Beauzée-Luyssen
752e050944
test: Don't always build fuzz targets
2017-09-07 11:33:04 +02:00
Rémi Denis-Courmont
e15a5753fd
vlc-demux-run: add demux fuzzing helper
...
This includes support for statically linked plugins. It vastly increases
the test iteration speed, which is critical for fuzz testing.
Furthermore, it is necessary for coverage-driven fuzz testing to work at
all.
This also provides a (manually compiled only) back-end for LLVM's
LibFuzzer using mostly the same code.
1) Debugging, regression testing or unguided fuzzing:
- Make a normal build (debug and sanitization recommended).
- Execute: "test/vlc-demux-run [demux name] <file path>"
2) American Fuzzy Lop run:
- Make a *static* build with AFL as the toolchain.
- (Where applicable) perform adequate religious luck granting
offerings or other rites.
- Run AFL with test/vlc-demux-run as the fuzzed executable.
3) LibFuzzer:
- Make a preferrably static build with Clang as the toolchain.
- Manually build test/vlc-demux-libfuzzer.
- Run the executable with the LibFuzzer command line parameters syntax.
2017-09-06 19:14:44 +03:00
Francois Cartegnie
38bef9cdb5
libvlc: remove vlc_epg_Merge
2017-09-05 15:26:41 +02:00
Rémi Denis-Courmont
71cb6dbbf0
test: hxxx: add missing dependency
...
This test case requires libvlccore for block_Alloc().
This change removes the need for the -static kludge.
2017-03-17 04:13:33 +02:00
Rémi Denis-Courmont
62481d9b77
test: use custom cert directory for TLS tests, add some cases
...
This avoids the ugly hack based on dialogs and home directory.
2017-02-26 19:51:00 +02:00
Rémi Denis-Courmont
6c59aa02f1
test: disable TLS test if sout is disabled
...
The test requires server-side TLS.
2017-02-26 19:51:00 +02:00
Rémi Denis-Courmont
dfadf3eccb
gnutls: add option to load CAs from a directory
...
This is useful at least in automated testing.
2017-02-26 19:51:00 +02:00
Rémi Denis-Courmont
e5d1546336
tls: use newer vlc_tls_* APIs in test case
2017-02-26 15:23:58 +02:00
Rémi Denis-Courmont
899f81113f
vlc_tls_ServerSessionCreate() takes a vlc_tls_t
...
This adds transitional vlc_tls_ServerSessionCreateFD() helper for
compatiblity. This is only to maintain sequential builds. The helper
will be removed shortly.
2017-02-26 15:22:46 +02:00
Thomas Guillem
3d204990e5
test/epg: fix sign warnings
2017-02-23 19:55:04 +01:00
Rémi Denis-Courmont
31e1756c91
update: use Makefile conditional to disable code
...
This fixes the build without gcrypt.
2017-01-29 13:01:01 +02:00
Thomas Guillem
cd38b96e15
test/keystore: test that smb domain can be saved
2017-01-23 10:21:54 +01:00
Thomas Guillem
9a682eb802
test/keystore: test if realm and authtype match
2017-01-23 10:21:54 +01:00
Thomas Guillem
ca160e39d7
test/keystore: fix infinite loop when failing from dialog
2017-01-23 10:21:54 +01:00
Thomas Guillem
315411766c
test/keystore: add missing test_init()
2017-01-10 15:34:19 +01:00
Thomas Guillem
5357bb9801
test/keystore: fix domain/username inverted logic
2017-01-10 15:30:32 +01:00
Thomas Guillem
b38f535fdc
test/keystore: fix warning
2017-01-10 15:30:32 +01:00
Filip Roséen
e4fbdcebeb
stream: rename vlc_stream_NewMRL to vlc_stream_NewURL
...
The function does not open MRLs, as correctly described in its
documentation, as such it is rather unfortunate that its name uses MRL
instead of URL (especially given that it cannot handle MRLs).
These changes are simply renaming all occurrences of the function, so
that the behavior of the function is properly reflected by its name.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2016-12-06 15:57:19 +01:00
Steve Lhomme
562a5f59b2
test: use the jpeg file to test vout specific calls
...
make sure we use a dummy/portable vout by default in tests.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2016-11-15 18:13:46 +01:00
David Fuhrmann
01b0ff943c
Revert "tests/tls: Disable checks for ALPN on apple platforms"
...
This is not sufficient to disable the test currently.
This reverts commit 784ab6ce69
.
2016-11-05 17:52:44 +01:00
David Fuhrmann
784ab6ce69
tests/tls: Disable checks for ALPN on apple platforms
...
On Apple platforms, ALPN does not work as securetransport does
not provide any public API for that. So do not check for that
feature until support is added.
2016-11-01 15:12:06 +01:00
Rémi Denis-Courmont
ca5dd4d0a1
test: fix linking (with --disable-shared)
2016-10-28 21:59:35 +03:00
Rémi Denis-Courmont
36e12797b4
variables: remove redundant HASCHOICE flag in var_Create()
...
The core adds the flag automatically as needed.
2016-10-22 17:54:45 +03:00
Rémi Denis-Courmont
31e721a70b
variables: remove VLC_VAR_SET{MIN,MAX}
2016-10-22 12:14:11 +03:00
Rémi Denis-Courmont
4b1ba248d3
test: use VLC_VAR_SETMINMAX
2016-10-22 12:08:59 +03:00
Rémi Denis-Courmont
2bd05b42b0
test: use VLC_VAR_SETMINMAX
2016-10-22 11:57:14 +03:00
Rémi Denis-Courmont
f08b4c6d26
variables: remove HASMIN and HASMAX flags
...
Scalar types always have limits. As of the previous commit, those flags
are no longer used externally anyway.
2016-10-22 11:55:52 +03:00
Rémi Denis-Courmont
49bbf8dd68
variables: remove VLC_VAR_HASSTEP
2016-10-22 11:26:48 +03:00
Rémi Denis-Courmont
7a7d863f64
test: check VLC_VAR_GETSTEP result rather than HASSTEP flag
...
This matches what the UI code actually does. No code actually cares
about the HASSTEP flag.
2016-10-22 11:25:53 +03:00
Francois Cartegnie
c5ce960994
packetizer: hxxx: add NAL iterators
2016-10-05 14:12:32 +02:00
Thomas Guillem
215df6e644
test/media: test preparser timeout and cancelation
2016-09-27 19:01:48 +02:00
Thomas Guillem
af0f469647
test/media: factor libvlc creation
2016-09-27 19:01:48 +02:00
Thomas Guillem
5f3abe14ea
libvlc: add renderer_discoverer external API
2016-09-20 11:06:51 +02:00
Francois Cartegnie
aa8683fd2c
epg: API changes
...
EIT structs and Events and should be referenced by their
unique ID.
First step towards in depth changes to epg_t et epg_event_t.
2016-09-15 14:58:37 +02:00
Jean-Baptiste Kempf
cabfa59028
test crypto: return 77 when skipped
2016-09-08 19:09:51 +02:00
Hugo Beauzée-Luyssen
40f53204f8
run_vlc.sh: Don't fail when running without a TTY
...
This should help the test to pass on our buildbots
2016-08-09 20:59:14 +02:00