aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-10-30 09:02:01 +0000
committerMike McQuaid2014-10-30 09:02:01 +0000
commitbf051ea40f2428255056a6b521bc64692e42a377 (patch)
tree3992fc8bd5caaeb3edb1f88139135763d0dceb14 /Library
parent3f49e840a8efad4ade86341a17e34e2bf9107080 (diff)
downloadhomebrew-bf051ea40f2428255056a6b521bc64692e42a377.tar.bz2
qbs: add test.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qbs.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/qbs.rb b/Library/Formula/qbs.rb
index b585cbf40..28e4e9ae4 100644
--- a/Library/Formula/qbs.rb
+++ b/Library/Formula/qbs.rb
@@ -18,4 +18,24 @@ class Qbs < Formula
system "qmake", "qbs.pro", "-r"
system "make", "install", "INSTALL_ROOT=#{prefix}"
end
+
+ test do
+ (testpath/"test.c").write <<-EOS.undent
+ int main() {
+ return 0;
+ }
+ EOS
+
+ (testpath/"test.qbp").write <<-EOS.undent
+ import qbs
+
+ CppApplication {
+ name: "test"
+ files: "test.c"
+ consoleApplication: true
+ }
+ EOS
+
+ system "#{bin}/qbs", "run", "-f", "test.qbp", "profile:clang"
+ end
end