@@ -1942,27 +1942,27 @@ def test_matrix_identity(self):
1942
1942
@requires_graphics_hardware
1943
1943
@no_swiftshader
1944
1944
def test_cubegeom_pre (self ):
1945
- self .btest (' cubegeom_pre.c' , reference = ' cubegeom_pre.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
1945
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
1946
1946
1947
1947
@requires_graphics_hardware
1948
1948
@no_swiftshader
1949
1949
def test_cubegeom_pre_regal (self ):
1950
- self .btest (' cubegeom_pre.c' , reference = ' cubegeom_pre.png' , args = ['-s' , 'USE_REGAL=1' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
1950
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.png') , args = ['-s' , 'USE_REGAL=1' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
1951
1951
1952
1952
@requires_graphics_hardware
1953
1953
@requires_sync_compilation
1954
1954
def test_cubegeom_pre_relocatable (self ):
1955
- self .btest (' cubegeom_pre.c' , reference = ' cubegeom_pre.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' , '-s' , 'RELOCATABLE=1' ])
1955
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' , '-s' , 'RELOCATABLE=1' ])
1956
1956
1957
1957
@requires_graphics_hardware
1958
1958
@no_swiftshader
1959
1959
def test_cubegeom_pre2 (self ):
1960
- self .btest (' cubegeom_pre2.c' , reference = ' cubegeom_pre2.png' , args = ['-s' , 'GL_DEBUG=1' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ]) # some coverage for GL_DEBUG not breaking the build
1960
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2.png') , args = ['-s' , 'GL_DEBUG=1' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ]) # some coverage for GL_DEBUG not breaking the build
1961
1961
1962
1962
@requires_graphics_hardware
1963
1963
@no_swiftshader
1964
1964
def test_cubegeom_pre3 (self ):
1965
- self .btest (' cubegeom_pre3.c' , reference = ' cubegeom_pre2.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
1965
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre3.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
1966
1966
1967
1967
@parameterized ({
1968
1968
'' : ([],),
@@ -1972,16 +1972,16 @@ def test_cubegeom_pre3(self):
1972
1972
def test_cubegeom (self , args ):
1973
1973
# proxy only in the simple, normal case (we can't trace GL calls when
1974
1974
# proxied)
1975
- self .btest (' cubegeom.c' , reference = ' cubegeom.png' , args = ['-O2' , '-g' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ] + args , also_proxied = not args )
1975
+ self .btest (os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .c') , reference = os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .png') , args = ['-O2' , '-g' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ] + args , also_proxied = not args )
1976
1976
1977
1977
@requires_graphics_hardware
1978
1978
def test_cubegeom_regal (self ):
1979
- self .btest (' cubegeom.c' , reference = ' cubegeom.png' , args = ['-O2' , '-g' , '-DUSE_REGAL' , '-s' , 'USE_REGAL=1' , '-lGL' , '-lSDL' ], also_proxied = True )
1979
+ self .btest (os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .c') , reference = os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .png') , args = ['-O2' , '-g' , '-DUSE_REGAL' , '-s' , 'USE_REGAL=1' , '-lGL' , '-lSDL' ], also_proxied = True )
1980
1980
1981
1981
@requires_threads
1982
1982
@requires_graphics_hardware
1983
1983
def test_cubegeom_regal_mt (self ):
1984
- self .btest (' cubegeom.c' , reference = ' cubegeom.png' , args = ['-O2' , '-g' , '-pthread' , '-DUSE_REGAL' , '-s' , 'USE_PTHREADS=1' , '-s' , 'USE_REGAL=1' , '-lGL' , '-lSDL' ], also_proxied = False )
1984
+ self .btest (os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .c') , reference = os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .png') , args = ['-O2' , '-g' , '-pthread' , '-DUSE_REGAL' , '-s' , 'USE_PTHREADS=1' , '-s' , 'USE_REGAL=1' , '-lGL' , '-lSDL' ], also_proxied = False )
1985
1985
1986
1986
@requires_graphics_hardware
1987
1987
def test_cubegeom_proc (self ):
@@ -1998,84 +1998,84 @@ def test_cubegeom_proc(self):
1998
1998
''' )
1999
1999
# also test -Os in wasm, which uses meta-dce, which should not break legacy gl emulation hacks
2000
2000
for opts in [[], ['-O1' ], ['-Os' ]]:
2001
- self .btest (' cubegeom_proc.c' , reference = ' cubegeom.png' , args = opts + ['side.c' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2001
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_proc.c') , reference = os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .png') , args = opts + ['side.c' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2002
2002
2003
2003
@requires_graphics_hardware
2004
2004
def test_cubegeom_glew (self ):
2005
- self .btest (' cubegeom_glew.c' , reference = ' cubegeom.png' , args = ['-O2' , '--closure' , '1' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lGLEW' , '-lSDL' ])
2005
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_glew.c') , reference = os . path . join ( 'third_party' , ' cubegeom' , 'cubegeom .png') , args = ['-O2' , '--closure' , '1' , '-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lGLEW' , '-lSDL' ])
2006
2006
2007
2007
@requires_graphics_hardware
2008
2008
def test_cubegeom_color (self ):
2009
- self .btest (' cubegeom_color.c' , reference = ' cubegeom_color.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2009
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_color.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_color.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2010
2010
2011
2011
@requires_graphics_hardware
2012
2012
def test_cubegeom_normal (self ):
2013
- self .btest (' cubegeom_normal.c' , reference = ' cubegeom_normal.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2013
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2014
2014
2015
2015
@requires_graphics_hardware
2016
2016
def test_cubegeom_normal_dap (self ): # draw is given a direct pointer to clientside memory, no element array buffer
2017
- self .btest (' cubegeom_normal_dap.c' , reference = ' cubegeom_normal.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2017
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2018
2018
2019
2019
@requires_graphics_hardware
2020
2020
def test_cubegeom_normal_dap_far (self ): # indices do nto start from 0
2021
- self .btest (' cubegeom_normal_dap_far.c' , reference = ' cubegeom_normal.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2021
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2022
2022
2023
2023
@requires_graphics_hardware
2024
2024
def test_cubegeom_normal_dap_far_range (self ): # glDrawRangeElements
2025
- self .btest (' cubegeom_normal_dap_far_range.c' , reference = ' cubegeom_normal.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2025
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far_range.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2026
2026
2027
2027
@requires_graphics_hardware
2028
2028
def test_cubegeom_normal_dap_far_glda (self ): # use glDrawArrays
2029
- self .btest (' cubegeom_normal_dap_far_glda.c' , reference = ' cubegeom_normal_dap_far_glda.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2029
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far_glda.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far_glda.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2030
2030
2031
2031
@requires_graphics_hardware
2032
2032
@no_firefox ('fails on CI but works locally' )
2033
2033
def test_cubegeom_normal_dap_far_glda_quad (self ): # with quad
2034
- self .btest (' cubegeom_normal_dap_far_glda_quad.c' , reference = ' cubegeom_normal_dap_far_glda_quad.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2034
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far_glda_quad.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_normal_dap_far_glda_quad.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2035
2035
2036
2036
@requires_graphics_hardware
2037
2037
def test_cubegeom_mt (self ):
2038
- self .btest (' cubegeom_mt.c' , reference = ' cubegeom_mt.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ]) # multitexture
2038
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_mt.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_mt.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ]) # multitexture
2039
2039
2040
2040
@requires_graphics_hardware
2041
2041
def test_cubegeom_color2 (self ):
2042
- self .btest (' cubegeom_color2.c' , reference = ' cubegeom_color2.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2042
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_color2.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_color2.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ], also_proxied = True )
2043
2043
2044
2044
@requires_graphics_hardware
2045
2045
def test_cubegeom_texturematrix (self ):
2046
- self .btest (' cubegeom_texturematrix.c' , reference = ' cubegeom_texturematrix.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2046
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_texturematrix.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_texturematrix.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2047
2047
2048
2048
@requires_graphics_hardware
2049
2049
def test_cubegeom_fog (self ):
2050
- self .btest (' cubegeom_fog.c' , reference = ' cubegeom_fog.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2050
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_fog.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_fog.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2051
2051
2052
2052
@requires_graphics_hardware
2053
2053
@no_swiftshader
2054
2054
def test_cubegeom_pre_vao (self ):
2055
- self .btest (' cubegeom_pre_vao.c' , reference = ' cubegeom_pre_vao.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2055
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2056
2056
2057
2057
@requires_graphics_hardware
2058
2058
@no_swiftshader
2059
2059
def test_cubegeom_pre_vao_regal (self ):
2060
- self .btest (' cubegeom_pre_vao.c' , reference = ' cubegeom_pre_vao.png' , args = ['-s' , 'USE_REGAL=1' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
2060
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.png') , args = ['-s' , 'USE_REGAL=1' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
2061
2061
2062
2062
@requires_graphics_hardware
2063
2063
@no_swiftshader
2064
2064
def test_cubegeom_pre2_vao (self ):
2065
- self .btest (' cubegeom_pre2_vao.c' , reference = ' cubegeom_pre_vao.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2065
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2_vao.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2066
2066
2067
2067
@requires_graphics_hardware
2068
2068
def test_cubegeom_pre2_vao2 (self ):
2069
- self .btest (' cubegeom_pre2_vao2.c' , reference = ' cubegeom_pre2_vao2.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2069
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2_vao2.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre2_vao2.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2070
2070
2071
2071
@requires_graphics_hardware
2072
2072
@no_swiftshader
2073
2073
def test_cubegeom_pre_vao_es (self ):
2074
- self .btest (' cubegeom_pre_vao_es.c' , reference = ' cubegeom_pre_vao.png' , args = ['-s' , 'FULL_ES2=1' , '-lGL' , '-lSDL' ])
2074
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao_es.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_pre_vao.png') , args = ['-s' , 'FULL_ES2=1' , '-lGL' , '-lSDL' ])
2075
2075
2076
2076
@requires_graphics_hardware
2077
2077
def test_cubegeom_u4fv_2 (self ):
2078
- self .btest (' cubegeom_u4fv_2.c' , reference = ' cubegeom_u4fv_2.png' , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2078
+ self .btest (os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_u4fv_2.c') , reference = os . path . join ( 'third_party' , 'cubegeom' , ' cubegeom_u4fv_2.png') , args = ['-s' , 'LEGACY_GL_EMULATION=1' , '-lGL' , '-lSDL' ])
2079
2079
2080
2080
@requires_graphics_hardware
2081
2081
def test_cube_explosion (self ):
0 commit comments