Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: Integration test
run: |
PKG_CONFIG_PATH=./build/ici/lib/pkgconfig/:${PKG_CONFIG_PATH} PATH=$(pkg-config --variable=bindir thapi):${PATH} bats integration_tests/
export PKG_CONFIG_PATH=./build/ici/lib/pkgconfig/:${PKG_CONFIG_PATH}
bats integration_tests/
# Run the tests twice to make sure we do a proper cleanup
bats integration_tests/

build-in-tree-and-check:
needs: efficios_dep
Expand Down
4 changes: 0 additions & 4 deletions integration_tests/general.bats
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
bats_require_minimum_version 1.5.0

teardown_file() {
rm -rf $THAPI_HOME/thapi-traces
}

@test "pkg-config_file" {
pkg-config --modversion thapi
}
Expand Down
4 changes: 0 additions & 4 deletions integration_tests/parallel_execution.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
teardown_file() {
rm -rf $THAPI_HOME/thapi-traces
}

launch_mpi() {
# timeout just to avoid burning too much hours when bug are introduced
timeout 40s $MPIRUN "$@"
Expand Down
8 changes: 3 additions & 5 deletions integration_tests/sampling.bats
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
teardown_file() {
rm -rf $THAPI_HOME/thapi-traces
}

@test "sampling_heartbeat" {
rm -rf heartbeat_trace

LTTNG_UST_ZE_SAMPLING_ENERGY=0 LTTNG_UST_SAMPLING_HEARTBEAT=1 \
iprof --no-analysis --sample --trace-output heartbeat_trace -- bash -c 'sleep 2'

babeltrace_thapi --no-restrict heartbeat_trace | grep "{foo: 16}"
[ $(babeltrace_thapi --no-restrict heartbeat_trace | grep -c "{foo: 32}") == 1 ]
}
Expand Down Expand Up @@ -32,5 +31,4 @@ teardown_file() {

# assert there is at least one CXI counter sample reporting the difference from the initial
babeltrace_thapi --no-restrict cxi_trace_test | grep -a "value: 9999"

}
2 changes: 2 additions & 0 deletions integration_tests/setup_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
setup_suite() {
export MPIRUN=${MPIRUN:-mpirun}

export PATH=$(pkg-config --variable=bindir thapi):${PATH}

missing_tools=()

# Check for mpirun
Expand Down