diff options
| author | Mike McQuaid | 2014-10-30 09:02:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-30 09:02:01 +0000 |
| commit | bf051ea40f2428255056a6b521bc64692e42a377 (patch) | |
| tree | 3992fc8bd5caaeb3edb1f88139135763d0dceb14 /Library | |
| parent | 3f49e840a8efad4ade86341a17e34e2bf9107080 (diff) | |
| download | homebrew-bf051ea40f2428255056a6b521bc64692e42a377.tar.bz2 | |
qbs: add test.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/qbs.rb | 20 |
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 |
