Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Nov 4, 2022
1 parent 1e6032f commit 6537b38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ set(LLVM_MOS_PLATFORM sim)
find_package(llvm-mos-sdk REQUIRED)
project(smoke-test)
add_executable(hello hello.c)

find_program(SIM mos-sim REQUIRED)
add_test(NAME test
COMMAND ${CMAKE_COMMAND}
-DSIM=${SIM}
-DHELLO=$<TARGET_FILE:hello>
-P test.cmake
)
1 change: 1 addition & 0 deletions test.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find_program(SIM mos-sim REQUIRED)

0 comments on commit 6537b38

Please sign in to comment.