From 45ccc252328cb398e6a88b242ae379f3252f3ee9 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Sat, 14 Nov 2015 15:29:36 -0800 Subject: [PATCH] Extend tests a little bit --- test/runtests.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 77147f0..0686b8d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,9 @@ using Homebrew using Base.Test +# Print some debugging info +println("Using Homebrew.jl installed to $(Homebrew.prefix())") + # Restore pkg-config to its installed (or non-installed) state at the end of all of this pkg_was_installed = Homebrew.installed("pkg-config") @@ -13,8 +16,12 @@ Homebrew.add("pkg-config") @test Homebrew.installed("pkg-config") == true # Now show that we have it -run(`pkg-config --version`) pkgconfig = Homebrew.info("pkg-config") +version_str = readchomp(`pkg-config --version`) +@test version_str == pkgconfig.version_str[1:length(version_str)] +@test Homebrew.installed(pkgconfig) == true +display(pkgconfig) +println(" installed to: $(Homebrew.prefix(pkgconfig))") # Run through some of the Homebrew API, both with strings and with BrewPkg objects @test length(filter(x -> x.name == "pkg-config", Homebrew.list())) > 0