Name change for tests, to be check-onnx-(lit | backend) (#62)

This commit is contained in:
Alexandre Eichenberger 2020-03-31 10:06:14 -04:00 committed by GitHub
parent c8758545e7
commit 844dcd8b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View File

@ -48,4 +48,4 @@ make -j "$(nproc)" install
OMP_NUM_THREADS=20 OMP_THREAD_LIMIT=20 ctest3 -j "$(nproc)" OMP_NUM_THREADS=20 OMP_THREAD_LIMIT=20 ctest3 -j "$(nproc)"
# Run lit+FileCheck tests: # Run lit+FileCheck tests:
make check-mlir-lit make check-onnx-lit

View File

@ -40,7 +40,7 @@ jobs:
command: | command: |
sudo pip install -q -e ./onnx-mlir/third_party/onnx sudo pip install -q -e ./onnx-mlir/third_party/onnx
cd onnx-mlir/build cd onnx-mlir/build
cmake --build . --target run-onnx-backend-test cmake --build . --target check-onnx-backend
- run: - run:
name: Run DocCheck name: Run DocCheck
command: cd onnx-mlir/build && cmake --build . --target check-doc command: cd onnx-mlir/build && cmake --build . --target check-doc

View File

@ -54,7 +54,7 @@ cmake --build . --target onnx-mlir
# Run FileCheck tests: # Run FileCheck tests:
export LIT_OPTS=-v export LIT_OPTS=-v
cmake --build . --target check-mlir-lit cmake --build . --target check-onnx-lit
``` ```
After the above commands succeed, an `onnx-mlir` executable should appear in the `bin` directory. After the above commands succeed, an `onnx-mlir` executable should appear in the `bin` directory.

View File

@ -2,9 +2,9 @@ configure_file(test.py test.py COPYONLY)
configure_file(test_config.py.in test_config.py) configure_file(test_config.py.in test_config.py)
find_package(PythonInterp 3 REQUIRED) find_package(PythonInterp 3 REQUIRED)
add_custom_target(run-onnx-backend-test add_custom_target(check-onnx-backend
COMMAND ${PYTHON_EXECUTABLE} COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_BINARY_DIR}/test.py) ${CMAKE_CURRENT_BINARY_DIR}/test.py)
add_dependencies(run-onnx-backend-test onnx-mlir) add_dependencies(check-onnx-backend onnx-mlir)
add_dependencies(run-onnx-backend-test pyruntime) add_dependencies(check-onnx-backend pyruntime)

View File

@ -8,12 +8,12 @@ configure_lit_site_cfg(${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
set(ONNX_MLIR_TEST_DEPENDS onnx-mlir-opt) set(ONNX_MLIR_TEST_DEPENDS onnx-mlir-opt)
add_lit_testsuite(check-mlir-lit add_lit_testsuite(check-onnx-lit
"Running the ONNX MLIR regression tests" "Running the ONNX MLIR regression tests"
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS DEPENDS
${ONNX_MLIR_TEST_DEPENDS}) ${ONNX_MLIR_TEST_DEPENDS})
set_target_properties(check-mlir-lit PROPERTIES FOLDER "Tests") set_target_properties(check-onnx-lit PROPERTIES FOLDER "Tests")
add_lit_testsuites(ONNX_MLIR add_lit_testsuites(ONNX_MLIR
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}

View File

@ -8,4 +8,4 @@ cmake --build . --target onnx-mlir
# Run FileCheck tests: # Run FileCheck tests:
export LIT_OPTS=-v export LIT_OPTS=-v
cmake --build . --target check-mlir-lit cmake --build . --target check-onnx-lit