Skip to content

Commit 21a070f

Browse files
style: pre-commit fixes
1 parent 0050674 commit 21a070f

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

tests/regression/CMakeLists.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ add_test(
2424
set_tests_properties(regression_cst_json_roundtrip
2525
PROPERTIES DEPENDS regression_cst_json_gen)
2626

27-
# CST JSON round trip test focused on preprocessor conditional directives, whose disabled
28-
# branches exercise the trivia handling that plain source (all.sv) doesn't cover.
27+
# CST JSON round trip test focused on preprocessor conditional directives, whose
28+
# disabled branches exercise the trivia handling that plain source (all.sv)
29+
# doesn't cover.
2930
add_test(
3031
NAME regression_cst_json_conditionals_gen
31-
COMMAND slang::driver --cst-json ${CMAKE_CURRENT_BINARY_DIR}/conditionals_cst.json
32-
${CMAKE_CURRENT_LIST_DIR}/conditionals.sv "--std=1800-2023")
32+
COMMAND
33+
slang::driver --cst-json ${CMAKE_CURRENT_BINARY_DIR}/conditionals_cst.json
34+
${CMAKE_CURRENT_LIST_DIR}/conditionals.sv "--std=1800-2023")
3335

3436
add_test(
3537
NAME regression_cst_json_conditionals_roundtrip
@@ -41,8 +43,9 @@ add_test(
4143
set_tests_properties(regression_cst_json_conditionals_roundtrip
4244
PROPERTIES DEPENDS regression_cst_json_conditionals_gen)
4345

44-
# Exercise the same source with different conditional branches enabled. Each variant writes
45-
# to a separate file so that the generation tests can run concurrently.
46+
# Exercise the same source with different conditional branches enabled. Each
47+
# variant writes to a separate file so that the generation tests can run
48+
# concurrently.
4649
function(add_cst_json_conditionals_variant name)
4750
set(json_file ${CMAKE_CURRENT_BINARY_DIR}/conditionals_${name}_cst.json)
4851

@@ -54,8 +57,9 @@ function(add_cst_json_conditionals_variant name)
5457
add_test(
5558
NAME regression_cst_json_conditionals_${name}_roundtrip
5659
COMMAND
57-
${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/reconstruct_from_json.py
58-
${json_file} --compare ${CMAKE_CURRENT_LIST_DIR}/conditionals.sv)
60+
${Python_EXECUTABLE}
61+
${PROJECT_SOURCE_DIR}/scripts/reconstruct_from_json.py ${json_file}
62+
--compare ${CMAKE_CURRENT_LIST_DIR}/conditionals.sv)
5963

6064
set_tests_properties(
6165
regression_cst_json_conditionals_${name}_roundtrip

0 commit comments

Comments
 (0)