Add unit test suites (#3490)

This commit is contained in:
Zhang, Yi
2024-06-04 11:24:27 +08:00
committed by GitHub
parent 0a80cc4e94
commit 380cd7b0e7
194 changed files with 14104 additions and 34 deletions

21
tests/unit/wasm-c-api/run.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# ./c_api_unit_test --gtest_list_tests
function run_one()
{
local case=$1
valgrind --tool=memcheck --leak-check=yes -v \
./c_api_unit_test --gtest_filter=CApiTests.${case}
}
function run()
{
valgrind --tool=memcheck --leak-check=yes -v \
./c_api_unit_test
}
[[ $# -gt 0 ]] && $@ || run