annotate tests/src/irccdctl/cli-rule-add/CMakeLists.txt @ 665:7ed23c858694

Tests: test irccdctl (rule-* commands) #785 While here, fix rule-edit which were triggering invalid_index because it was not added to the request. Also fix missing events from configuration file because they were forgotten. Finally, use std::set instead of std::unordered_set for a sorted output in rule-list and rule-info to ensure long-term compatibility in output.
author David Demelier <markand@malikania.fr>
date Thu, 29 Mar 2018 20:01:02 +0200
parents
children f3709544d0d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
665
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 # CMakeLists.txt -- CMake build system for irccd
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 #
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 # Copyright (c) 2013-2018 David Demelier <markand@malikania.fr>
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 #
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 # copyright notice and this permission notice appear in all copies.
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 #
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 #
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 irccd_define_test(
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 NAME cli-rule-add
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 SOURCES main.cpp
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 LIBRARIES libcommon
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 DEPENDS irccd irccdctl
7ed23c858694 Tests: test irccdctl (rule-* commands) #785
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 )