Skip to content

Commit 344e8a6

Browse files
committed
wip: use bash instead of just
1 parent 2f641fe commit 344e8a6

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
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

crates/heaptrack/Justfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

crates/heaptrack/test.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)