diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 598b43e4..ffd4e5c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,3 +82,18 @@ jobs: # The Windows CI transforms the `c-library` symlink into a real directory, modifying the Git # state, so we ignore these changes with `--allow-dirty` here. run: scripts/verify-publish.sh --allow-dirty + + rust_test: + name: Run Rust integration tests + runs-on: ubuntu-latest + defaults: + run: + working-directory: rust/integration-tests + shell: bash + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + submodules: recursive + - uses: abrown/install-vtune-action@v1 + - name: Run integration tests + run: cargo test diff --git a/rust/integration-tests/tests/main.rs b/rust/integration-tests/tests/main.rs index 53a50564..06a4bd89 100644 --- a/rust/integration-tests/tests/main.rs +++ b/rust/integration-tests/tests/main.rs @@ -31,8 +31,6 @@ fn run_with_collector() { "-collect", "hotspots", result_dir_flag, - "-knob", - "sampling-mode=hw", "cargo", "run", ]); diff --git a/rust/ittapi-sys/src/lib.rs b/rust/ittapi-sys/src/lib.rs index ac7b2fd1..e11b4fb0 100644 --- a/rust/ittapi-sys/src/lib.rs +++ b/rust/ittapi-sys/src/lib.rs @@ -32,11 +32,3 @@ include!("windows/jitprofiling_bindings.rs"); include!("freebsd/jitprofiling_bindings.rs"); #[cfg(target_os = "openbsd")] include!("openbsd/jitprofiling_bindings.rs"); - -// #[link(name = "ittnotify", kind = "static")] -// extern "C" { -// #[link_name = "__itt_domain_create_init_3_0"] -// pub fn __itt_domain_create_init_3_0(name: *const std::os::raw::c_char) -> *mut __itt_domain; -// // #[link_name = "__itt_domain_create_init_3_0"] -// // pub fn __itt_domain_create(name: *const std::os::raw::c_char) -> *mut __itt_domain; -// }