Skip to content

Commit

Permalink
Move tests to test/ directory
Browse files Browse the repository at this point in the history
- Merge the b9test and test directory.
- Move js_programs to test/
- Add the b9test executable as a test. Note that all it's test cases are
  still ifdef'd out.

Signed-off-by: Robert Young <[email protected]>
  • Loading branch information
rwy7 authored and youngar committed Oct 11, 2017
1 parent 3042068 commit 410421b
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 24 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ add_subdirectory(b9)

add_subdirectory(b9run)

add_subdirectory(b9test)
add_subdirectory(test)

add_subdirectory(third_party)

add_subdirectory(js_programs)

# add_subdirectory(js_compiler)
13 changes: 0 additions & 13 deletions b9test/CMakeLists.txt

This file was deleted.

2 changes: 0 additions & 2 deletions js_programs/CMakeLists.txt

This file was deleted.

20 changes: 16 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
add_library(bench SHARED
bench.cpp
# b9 test - The native test

add_executable(b9test
b9test.cpp
)

add_library(program SHARED
program.cpp
target_link_libraries(b9test
PUBLIC
b9 gtest_main
)

add_test(run_b9test b9test)

# Test Programs

add_b9_program(fib)
add_b9_program(hello)
add_b9_program(interpreter_test)

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 410421b

Please sign in to comment.