Edit

kc3-lang/angle/src/tests/deqp_support/angle_deqp_tests_main.cpp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2015-03-17 11:25:27
    Hash : 3cd438d1
    Message : Add dEQP tests. We integrate dEQP as a console application and a shared library which runs all of the test logic. Using a shared library lets us compile dEQP with all the specific compiler options it needs, without conflicting with the compile settings in ANGLE proper. Currently we only support Windows D3D11, ES 2 and 3. We can add other targets in the future. We also have a few bugs preventing us from running the test suite in full. We run into infinite loop problems in some shader tests, and have crashes or UNIMPLEMENTED in others. BUG=angleproject:901 Change-Id: Ib6fe66041a6fe547eb2cba497c52de7fd080d667 Reviewed-on: https://chromium-review.googlesource.com/238084 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Olli Etuaho <oetuaho@nvidia.com> Tested-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • src/tests/deqp_support/angle_deqp_tests_main.cpp
  • //
    // Copyright 2015 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // angle_deqp_tests_main.cpp: Entry point for ANGLE's dEQP tests.
    
    #include <direct.h>
    #include <stdio.h>
    
    __declspec(dllimport) int deqp_libtester_main(int argc, const char* argv[]);
    
    int main(int argc, const char* argv[])
    {
        const char * data_dir = ANGLE_DEQP_DIR "/data";
        if (_chdir(data_dir) != 0)
        {
            printf("Error setting working directory\n");
        }
    
        deqp_libtester_main(argc, argv);
    }