Commit | Line | Data |
---|---|---|
ed9f1fb2 JG |
1 | #!/bin/bash |
2 | # | |
9d16b343 | 3 | # Copyright (C) 2018 Jérémie Galarneau <jdesfossez@efficios.com> |
ed9f1fb2 | 4 | # |
9d16b343 MJ |
5 | # SPDX-License-Identifier: LGPL-2.1-only |
6 | ||
ed9f1fb2 JG |
7 | TEST_DESC="Rotation - Schedule API" |
8 | ||
9 | CURDIR=$(dirname $0)/ | |
10 | TESTDIR=$CURDIR/../../.. | |
11 | ||
12 | SESSION_NAME="my_session" | |
13 | TRACE_PATH=$(mktemp -d) | |
14 | ||
15 | source $TESTDIR/utils/utils.sh | |
16 | ||
17 | print_test_banner "$TEST_DESC" | |
18 | ||
19 | start_lttng_sessiond_notap | |
20 | ||
21 | create_lttng_session_notap $SESSION_NAME $TRACE_PATH | |
22 | ||
23 | # The actual test is a native application as it tests the liblttng-ctl API | |
24 | $CURDIR/schedule_api $SESSION_NAME | |
25 | ||
26 | destroy_lttng_session_notap $SESSION_NAME | |
27 | stop_lttng_sessiond_notap | |
28 | ||
29 | # Remove tmp dir | |
30 | rm -rf $TRACE_PATH |