aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xmlsh.rb
diff options
context:
space:
mode:
authorMike Naberezny2014-04-06 10:53:33 -0700
committerAdam Vandenberg2014-04-06 11:50:13 -0700
commitc2a6cd151dc8d140b07fef5abf890afb525de36d (patch)
tree70cac5d0c702a5183cd48a8d0a5534e1ace10e0b /Library/Formula/xmlsh.rb
parent3164a22ddf46047e56ebf9df0c4d308fa0162cfc (diff)
downloadhomebrew-c2a6cd151dc8d140b07fef5abf890afb525de36d.tar.bz2
xmlsh: add test
Closes #28202. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/xmlsh.rb')
-rw-r--r--Library/Formula/xmlsh.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/xmlsh.rb b/Library/Formula/xmlsh.rb
index efdd4fbf3..935b44e14 100644
--- a/Library/Formula/xmlsh.rb
+++ b/Library/Formula/xmlsh.rb
@@ -15,4 +15,10 @@ class Xmlsh < Formula
exec #{libexec}/unix/xmlsh "$@"
EOS
end
+
+ test do
+ out = `#{bin}/xmlsh -c 'x=<[<foo bar="baz" />]> && echo <[$x/@bar]>'`
+ assert_equal "baz\n", out
+ assert_equal 0, $?.exitstatus
+ end
end