Commit | Line | Data |
---|---|---|
ed9f1fb2 JG |
1 | #!/bin/bash |
2 | # | |
3 | # Copyright (C) - 2018 Jérémie Galarneau <jdesfossez@efficios.com> | |
4 | # | |
5 | # This library is free software; you can redistribute it and/or modify it under | |
6 | # the terms of the GNU Lesser General Public License as published by the Free | |
7 | # Software Foundation; version 2.1 of the License. | |
8 | # | |
9 | # This library is distributed in the hope that it will be useful, but WITHOUT | |
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
11 | # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
12 | # details. | |
13 | # | |
14 | # You should have received a copy of the GNU Lesser General Public License | |
15 | # along with this library; if not, write to the Free Software Foundation, Inc., | |
16 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | TEST_DESC="Rotation - Schedule API" | |
18 | ||
19 | CURDIR=$(dirname $0)/ | |
20 | TESTDIR=$CURDIR/../../.. | |
21 | ||
22 | SESSION_NAME="my_session" | |
23 | TRACE_PATH=$(mktemp -d) | |
24 | ||
25 | source $TESTDIR/utils/utils.sh | |
26 | ||
27 | print_test_banner "$TEST_DESC" | |
28 | ||
29 | start_lttng_sessiond_notap | |
30 | ||
31 | create_lttng_session_notap $SESSION_NAME $TRACE_PATH | |
32 | ||
33 | # The actual test is a native application as it tests the liblttng-ctl API | |
34 | $CURDIR/schedule_api $SESSION_NAME | |
35 | ||
36 | destroy_lttng_session_notap $SESSION_NAME | |
37 | stop_lttng_sessiond_notap | |
38 | ||
39 | # Remove tmp dir | |
40 | rm -rf $TRACE_PATH |