avformat/url: check url root node when rel include double dot and trim double dot
[ffmpeg.git] / tests / ref / fate / url
1 Testing ff_make_absolute_url:
2                                             (null) baz                  => baz
3                                           /foo/bar baz                  => /foo/baz
4                                           /foo/bar ../baz               => /baz
5                                           /foo/bar /baz                 => /baz
6                                           /foo/bar ../../../baz         => /baz
7                                 http://server/foo/ baz                  => http://server/foo/baz
8                              http://server/foo/bar baz                  => http://server/foo/baz
9                                 http://server/foo/ ../baz               => http://server/baz
10                          http://server/foo/bar/123 ../../baz            => http://server/baz
11                          http://server/foo/bar/123 /baz                 => http://server/baz
12                          http://server/foo/bar/123 https://other/url    => https://other/url
13     http://server/foo/bar?param=value/with/slashes /baz                 => http://server/baz
14             http://server/foo/bar?param&otherparam ?someparam           => http://server/foo/bar?someparam
15                              http://server/foo/bar //other/url          => http://other/url
16                              http://server/foo/bar ../../../../../other/url => http://server/other/url
17                              http://server/foo/bar /../../../../../other/url => http://server/other/url
18                              http://server/foo/bar /test/../../../../../other/url => http://server/other/url
19                              http://server/foo/bar /test/../../test/../../../other/url => http://server/other/url
20
21 Testing av_url_split:
22 /foo/bar                                                     =>                                                    -1 /foo/bar
23 http://server/foo/                                           => http                            server             -1 /foo/
24 http://example.com/foo/bar                                   => http                            example.com        -1 /foo/bar
25 http://user:pass@localhost:8080/foo/bar/123                  => http            user:pass       localhost        8080 /foo/bar/123
26 http://server/foo/bar?param=value/with/slashes               => http                            server             -1 /foo/bar?param=value/with/slashes
27 https://1l-lh.a.net/i/1LIVE_HDS@179577/master.m3u8           => https                           1l-lh.a.net        -1 /i/1LIVE_HDS@179577/master.m3u8
28 ftp://u:p%2B%2F2@ftp.pbt.com/ExportHD.mpg                    => ftp             u:p%2B%2F2      ftp.pbt.com        -1 /ExportHD.mpg
29 https://key.dns.com?key_id=2&model_id=12345&&access_key=     => https                           key.dns.com        -1 ?key_id=2&model_id=12345&&access_key=
30 http://example.com#tag                                       => http                            example.com        -1 #tag