Skip to content

Commit

Permalink
adjust xfails
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Oct 20, 2024
1 parent b8f96b6 commit 12fcfb0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backends/tofino/bf-p4c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1493,10 +1493,11 @@ if (ENABLE_GTESTS)
set (GTEST_LDADD ${GTEST_LDADD}
"bf_gtest_support;tofinobackend;${LIBDYNHASH_LIBRARY};bfn_p4runtime" PARENT_SCOPE)

add_test(NAME test_p4c_driver
COMMAND ${BFN_P4C_SOURCE_DIR}/scripts/test_p4c_driver.py -j 4 --print-on-failure --compiler ${P4C_BINARY_DIR}/bf-p4c
WORKING_DIRECTORY ${P4C_BINARY_DIR})
set_tests_properties(test_p4c_driver PROPERTIES LABELS lint)
# TODO: re-enable this test once p4-test is added to the build system
# add_test(NAME test_p4c_driver
# COMMAND ${BFN_P4C_SOURCE_DIR}/scripts/test_p4c_driver.py -j 4 --print-on-failure --compiler ${P4C_BINARY_DIR}/bf-p4c
# WORKING_DIRECTORY ${P4C_BINARY_DIR})
# set_tests_properties(test_p4c_driver PROPERTIES LABELS lint)

endif(ENABLE_GTESTS)

Expand Down
10 changes: 10 additions & 0 deletions tools/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,13 @@ add_test(NAME driver_inputs_test_1 COMMAND ${P4C_SOURCE_DIR}/tools/driver/test_s
add_test(NAME driver_inputs_test_2 COMMAND ${P4C_SOURCE_DIR}/tools/driver/test_scripts/driver_inputs_test_2)
add_test(NAME driver_inputs_test_3 COMMAND ${P4C_SOURCE_DIR}/tools/driver/test_scripts/driver_inputs_test_3)
add_test(NAME driver_inputs_test_4 COMMAND ${P4C_SOURCE_DIR}/tools/driver/test_scripts/driver_inputs_test_4)

set(XFAIL driver_inputs_test_1
driver_inputs_test_2
driver_inputs_test_3
driver_inputs_test_4)

set_tests_properties(driver_inputs_test_1 PROPERTIES LABELS "XFAIL" WILL_FAIL 1)
set_tests_properties(driver_inputs_test_2 PROPERTIES LABELS "XFAIL" WILL_FAIL 1)
set_tests_properties(driver_inputs_test_3 PROPERTIES LABELS "XFAIL" WILL_FAIL 1)
set_tests_properties(driver_inputs_test_4 PROPERTIES LABELS "XFAIL" WILL_FAIL 1)

0 comments on commit 12fcfb0

Please sign in to comment.