diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-08-24 17:55:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-24 17:55:39 +0200 |
| commit | 556d0dfce7577d6bad33d246a37f00a7627c295a (patch) | |
| tree | cf49217122165db2ddb3b51e845d280b4f6f4c02 /test/kdm_cli_test.cc | |
| parent | 9e9de4d02ef9a9d5b0033db65791b88a37d78216 (diff) | |
Add --cinemas-file option to KDM CLI.
Diffstat (limited to 'test/kdm_cli_test.cc')
| -rw-r--r-- | test/kdm_cli_test.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/kdm_cli_test.cc b/test/kdm_cli_test.cc index c91cb64f4..4114cebd4 100644 --- a/test/kdm_cli_test.cc +++ b/test/kdm_cli_test.cc @@ -172,3 +172,26 @@ BOOST_AUTO_TEST_CASE(kdm_cli_select_screen) } +BOOST_AUTO_TEST_CASE(kdm_cli_specify_cinemas_file) +{ + ConfigRestorer cr; + + setup_test_config(); + + vector<string> args = { + "kdm_cli", + "--cinemas-file", + "test/data/cinemas.xml", + "--list-cinemas" + }; + + vector<string> output; + auto const error = run(args, output); + BOOST_CHECK(!error); + + BOOST_REQUIRE_EQUAL(output.size(), 3U); + BOOST_CHECK_EQUAL(output[0], "stinking dump ()"); + BOOST_CHECK_EQUAL(output[1], "classy joint ()"); + BOOST_CHECK_EQUAL(output[2], "Great ()"); +} + |
