Add unit test suites (#3490)
This commit is contained in:
14
tests/unit/custom-section/wasm-apps/CMakeLists.txt
Normal file
14
tests/unit/custom-section/wasm-apps/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
cmake_minimum_required(VERSION 2.9)
|
||||
|
||||
project(wasm-apps-custom-section)
|
||||
|
||||
# Add -g option so there will be debugger related custom sections
|
||||
add_custom_target(app.wasm ALL
|
||||
COMMAND /opt/wasi-sdk/bin/clang -g -nostdlib
|
||||
-Wl,--no-entry,--export-all
|
||||
-o ${CMAKE_CURRENT_BINARY_DIR}/app.wasm
|
||||
${CMAKE_CURRENT_LIST_DIR}/app.c
|
||||
)
|
||||
10
tests/unit/custom-section/wasm-apps/app.c
Normal file
10
tests/unit/custom-section/wasm-apps/app.c
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
*/
|
||||
|
||||
int
|
||||
main(int argc, char const *argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user