Skip to content

Commit 7cfef9e

Browse files
committed
tests(unit): Add llm-enhanced-test submodule integration
Signed-off-by: zhenweijin <zhenwei.jin@intel.com>
1 parent 2ed856e commit 7cfef9e

File tree

10 files changed

+24
-660
lines changed

10 files changed

+24
-660
lines changed

.github/workflows/compilation_on_android_ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ jobs:
323323
steps:
324324
- name: checkout
325325
uses: actions/checkout@v6.0.2
326+
with:
327+
submodules: recursive
326328

327329
- name: Get LLVM libraries
328330
id: retrieve_llvm_libs

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "tests/unit/llm-enhanced-test"]
2+
path = tests/unit/llm-enhanced-test
3+
url = https://github.com/wasm-micro-runtime/llm-enhanced-test.git
4+
branch = main

tests/unit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ add_subdirectory(linux-perf)
8787
add_subdirectory(gc)
8888
add_subdirectory(tid-allocator)
8989
add_subdirectory(unsupported-features)
90-
add_subdirectory(smart-tests)
9190
add_subdirectory(exception-handling)
9291
add_subdirectory(running-modes)
92+
add_subdirectory(llm-enhanced-test)
9393

9494
if(WAMR_BUILD_TARGET STREQUAL "X86_64")
9595
add_subdirectory(aot-stack-frame)

tests/unit/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ When creating a `CMakeLists.txt` file for your test suite, follow these best pra
9292
9393
---
9494
95+
## Initializing Submodules
96+
97+
Test suite `llm-enhanced-test` is maintained in separate repository and included as git submodule. You need to initialize it before building.
98+
99+
```bash
100+
git submodule update --init --recursive
101+
```
102+
103+
Alternatively, if you haven't cloned the repository yet, use `--recursive` when cloning:
104+
105+
```bash
106+
git clone --recursive https://github.com/bytecodealliance/wasm-micro-runtime.git
107+
```
108+
109+
---
110+
95111
## Compiling and Running Test Cases
96112

97113
To compile and run the test cases, follow these steps:

tests/unit/llm-enhanced-test

Submodule llm-enhanced-test added at 2deeecc

tests/unit/smart-tests/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/unit/smart-tests/interpreter/CMakeLists.txt

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)