main.cpp 417 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2023 Amazon.com Inc. or its affiliates. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include <gtest/gtest.h>
  6. #include "wasm_runtime_common.h"
  7. int
  8. main(int argc, char **argv)
  9. {
  10. ::testing::InitGoogleTest(&argc, argv);
  11. if (!wasm_runtime_init()) {
  12. return -1;
  13. }
  14. int ret = RUN_ALL_TESTS();
  15. wasm_runtime_destroy();
  16. return ret;
  17. }