Specify path of e2e_test.sh after directory change (#2557)

Is there a way to disable some of CI for docs-only PR's?
pull/2555/head
James Newling 2023-11-07 16:07:02 -08:00 committed by GitHub
parent 4b9db995b5
commit 026cb314da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -347,6 +347,9 @@ Torch-MLIR has two types of tests:
> **Note**
> An `.env` file must be generated via `build_tools/write_env_file.sh` before these commands can be run.
The following assumes you are in the `projects/pt1` directory:
```shell
# Run all tests on the reference backend
./tools/e2e_test.sh
@ -469,10 +472,10 @@ Here are some examples of PRs updating the LLVM and MLIR-HLO submodules:
To enable ASAN, pass `-DLLVM_USE_SANITIZER=Address` to CMake. This should "just
work" with all C++ tools like `torch-mlir-opt`. When running a Python script
such as through `./tools/e2e_test.sh`, you will need to do:
such as through `./projects/pt1/tools/e2e_test.sh`, you will need to do:
```
LD_PRELOAD="$(clang -print-file-name=libclang_rt.asan-x86_64.so)" ./tools/e2e_test.sh -s
LD_PRELOAD="$(clang -print-file-name=libclang_rt.asan-x86_64.so)" ./projects/pt1/tools/e2e_test.sh -s
# See instructions here for how to get the libasan path for GCC:
# https://stackoverflow.com/questions/48833176/get-location-of-libasan-from-gcc-clang
```