These steps are specifically for testing SwiftShader's OpenGL ES 3.0 implementation using dEQP on Windows (Linux differences at the bottom).
<path to python> to your PATH environment variable
<path to MinGW>\bin to your PATH environment variable
<path to adb> to your PATH environment variable
Note: abd is in the Android SDK, typically in
Install GCC. In ‘cmd’, run:
mingw-get install gcc
Note: Using Cygwin GCC currently doesn't work.
(Optional) Install TortoiseGit
Get dEQP (either in ‘cmd’ or by using TortoiseGit):
git clone https://android.googlesource.com/platform/external/deqp
Get dEQP's dependencies. In your dEQP root directory, open ‘cmd’ and run:
Get Cherry (either in ‘cmd’ or by using TortoiseGit):
git clone https://android.googlesource.com/platform/external/cherry
Set environment variable (see point 9):
Add new variable GOPATH=‘
<path to cherry>’
Build dEQP's Visual Studio files using the CMake GUI, or, in the dEQP root dir, run:
mkdir build cd build cmake ..
Note: If you have multiple versions of Visual Studio installed and you want to make sure cmake is using the correct version of Visual Studio, you can specify it by calling, for example:
cmake .. -G "Visual Studio 15 2017 Win64"
Also note: don't call ‘cmake .’ directly in the root directory. It will make things fails later on. If you do, simply erase the files created by CMake and follow the steps above.
<path to dEQP>\build\dEQP-Core-default.sln in Visual Studio and Build Solution
Note: Choose a ‘Release’ build, unless you really mean to debug dEQP
Generate test cases:
mkdir <path to cherry>\data cd <path to dEQP> python scripts\build_caselists.py <path to cherry>\data
<path to cherry>\cherry\data.go
../candy-build/deqp-wgland replace that by
<path to deqp>/build
Assuming you already built SwiftShader, copy these two files:
<path to SwiftShader>\out\Release_x64 or
<path to SwiftShader>\out\Debug_x64
<path to dEQP>\build\modules\gles3\Release (Again, assuming you did a Release build at step 17)
Start the test server. Go to
<path to cherry> and run:
go run server.go
Open your favorite browser and navigate to
Get Started -> Choose Device ‘localhost’ -> Select Tests ‘dEQP-GLES3’ -> Execute tests!
dEQP contains more tests than what is expected to pass by a conformant implementation (e.g. some tests are considered too strict, or assume certain undefined behavior). The android\cts\master\gles3-master.txt text file which can be loaded in Cherry's ‘Test sets’ tab to only run the latest tests expected to pass by certified Android devices.
Differences to the steps above:
makeinstead of Visual Studio.