This is the first change to add unit tests for the public APIs in minigbm. Only tests 3 APIs here for now, and just added some very simple input for each api testing. The ultimate goal would be cover more APIs and the input combinations. BUG=b:304380938 TEST=cros_workon_make --board=guybrush minigbm --test TEST=cros_run_unit_tests --board guybrush --packages "minigbm" TEST=CQ Change-Id: Id15806b7bc6cd9c4764bf08becec6546d72bb117 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4923791 Commit-Queue: Dawn Han <dawnhan@google.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Tested-by: Dawn Han <dawnhan@google.com>
15 lines
310 B
C++
15 lines
310 B
C++
/* Copyright 2023 The ChromiumOS Authors
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Main entrypoint for gtest.
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
|
}
|