File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 - client-sdk-rust
5757 - client-sdk-rust/**
5858 - cmake/**
59- - .token_helpers/**
59+ - scripts/set-test-tokens.sh
6060 - scripts/run-with-backtrace.sh
6161 - CMakeLists.txt
6262 - CMakePresets.json
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ jobs:
407407 LIVEKIT_CREATE_TOKEN_URL : ${{ steps.token_server.outputs.token-url }}
408408 run : |
409409 set -euo pipefail
410- source .token_helpers/set_data_track_test_tokens.bash
410+ source scripts/set-test-tokens.sh
411411 # TODO(BOT-477) Temporarily disable platform audio integration tests in CI until instability is resolved
412412 bash scripts/run-with-backtrace.sh \
413413 ${{ env.BUILD_DIR }}/bin/livekit_integration_tests \
@@ -424,7 +424,7 @@ jobs:
424424 RUST_LOG : " metrics=debug"
425425 run : |
426426 set -euo pipefail
427- source .token_helpers/set_data_track_test_tokens.bash
427+ source scripts/set-test-tokens.sh
428428 bash scripts/run-with-backtrace.sh \
429429 ${{ env.BUILD_DIR }}/bin/livekit_stress_tests \
430430 --gtest_repeat=${{ inputs.stress_repeat }} \
@@ -621,4 +621,3 @@ jobs:
621621 name : coverage-report
622622 path : coverage-html/
623623 retention-days : 14
624-
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -346,15 +346,15 @@ CI step will fail loudly if its symbols escape the public ABI of
346346Tests are under ` src/tests/ ` using Google Test:
347347
348348``` bash
349- source .token_helpers/set_data_track_test_tokens.bash
349+ source scripts/set-test-tokens.sh
350350./build.sh debug-tests
351351cd build-debug && ctest
352352```
353353
354354Always source the test tokens before running tests, even for a targeted local
355355test run. The integration and stress suites require ` LIVEKIT_URL ` ,
356356` LIVEKIT_TOKEN_A ` , and ` LIVEKIT_TOKEN_B ` ; use
357- ` source .token_helpers/set_data_track_test_tokens.bash ` from the repository
357+ ` source scripts/set-test-tokens.sh ` from the repository
358358root so the current shell inherits them. Do not report an integration test as
359359verified just because it was skipped for missing tokens. If tokens cannot be
360360sourced or the LiveKit server is not available, say that the integration test
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ export LIVEKIT_TOKEN=$(lk token create \
4545```
4646
4747For integration tests that need two participants, see
48- [ testing.md] ( testing.md#generating-tokens-for-the-test-suites ) and the helper
49- script under ` .token_helpers/ ` .
48+ [ testing.md] ( testing.md#generating-tokens-for-the-test-suites ) and
49+ [ ` scripts/set-test-tokens.sh ` ] ( ../scripts/set-test-tokens.sh ) .
5050
5151## Direct connect (URL + token)
5252
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ participant tokens against a local `livekit-server --dev` and exports
8181` LIVEKIT_TOKEN_A ` , ` LIVEKIT_TOKEN_B ` , and ` LIVEKIT_URL ` for the current shell:
8282
8383``` bash
84- source .token_helpers/set_data_track_test_tokens.bash
84+ source scripts/set-test-tokens.sh
8585```
8686
8787To generate tokens manually (e.g. against a non-default server), install
Original file line number Diff line number Diff line change 1717# required by the C++ SDK's integration and stress tests (data tracks, RPC,
1818# media multistream, etc.).
1919#
20- # source .token_helpers/set_data_track_test_tokens.bash
21- # eval "$(bash .token_helpers/set_data_track_test_tokens.bash )"
20+ # source scripts/set-test-tokens.sh
21+ # eval "$(bash scripts/set-test-tokens.sh )"
2222#
2323# Exports:
2424# LIVEKIT_TOKEN_A
@@ -34,7 +34,7 @@ elif [[ -n "${ZSH_VERSION:-}" ]] && [[ "${ZSH_EVAL_CONTEXT:-}" == *:file* ]]; th
3434fi
3535
3636_fail () {
37- echo " set_data_track_test_tokens.bash : $1 " >&2
37+ echo " set_test_tokens : $1 " >&2
3838 if [[ " $_sourced " -eq 1 ]]; then
3939 return " ${2:- 1} "
4040 fi
@@ -123,5 +123,5 @@ if [[ "$_sourced" -eq 1 ]]; then
123123 echo " LIVEKIT_TOKEN_A, LIVEKIT_TOKEN_B, and LIVEKIT_URL set for this shell." >&2
124124else
125125 _emit_eval
126- echo " set_data_track_test_tokens.bash : for this shell run: source $0 or: eval \"\$ (bash $0 ... )\" " >&2
126+ echo " set_test_tokens : for this shell run: source $0 or: eval \"\$ (bash $0 )\" " >&2
127127fi
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- // This test is used to verify that data tracks are published and received
18- // correctly. It is the same implementation as the rust
19- // client-sdk-rust/livekit/tests/data_track_test.rs test. To run this test, run
20- // a local SFU, set credentials examples/tokens/set_data_track_test_tokens.bash,
21- // and run:
22- // ./build-debug/bin/livekit_integration_tests
23-
2417#include < livekit/data_track_options.h>
2518#include < livekit/data_track_schema.h>
2619#include < livekit/data_track_stream.h>
You can’t perform that action at this time.
0 commit comments