Bug 616542 - Shorten file path length of mochitest; r=ted
[gecko.git] / content / media / test / Makefile.in
bloba4b49bcded92014267f25ecca867db5d278b52bc
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Original Code is Mozilla code.
16 # The Initial Developer of the Original Code is the Mozilla Corporation.
17 # Portions created by the Initial Developer are Copyright (C) 2007
18 # the Initial Developer. All Rights Reserved.
20 # Contributor(s):
21 # Chris Double <chris.double@double.co.nz>
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 2 or later (the "GPL"), or
25 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 # in which case the provisions of the GPL or the LGPL are applicable instead
27 # of those above. If you wish to allow use of your version of this file only
28 # under the terms of either the GPL or the LGPL, and not to allow others to
29 # use your version of this file under the terms of the MPL, indicate your
30 # decision by deleting the provisions above and replace them with the notice
31 # and other provisions required by the GPL or the LGPL. If you do not delete
32 # the provisions above, a recipient may use your version of this file under
33 # the terms of any one of the MPL, the GPL or the LGPL.
35 # ***** END LICENSE BLOCK *****
37 DEPTH = ../../..
38 topsrcdir = @top_srcdir@
39 srcdir = @srcdir@
40 VPATH = @srcdir@
41 relativesrcdir = content/media/test
43 include $(DEPTH)/config/autoconf.mk
44 include $(topsrcdir)/config/rules.mk
46 # Media tests should be backend independent, i.e., not conditioned on
47 # MOZ_OGG, MOZ_WAVE etc. (The only exception is the can_play_type tests,
48 # which necessarily depend on the backend(s) configured.) As far as possible,
49 # each test should work with any resource type. This makes it
50 # easy to add new backends and reduces the amount of test duplication.
52 # For each supported backend, resources that can be played by that backend
53 # should be added to the lists in manifest.js. Media tests that aren't
54 # testing for a bug in handling a specific resource type should pick one of
55 # the lists in manifest.js and run the test for each resource in the list
56 # that is supported in the current build (the canPlayType API is useful
57 # for this).
59 # To test whether a valid resource can simply be played through correctly,
60 # and optionally that its metadata is read correctly, just
61 # add it to gPlayTests in manifest.js. To test whether an invalid
62 # resource correctly throws an error (and does not cause a crash or hang),
63 # just add it to gErrorTests in manifest.js.
65 # To test for a specific bug in handling a specific resource type,
66 # make the test first check canPlayType for the type, and if it's not
67 # supported, just do ok(true, "Type not supported") and stop the test.
69 _TEST_FILES = \
70 allowed.sjs \
71 can_play_type_ogg.js \
72 can_play_type_wave.js \
73 can_play_type_webm.js \
74 cancellable_request.sjs \
75 dynamic_redirect.sjs \
76 file_access_controls.html \
77 fragment_play.js \
78 fragment_noplay.js \
79 manifest.js \
80 reactivate_helper.html \
81 redirect.sjs \
82 referer.sjs \
83 seek1.js \
84 seek2.js \
85 seek3.js \
86 seek4.js \
87 seek5.js \
88 seek6.js \
89 seek7.js \
90 seek8.js \
91 seek9.js \
92 seek10.js \
93 seek11.js \
94 seek12.js \
95 seek13.js \
96 seekLies.sjs \
97 test_access_control.html \
98 test_audio1.html \
99 test_audio2.html \
100 test_autoplay.html \
101 test_autoplay_contentEditable.html \
102 test_buffered.html \
103 test_bug448534.html \
104 test_bug463162.xhtml \
105 test_bug465498.html \
106 test_bug493187.html \
107 test_bug495145.html \
108 test_bug495300.html \
109 test_bug686942.html \
110 test_can_play_type.html \
111 test_closing_connections.html \
112 test_constants.html \
113 test_controls.html \
114 test_currentTime.html \
115 test_decode_error.html \
116 test_decoder_disable.html \
117 test_delay_load.html \
118 test_error_on_404.html \
119 test_error_in_video_document.html \
120 test_info_leak.html \
121 test_load.html \
122 test_load_candidates.html \
123 test_load_source.html \
124 test_media_selection.html \
125 test_mozLoadFrom.html \
126 test_networkState.html \
127 test_new_audio.html \
128 test_paused.html \
129 test_paused_after_ended.html \
130 test_play_events.html \
131 test_play_events_2.html \
132 test_playback.html \
133 test_playback_errors.html \
134 test_seekable1.html \
135 test_preload_actions.html \
136 test_preload_attribute.html \
137 test_progress.html \
138 test_reactivate.html \
139 test_readyState.html \
140 test_replay_metadata.html \
141 test_seek.html \
142 test_seek2.html \
143 test_seekLies.html \
144 test_seek_out_of_range.html \
145 test_source.html \
146 test_source_write.html \
147 test_standalone.html \
148 test_timeupdate_small_files.html \
149 test_volume.html \
150 test_video_to_canvas.html \
151 use_large_cache.js \
152 test_audiowrite.html \
153 $(NULL)
155 # Don't run in suite
156 ifndef MOZ_SUITE
157 _TEST_FILES += test_play_twice.html
158 else
159 $(warning test_play_twice.html is disabled pending investigation. Bug 598252)
160 endif
162 # These tests are disabled until we figure out random failures.
163 # When these tests are fixed, we should also make them backend-independent.
164 # test_resume.html \
165 # Bug 492821:
166 # test_videoDocumentTitle.html
167 # Bug 493692:
168 # test_preload_suspend.html
169 # Bug 567954 and Bug 574586:
170 # test_mixed_principals.html
171 # Disabled since we don't play Wave files standalone, for now
172 # test_audioDocumentTitle.html
174 # sample files
175 _TEST_FILES += \
176 320x240.ogv \
177 448636.ogv \
178 audio-overhang.ogg \
179 audio-gaps.ogg \
180 beta-phrasebook.ogg \
181 bogus.ogv \
182 bug495129.ogv \
183 bug495794.ogg \
184 bug461281.ogg \
185 bug482461.ogv \
186 bug482461-theora.ogv \
187 bug498380.ogv \
188 bug498855-1.ogv \
189 bug498855-2.ogv \
190 bug498855-3.ogv \
191 bug499519.ogv \
192 bug500311.ogv \
193 bug500311.ogv^headers^ \
194 bug501279.ogg \
195 bug504613.ogv \
196 bug504644.ogv \
197 bug504843.ogv \
198 bug506094.ogv \
199 bug516323.ogv \
200 bug516323.indexed.ogv \
201 bug520493.ogg \
202 bug520500.ogg \
203 bug520908.ogv \
204 bug520908.ogv^headers^ \
205 bug523816.ogv \
206 bug533822.ogg \
207 bug557094.ogv \
208 bug556821.ogv \
209 bug580982.webm \
210 bug603918.webm \
211 bug604067.webm \
212 chain.ogv \
213 dirac.ogg \
214 multiple-bos.ogg \
215 split.webm \
216 seek.ogv \
217 seek.webm \
218 seek.yuv \
219 short-video.ogv \
220 small-shot.ogg \
221 sound.ogg \
222 spacestorm-1000Hz-100ms.ogg \
223 video-overhang.ogg \
224 file_a4_tone.ogg \
225 $(NULL)
227 # Wave sample files
228 _TEST_FILES += \
229 big.wav \
230 bogus.wav \
231 r11025_msadpcm_c1.wav \
232 r11025_s16_c1.wav \
233 r11025_s16_c1_trailing.wav \
234 r11025_u8_c1.wav \
235 r11025_u8_c1_trunc.wav \
236 r16000_u8_c1_list.wav \
237 wavedata_u8.wav \
238 wavedata_s16.wav \
239 audio.wav \
240 $(NULL)
242 # Other files
243 _TEST_FILES += \
244 bogus.duh \
245 $(NULL)
247 # These tests contain backend-specific tests. Try to write backend
248 # independent tests rather than adding to this list.
249 ifdef MOZ_OGG
250 _TEST_FILES += \
251 test_can_play_type_ogg.html \
252 test_contentDuration1.html \
253 test_contentDuration2.html \
254 test_contentDuration3.html \
255 test_contentDuration4.html \
256 test_contentDuration5.html \
257 test_contentDuration6.html \
258 test_contentDuration7.html \
259 contentDuration1.sjs \
260 contentDuration2.sjs \
261 contentDuration3.sjs \
262 contentDuration4.sjs \
263 contentDuration5.sjs \
264 contentDuration6.sjs \
265 contentDuration7.sjs \
266 noContentLength.sjs \
267 test_seekable2.html \
268 test_seekable3.html \
269 test_a4_tone.html \
270 file_audio_event_adopt_iframe.html \
271 test_audio_event_adopt.html \
272 test_framebuffer.html \
273 test_referer.html \
274 $(NULL)
275 else
276 _TEST_FILES += \
277 test_can_play_type_no_ogg.html \
278 $(NULL)
279 endif
281 ifdef MOZ_WEBM
282 _TEST_FILES += \
283 test_can_play_type_webm.html \
284 $(NULL)
285 else
286 _TEST_FILES += \
287 test_can_play_type_no_webm.html \
288 $(NULL)
289 endif
291 ifdef MOZ_WAVE
292 _TEST_FILES += \
293 test_can_play_type_wave.html \
294 test_fragment_play.html \
295 test_fragment_noplay.html \
296 test_wave_data_u8.html \
297 test_wave_data_s16.html \
298 $(NULL)
299 else
300 _TEST_FILES += \
301 test_can_play_type_no_wave.html \
302 $(NULL)
303 endif
305 libs:: $(_TEST_FILES)
306 $(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/$(mochitestdir)/tests/$(relativesrcdir)