diff --git a/examples/Makefile.am b/examples/Makefile.am index 726f28b..98ef554 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -5,6 +5,7 @@ dist_examples_DATA = \ ezstream-file_template.xml \ ezstream-full.xml \ ezstream-minimal.xml \ + ezstream-stdin.xml \ ezstream-video.xml \ metadata.txt \ artist.txt \ diff --git a/examples/ezstream-stdin.xml b/examples/ezstream-stdin.xml new file mode 100644 index 0000000..db7ab24 --- /dev/null +++ b/examples/ezstream-stdin.xml @@ -0,0 +1,25 @@ + + + + + + + + 127.0.0.1 + hackme + + + + /stream.ogg + Vorbis + + + + stdin + + + diff --git a/tests/check_cfg_xmlfile.c b/tests/check_cfg_xmlfile.c index bb88fdc..a410f6a 100644 --- a/tests/check_cfg_xmlfile.c +++ b/tests/check_cfg_xmlfile.c @@ -18,6 +18,9 @@ START_TEST(test_reload) ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-minimal.xml", NULL), 0); ck_assert_int_eq(cfg_file_reload(), 0); + ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-stdin.xml", + NULL), 0); + ck_assert_int_eq(cfg_file_reload(), 0); ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-video.xml", NULL), 0); ck_assert_int_eq(cfg_file_reload(), 0);