File tree Expand file tree Collapse file tree 3 files changed +17
-17
lines changed
Expand file tree Collapse file tree 3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 lfs : true
3535 - uses : moonrepo/setup-rust@v1
36- - uses : extractions/setup-just@v3
37- - run : cd crates/heaptrack && just test
36+ - run : cd crates/heaptrack && cargo test --release --no-run
37+ - run : cd crates/heaptrack && ./ test.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ # Build tests and capture the integration test binary path from cargo output
5+ output=$( cargo test --release --no-run 2>&1 )
6+ test_binary=$( echo " $output " | grep " tests/integration_test.rs" | sed ' s/.*(\(.*\)).*/\1/' )
7+ if [[ -z " $test_binary " ]]; then
8+ echo " Error: Could not find integration_test binary in cargo output"
9+ exit 1
10+ fi
11+ echo " Found test binary: $test_binary "
12+
13+ # Run the test with sudo (required for BPF and /sys/fs/bpf access)
14+ echo " Running integration tests..."
15+ sudo LD_LIBRARY_PATH=" $LD_LIBRARY_PATH " " $test_binary " --nocapture --test-threads=1
You can’t perform that action at this time.
0 commit comments