Commits

Stefan Saasen committed 5c865f7

Remove test.sh, use 'rake test' instead

  • Participants
  • Parent commits a682d8d

Comments (0)

Files changed (2)

File logparser/Rakefile

 
 desc "Clean build artifacts"
 task :clean do
-  `cabal clean`
+  cabal 'clean'
 end
 
 desc "Create the logparser binary"
 task :build => :clean do
   %w(configure build).each do |cmd|
-    `cabal #{cmd}`
+    cabal cmd
   end
   `strip #{ARTIFACT}`
 end
 
 desc "Rebuild and copy the logparser into the cabal bin directory"
 task :rebuild => :build do
-  `cabal copy`
+  cabal 'copy'
+end
+
+
+desc "Run the tests"
+task :test do
+  ["clean", "configure --enable-tests", "build", "test"].each do |cmd|
+    cabal cmd
+  end
+end
+
+
+def cabal(cmd)
+  print `cabal #{cmd}`
 end

File logparser/test.sh

-#!/bin/bash
-
-cabal clean
-cabal configure --enable-tests
-cabal build
-cabal test