Skip to content

Commit 32ffacf

Browse files
committed
move benchmarks to the testsuite repo
1 parent 041c01f commit 32ffacf

33 files changed

Lines changed: 2 additions & 1619 deletions

.github/workflows/run-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,3 @@ jobs:
4747
- name: Run unit tests
4848
run: ninja check
4949
working-directory: build
50-
51-
- name: Check benchmarks (don't run)
52-
run: ninja check-benchmarks
53-
working-directory: build
54-
env:
55-
SKIP_RUN: 1

CMakeLists.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,26 +129,10 @@ add_custom_target("check-unit"
129129
USES_TERMINAL
130130
)
131131

132-
add_custom_target("check-benchmarks"
133-
COMMAND ${CMAKE_COMMAND} -E env
134-
"CC=${CMAKE_C_COMPILER}"
135-
"CXX=${CMAKE_CXX_COMPILER}"
136-
"python3"
137-
"${PROJECT_SOURCE_DIR}/tests/lit/lit.py"
138-
${LIT_FLAGS}
139-
"${PROJECT_SOURCE_DIR}/tests/benchmarks"
140-
DEPENDS cpp2rust libcc2rs
141-
USES_TERMINAL
142-
)
143-
144132
add_custom_target("check"
145133
DEPENDS check-libcc2rs check-libcc2rs-macros check-unit
146134
)
147135

148-
add_custom_target("check-all"
149-
DEPENDS check check-benchmarks
150-
)
151-
152136
set(RULES_IR_DIR "${CMAKE_BINARY_DIR}/rules")
153137

154138
file(GLOB rule_subdirs ${PROJECT_SOURCE_DIR}/rules/*)

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Then run:
118118
## Test Suite
119119

120120
```bash
121-
# Run all tests except benchmarks
121+
# Run all tests
122122
ninja check
123123

124124
# Run only the unit tests
@@ -127,12 +127,9 @@ ninja check-unit
127127
# Run libcc2rs unit tests
128128
ninja check-libcc2rs
129129

130-
# Run benchmarks (compile & execute)
130+
# Run libcc2rs-macros unit tests
131131
ninja check-benchmarks
132132

133-
# Check benchmark output without executing binaries
134-
SKIP_RUN=1 ninja check-benchmarks
135-
136133
# Regenerate expected output for unit tests after intentional changes
137134
REPLACE_EXPECTED=1 ninja check-unit
138135
```

tests/benchmarks/array_sum.cpp

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

tests/benchmarks/bfs.cpp

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

tests/benchmarks/bst.cpp

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

tests/benchmarks/fibonacci.cpp

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

tests/benchmarks/out/refcount/array_sum.rs

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

0 commit comments

Comments
 (0)