Skip to content

Commit 6e54388

Browse files
committed
update build files
1 parent a61240d commit 6e54388

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

godel-script/CMakeLists.txt

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ set(GODEL_FRONTEND_HDR_FILES
2020
godel-frontend/src/semantic.h
2121
godel-frontend/src/symbol.h
2222
godel-frontend/src/ir/aggregator_inline_remark.h
23+
godel-frontend/src/ir/call_graph.h
2324
godel-frontend/src/ir/flatten_block.h
2425
godel-frontend/src/ir/ir_gen.h
2526
godel-frontend/src/ir/ir_context.h
@@ -29,6 +30,7 @@ set(GODEL_FRONTEND_HDR_FILES
2930
godel-frontend/src/ir/pass.h
3031
godel-frontend/src/ir/pass_manager.h
3132
godel-frontend/src/ir/remove_unused.h
33+
godel-frontend/src/ir/reorder.h
3234
godel-frontend/src/error/error.h
3335
godel-frontend/src/ast/ast_node.h
3436
godel-frontend/src/ast/ast_root.h
@@ -60,6 +62,7 @@ set(GODEL_FRONTEND_SRC_FILES
6062
godel-frontend/src/semantic.cpp
6163
godel-frontend/src/symbol.cpp
6264
godel-frontend/src/ir/aggregator_inline_remark.cpp
65+
godel-frontend/src/ir/call_graph.cpp
6366
godel-frontend/src/ir/flatten_block.cpp
6467
godel-frontend/src/ir/ir_gen.cpp
6568
godel-frontend/src/ir/ir_context.cpp
@@ -69,6 +72,7 @@ set(GODEL_FRONTEND_SRC_FILES
6972
godel-frontend/src/ir/pass.cpp
7073
godel-frontend/src/ir/pass_manager.cpp
7174
godel-frontend/src/ir/remove_unused.cpp
75+
godel-frontend/src/ir/reorder.cpp
7276
godel-frontend/src/error/error.cpp
7377
godel-frontend/src/ast/ast_visitor.cpp
7478
godel-frontend/src/ast/ast_root.cpp
@@ -136,3 +140,12 @@ target_link_libraries(godel
136140
# link dynamic library
137141
target_link_libraries(godel PUBLIC
138142
libsouffle-shared souffle_ext)
143+
144+
# add testing rule
145+
enable_testing()
146+
add_test(NAME godel-test
147+
COMMAND godel -p ${PROJECT_SOURCE_DIR}/godel-frontend/test/pkgtest ${PROJECT_SOURCE_DIR}/godel-frontend/test/pkgtest/a.gdl)
148+
add_test(NAME gs_new-test
149+
COMMAND godel ${PROJECT_SOURCE_DIR}/godel-frontend/test/semantic/gs_new.gdl)
150+
add_test(NAME fact-stmt-test
151+
COMMAND godel ${PROJECT_SOURCE_DIR}/godel-frontend/test/semantic/fact.gdl)

godel-script/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use this command to apply patch:
6363

6464
```bash
6565
cd souffle
66-
git am ../../0001-init-self-used-souffle-from-public-souffle.patch
66+
git am ../0001-init-self-used-souffle-from-public-souffle.patch
6767
```
6868

6969
Use these commands to revert:

0 commit comments

Comments
 (0)