@@ -2903,7 +2903,6 @@ def test_glfw3_hi_dpi_aware(self):
2903
2903
2904
2904
@requires_graphics_hardware
2905
2905
@also_with_wasm2js
2906
- @no_wasm64 ('SDL2 + wasm64' )
2907
2906
def test_sdl2_image (self ):
2908
2907
# load an image file, get pixel data. Also O2 coverage for --preload-file
2909
2908
shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.jpg' )
@@ -2918,7 +2917,6 @@ def test_sdl2_image(self):
2918
2917
'-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--use-preload-plugins'
2919
2918
])
2920
2919
2921
- @no_wasm64 ('SDL2 + wasm64' )
2922
2920
@requires_graphics_hardware
2923
2921
def test_sdl2_image_jpeg (self ):
2924
2922
shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.jpeg' )
@@ -2928,7 +2926,6 @@ def test_sdl2_image_jpeg(self):
2928
2926
'-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--use-preload-plugins'
2929
2927
])
2930
2928
2931
- @no_wasm64 ('SDL2 + wasm64' )
2932
2929
@also_with_wasmfs
2933
2930
@requires_graphics_hardware
2934
2931
def test_sdl2_image_formats (self ):
@@ -2945,7 +2942,6 @@ def test_sdl2_image_formats(self):
2945
2942
'--use-port=sdl2' , '--use-port=sdl2_image:formats=jpg'
2946
2943
])
2947
2944
2948
- @no_wasm64 ('SDL2 + wasm64' )
2949
2945
def test_sdl2_key (self ):
2950
2946
create_file ('pre.js' , '''
2951
2947
function keydown(keyCode, code) {
@@ -2967,7 +2963,6 @@ def test_sdl2_key(self):
2967
2963
2968
2964
self .btest_exit ('test_sdl2_key.c' , 37182145 , args = ['-sUSE_SDL=2' , '--pre-js' , 'pre.js' ])
2969
2965
2970
- @no_wasm64 ('SDL2 + wasm64' )
2971
2966
def test_sdl2_text (self ):
2972
2967
create_file ('pre.js' , '''
2973
2968
Module.postRun = () => {
@@ -2986,7 +2981,6 @@ def test_sdl2_text(self):
2986
2981
2987
2982
self .btest_exit ('test_sdl2_text.c' , args = ['--pre-js' , 'pre.js' , '-sEXPORTED_FUNCTIONS=_main,_one' , '-sUSE_SDL=2' ])
2988
2983
2989
- @no_wasm64 ('SDL2 + wasm64' )
2990
2984
@requires_graphics_hardware
2991
2985
def test_sdl2_mouse (self ):
2992
2986
create_file ('pre.js' , '''
@@ -3018,7 +3012,6 @@ def test_sdl2_mouse(self):
3018
3012
3019
3013
self .btest_exit ('test_sdl2_mouse.c' , args = ['-O2' , '--minify=0' , '--pre-js' , 'pre.js' , '-sUSE_SDL=2' ])
3020
3014
3021
- @no_wasm64 ('SDL2 + wasm64' )
3022
3015
@requires_graphics_hardware
3023
3016
def test_sdl2_mouse_offsets (self ):
3024
3017
create_file ('pre.js' , '''
@@ -3096,38 +3089,31 @@ def test_sdl2_mouse_offsets(self):
3096
3089
self .compile_btest ('browser/test_sdl2_mouse.c' , ['-DTEST_SDL_MOUSE_OFFSETS=1' , '-O2' , '--minify=0' , '-o' , 'sdl2_mouse.js' , '--pre-js' , 'pre.js' , '-sUSE_SDL=2' , '-sEXIT_RUNTIME' ])
3097
3090
self .run_browser ('page.html' , '' , '/report_result?exit:0' )
3098
3091
3099
- @no_wasm64 ('SDL2 + wasm64' )
3100
3092
@requires_threads
3101
3093
def test_sdl2_threads (self ):
3102
3094
self .btest_exit ('test_sdl2_threads.c' , args = ['-pthread' , '-sUSE_SDL=2' , '-sPROXY_TO_PTHREAD' ])
3103
3095
3104
- @no_wasm64 ('SDL2 + wasm64' )
3105
3096
@requires_graphics_hardware
3106
3097
def test_sdl2_glshader (self ):
3107
3098
self .reftest ('test_sdl2_glshader.c' , 'test_sdl_glshader.png' , args = ['-sUSE_SDL=2' , '-O2' , '--closure=1' , '-g1' , '-sLEGACY_GL_EMULATION' ])
3108
3099
self .reftest ('test_sdl2_glshader.c' , 'test_sdl_glshader.png' , args = ['-sUSE_SDL=2' , '-O2' , '-sLEGACY_GL_EMULATION' ], also_proxied = True ) # XXX closure fails on proxy
3109
3100
3110
- @no_wasm64 ('SDL2 + wasm64' )
3111
3101
@requires_graphics_hardware
3112
3102
def test_sdl2_canvas_blank (self ):
3113
3103
self .reftest ('test_sdl2_canvas_blank.c' , 'test_sdl_canvas_blank.png' , args = ['-sUSE_SDL=2' ])
3114
3104
3115
- @no_wasm64 ('SDL2 + wasm64' )
3116
3105
@requires_graphics_hardware
3117
3106
def test_sdl2_canvas_palette (self ):
3118
3107
self .reftest ('test_sdl2_canvas_palette.c' , 'test_sdl_canvas_palette.png' , args = ['-sUSE_SDL=2' ])
3119
3108
3120
- @no_wasm64 ('SDL2 + wasm64' )
3121
3109
@requires_graphics_hardware
3122
3110
def test_sdl2_canvas_twice (self ):
3123
3111
self .reftest ('test_sdl2_canvas_twice.c' , 'test_sdl_canvas_twice.png' , args = ['-sUSE_SDL=2' ])
3124
3112
3125
- @no_wasm64 ('SDL2 + wasm64' )
3126
3113
@requires_graphics_hardware
3127
3114
def test_sdl2_gfx (self ):
3128
3115
self .reftest ('test_sdl2_gfx.cpp' , 'test_sdl2_gfx.png' , args = ['-sUSE_SDL=2' , '-sUSE_SDL_GFX=2' ], reference_slack = 2 )
3129
3116
3130
- @no_wasm64 ('SDL2 + wasm64' )
3131
3117
@requires_graphics_hardware
3132
3118
def test_sdl2_canvas_palette_2 (self ):
3133
3119
create_file ('args-r.js' , '''
@@ -3146,32 +3132,26 @@ def test_sdl2_canvas_palette_2(self):
3146
3132
self .reftest ('test_sdl2_canvas_palette_2.c' , 'test_sdl_canvas_palette_g.png' , args = ['-sUSE_SDL=2' , '--pre-js' , 'args-g.js' ])
3147
3133
self .reftest ('test_sdl2_canvas_palette_2.c' , 'test_sdl_canvas_palette_b.png' , args = ['-sUSE_SDL=2' , '--pre-js' , 'args-b.js' ])
3148
3134
3149
- @no_wasm64 ('SDL2 + wasm64' )
3150
3135
def test_sdl2_swsurface (self ):
3151
3136
self .btest_exit ('test_sdl2_swsurface.c' , args = ['-sUSE_SDL=2' ])
3152
3137
3153
- @no_wasm64 ('SDL2 + wasm64' )
3154
3138
@requires_graphics_hardware
3155
3139
def test_sdl2_image_prepare (self ):
3156
3140
# load an image file, get pixel data.
3157
3141
shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.not' )
3158
3142
self .reftest ('test_sdl2_image_prepare.c' , 'screenshot.jpg' , args = ['--preload-file' , 'screenshot.not' , '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' ], manually_trigger_reftest = True )
3159
3143
3160
- @no_wasm64 ('SDL2 + wasm64' )
3161
3144
@requires_graphics_hardware
3162
3145
def test_sdl2_image_prepare_data (self ):
3163
3146
# load an image file, get pixel data.
3164
3147
shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.not' )
3165
3148
self .reftest ('test_sdl2_image_prepare_data.c' , 'screenshot.jpg' , args = ['--preload-file' , 'screenshot.not' , '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' ], manually_trigger_reftest = True )
3166
3149
3167
- @no_wasm64 ('SDL2 + wasm64' )
3168
- @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3169
3150
@requires_graphics_hardware
3170
3151
def test_sdl2_canvas_proxy (self ):
3171
3152
create_file ('data.txt' , 'datum' )
3172
3153
self .reftest ('test_sdl2_canvas_proxy.c' , 'test_sdl2_canvas.png' , args = ['-sUSE_SDL=2' , '--proxy-to-worker' , '--preload-file' , 'data.txt' , '-sGL_TESTING' ], manual_reference = True , post_build = self .post_manual_reftest )
3173
3154
3174
- @no_wasm64 ('SDL2 + wasm64' )
3175
3155
def test_sdl2_pumpevents (self ):
3176
3156
# key events should be detected using SDL_PumpEvents
3177
3157
create_file ('pre.js' , '''
@@ -3182,91 +3162,77 @@ def test_sdl2_pumpevents(self):
3182
3162
''' )
3183
3163
self .btest_exit ('test_sdl2_pumpevents.c' , args = ['--pre-js' , 'pre.js' , '-sUSE_SDL=2' ])
3184
3164
3185
- @no_wasm64 ('SDL2 + wasm64' )
3186
3165
def test_sdl2_timer (self ):
3187
3166
self .btest_exit ('test_sdl2_timer.c' , args = ['-sUSE_SDL=2' ])
3188
3167
3189
- @no_wasm64 ('SDL2 + wasm64' )
3190
3168
def test_sdl2_canvas_size (self ):
3191
3169
self .btest_exit ('test_sdl2_canvas_size.c' , args = ['-sUSE_SDL=2' ])
3192
3170
3193
- @no_wasm64 ('SDL2 + wasm64' )
3194
3171
@requires_graphics_hardware
3195
3172
def test_sdl2_gl_read (self ):
3196
3173
# SDL, OpenGL, readPixels
3197
3174
self .btest_exit ('test_sdl2_gl_read.c' , args = ['-sUSE_SDL=2' ])
3198
3175
3199
- @no_wasm64 ( 'SDL2 + wasm64 ' )
3176
+ @no_4gb ( 'https://github.com/libsdl-org/SDL/issues/9052 ' )
3200
3177
@no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3201
3178
@requires_graphics_hardware
3202
3179
def test_sdl2_glmatrixmode_texture (self ):
3203
3180
self .reftest ('test_sdl2_glmatrixmode_texture.c' , 'test_sdl2_glmatrixmode_texture.png' ,
3204
3181
args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
3205
3182
3206
- @no_wasm64 ('SDL2 + wasm64' )
3207
3183
@requires_graphics_hardware
3208
3184
def test_sdl2_gldrawelements (self ):
3209
3185
self .reftest ('test_sdl2_gldrawelements.c' , 'test_sdl2_gldrawelements.png' ,
3210
3186
args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
3211
3187
3212
- @no_wasm64 ('SDL2 + wasm64' )
3213
3188
@requires_graphics_hardware
3214
3189
def test_sdl2_glclipplane_gllighting (self ):
3215
3190
self .reftest ('test_sdl2_glclipplane_gllighting.c' , 'test_sdl2_glclipplane_gllighting.png' ,
3216
3191
args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
3217
3192
3218
- @no_wasm64 ('SDL2 + wasm64' )
3219
3193
@requires_graphics_hardware
3220
3194
def test_sdl2_glalphatest (self ):
3221
3195
self .reftest ('test_sdl2_glalphatest.c' , 'test_sdl2_glalphatest.png' ,
3222
3196
args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
3223
3197
3224
- @no_wasm64 ('SDL2 + wasm64' )
3225
3198
@requires_graphics_hardware
3226
3199
def test_sdl2_fog_simple (self ):
3227
3200
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
3228
3201
self .reftest ('test_sdl2_fog_simple.c' , 'screenshot-fog-simple.png' ,
3229
3202
args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '-O2' , '--minify=0' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
3230
3203
3231
- @no_wasm64 ('SDL2 + wasm64' )
3232
3204
@requires_graphics_hardware
3233
3205
def test_sdl2_fog_negative (self ):
3234
3206
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
3235
3207
self .reftest ('test_sdl2_fog_negative.c' , 'screenshot-fog-negative.png' ,
3236
3208
args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
3237
3209
3238
- @no_wasm64 ('SDL2 + wasm64' )
3239
3210
@requires_graphics_hardware
3240
3211
def test_sdl2_fog_density (self ):
3241
3212
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
3242
3213
self .reftest ('test_sdl2_fog_density.c' , 'screenshot-fog-density.png' ,
3243
3214
args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
3244
3215
3245
- @no_wasm64 ('SDL2 + wasm64' )
3246
3216
@requires_graphics_hardware
3247
3217
def test_sdl2_fog_exp2 (self ):
3248
3218
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
3249
3219
self .reftest ('test_sdl2_fog_exp2.c' , 'screenshot-fog-exp2.png' ,
3250
3220
args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
3251
3221
3252
- @no_wasm64 ('SDL2 + wasm64' )
3253
3222
@requires_graphics_hardware
3254
3223
def test_sdl2_fog_linear (self ):
3255
3224
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
3256
3225
self .reftest ('test_sdl2_fog_linear.c' , 'screenshot-fog-linear.png' , reference_slack = 1 ,
3257
3226
args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
3258
3227
3259
- @no_wasm64 ('SDL2 + wasm64' )
3260
3228
def test_sdl2_unwasteful (self ):
3261
3229
self .btest_exit ('test_sdl2_unwasteful.cpp' , args = ['-sUSE_SDL=2' , '-O1' ])
3262
3230
3263
- @no_wasm64 ('SDL2 + wasm64' )
3264
3231
@no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3232
+ @no_4gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3265
3233
def test_sdl2_canvas_write (self ):
3266
3234
self .btest_exit ('test_sdl2_canvas_write.cpp' , args = ['-sUSE_SDL=2' ])
3267
3235
3268
- @no_wasm64 ('SDL2 + wasm64' )
3269
- @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3270
3236
@requires_graphics_hardware
3271
3237
def test_sdl2_gl_frames_swap (self ):
3272
3238
def post_build ():
@@ -3277,40 +3243,33 @@ def post_build():
3277
3243
create_file ('reftest.js' , reftest2 )
3278
3244
self .reftest ('test_sdl2_gl_frames_swap.c' , 'test_sdl2_gl_frames_swap.png' , args = ['--proxy-to-worker' , '-sGL_TESTING' , '-sUSE_SDL=2' ], manual_reference = True , post_build = post_build )
3279
3245
3280
- @no_wasm64 ('SDL2 + wasm64' )
3281
3246
@requires_graphics_hardware
3282
3247
def test_sdl2_ttf (self ):
3283
3248
shutil .copy2 (test_file ('freetype/LiberationSansBold.ttf' ), self .get_dir ())
3284
3249
self .reftest ('test_sdl2_ttf.c' , 'test_sdl2_ttf.png' ,
3285
3250
args = ['-O2' , '-sUSE_SDL=2' , '-sUSE_SDL_TTF=2' , '--embed-file' , 'LiberationSansBold.ttf' ])
3286
3251
3287
- @no_wasm64 ('SDL2 + wasm64' )
3288
3252
@requires_graphics_hardware
3289
3253
def test_sdl2_ttf_rtl (self ):
3290
3254
shutil .copy2 (test_file ('third_party/notofont/NotoNaskhArabic-Regular.ttf' ), self .get_dir ())
3291
3255
self .reftest ('test_sdl2_ttf_rtl.c' , 'test_sdl2_ttf_rtl.png' ,
3292
3256
args = ['-O2' , '-sUSE_SDL=2' , '-sUSE_SDL_TTF=2' , '--embed-file' , 'NotoNaskhArabic-Regular.ttf' ])
3293
3257
3294
- @no_wasm64 ('SDL2 + wasm64' )
3295
3258
def test_sdl2_custom_cursor (self ):
3296
3259
shutil .copyfile (test_file ('cursor.bmp' ), 'cursor.bmp' )
3297
3260
self .btest_exit ('test_sdl2_custom_cursor.c' , args = ['--preload-file' , 'cursor.bmp' , '-sUSE_SDL=2' ])
3298
3261
3299
- @no_wasm64 ('SDL2 + wasm64' )
3300
3262
def test_sdl2_misc (self ):
3301
3263
self .btest_exit ('test_sdl2_misc.c' , args = ['-sUSE_SDL=2' ])
3302
3264
3303
- @no_wasm64 ('SDL2 + wasm64' )
3304
3265
def test_sdl2_misc_main_module (self ):
3305
3266
self .btest_exit ('test_sdl2_misc.c' , args = ['-sUSE_SDL=2' , '-sMAIN_MODULE' ])
3306
3267
3307
- @no_wasm64 ('SDL2 + wasm64' )
3308
3268
def test_sdl2_misc_via_object (self ):
3309
3269
self .emcc (test_file ('browser/test_sdl2_misc.c' ), ['-c' , '-sUSE_SDL=2' , '-o' , 'test.o' ])
3310
3270
self .compile_btest ('test.o' , ['-sEXIT_RUNTIME' , '-sUSE_SDL=2' , '-o' , 'test.html' ])
3311
3271
self .run_browser ('test.html' , '/report_result?exit:0' )
3312
3272
3313
- @no_wasm64 ('SDL2 + wasm64' )
3314
3273
@parameterized ({
3315
3274
'' : (['-sUSE_SDL=2' , '-sUSE_SDL_MIXER=2' ],),
3316
3275
'dash_l' : (['-lSDL2' , '-lSDL2_mixer' ],),
@@ -3320,7 +3279,6 @@ def test_sdl2_mixer_wav(self, flags):
3320
3279
shutil .copyfile (test_file ('sounds/the_entertainer.wav' ), 'sound.wav' )
3321
3280
self .btest_exit ('test_sdl2_mixer_wav.c' , args = ['--preload-file' , 'sound.wav' ] + flags )
3322
3281
3323
- @no_wasm64 ('SDL2 + wasm64' )
3324
3282
@parameterized ({
3325
3283
'wav' : ([], '0' , 'the_entertainer.wav' ),
3326
3284
'ogg' : (['ogg' ], 'MIX_INIT_OGG' , 'alarmvictory_1.ogg' ),
0 commit comments