Edit

kc3-lang/angle/src/tests/deqp_support/angle_deqp_libtester.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2021-01-26 14:39:19
    Hash : 85efb9d5
    Message : Log dEQP QPA files as test artifacts. This adds artifact output to the test runner. We add a fake test at the start of a test run that owns the artifacts. Bug: angleproject:5236 Change-Id: Ice8001bf1f2aafbd8123fee76e0e7fcc3e5a8a0c Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2657535 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Mohan Maiya <m.maiya@samsung.com> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>

  • src/tests/deqp_support/angle_deqp_libtester.h
  • //
    // Copyright 2014 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_libtester.h:
    //   Exports for the ANGLE dEQP libtester module.
    
    #ifndef ANGLE_DEQP_LIBTESTER_H_
    #define ANGLE_DEQP_LIBTESTER_H_
    
    #include <stdint.h>
    
    #if defined(_WIN32)
    #    if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)
    #        define ANGLE_LIBTESTER_EXPORT __declspec(dllexport)
    #    else
    #        define ANGLE_LIBTESTER_EXPORT __declspec(dllimport)
    #    endif
    #elif defined(__GNUC__)
    #    if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)
    #        define ANGLE_LIBTESTER_EXPORT __attribute__((visibility("default")))
    #    else
    #        define ANGLE_LIBTESTER_EXPORT
    #    endif
    #else
    #    define ANGLE_LIBTESTER_EXPORT
    #endif
    
    // Possible results of deqp_libtester_run
    enum class dEQPTestResult
    {
        Pass,
        Fail,
        NotSupported,
        Exception,
    };
    
    // Exported to the tester app.
    ANGLE_LIBTESTER_EXPORT int deqp_libtester_main(int argc, const char *argv[]);
    ANGLE_LIBTESTER_EXPORT bool deqp_libtester_init_platform(int argc,
                                                             const char *argv[],
                                                             void *logErrorFunc,
                                                             uint32_t preRotation);
    ANGLE_LIBTESTER_EXPORT void deqp_libtester_shutdown_platform();
    ANGLE_LIBTESTER_EXPORT dEQPTestResult deqp_libtester_run(const char *caseName);
    
    #endif  // ANGLE_DEQP_LIBTESTER_H_