test/application/test_minisip.rb in csd-0.1.16 vs test/application/test_minisip.rb in csd-0.1.17

- old
+ new

@@ -30,22 +30,25 @@ assert_equal Core::LIBRARIES, Core.libraries Options.only = %w{ minisip libmutil } assert_equal %w{ libmutil minisip }, Core.libraries end - context "in theory when compiling" do + context "*in theory* when compiling" do setup do Options.clear @base.define_relative_paths Options.clear Application::Minisip.default_options('compile') Options.reveal = true Options.testmode = true end - should "by default use the configure option" do + should "by default use all minisip compiling options" do + assert Options.bootstrap assert Options.configure + assert Options.make + assert Options.make_install end should "know how to checkout the default branch of the source code" do out, err = capture { Core.checkout } assert_match /git clone /, out @@ -60,20 +63,25 @@ assert_match /git pull .+ cuttingedge/, out assert err.empty? end should "use sudo make install instead of make install by default" do - Options.make_install = true - Options.force_ffmpeg = true out, err = capture { Core.compile } # TODO: This should be a more strict test assert_match /sudo make install/, out end - should "" do - #out, err = capture { Core.compile } - #puts out + should "proclaim that it was called in debug mode" do + Options.debug = true + out, err = capture { Core.compile } + assert_match /Minisip::Component::Core\.compile was called/, out + end + should "remove ffmpeg before compiling minisip" do + Options.debug = true + out, err = capture { Core.compile } + assert_match /MILESTONE: removing_ffmpeg.+MILESTONE: processing_libminisip/m, out + assert_no_match /MILESTONE: processing_libminisip.+MILESTONE: removing_ffmpeg/m, out end end # context "in theory when compiling" context "in practice" do