[commit: packages/hpc] master: Tests: capture all output (a9ecba1)

git at git.haskell.org git at git.haskell.org
Thu Jul 16 15:38:12 UTC 2015


Repository : ssh://git@git.haskell.org/hpc

On branch  : master
Link       : http://git.haskell.org/packages/hpc.git/commitdiff/a9ecba162ae307acf12a1a783dbe1cf6ebb5729d

>---------------------------------------------------------------

commit a9ecba162ae307acf12a1a783dbe1cf6ebb5729d
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Thu Jul 16 13:14:35 2015 +0200

    Tests: capture all output


>---------------------------------------------------------------

a9ecba162ae307acf12a1a783dbe1cf6ebb5729d
 tests/simple/tixs/hpc_hand_overlay.stdout |  1 +
 tests/simple/tixs/hpc_overlay.stdout      |  2 ++
 tests/simple/tixs/hpc_overlay2.stdout     |  1 +
 tests/simple/tixs/test.T                  | 22 +++++++++++-----------
 4 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/tests/simple/tixs/hpc_hand_overlay.stdout b/tests/simple/tixs/hpc_hand_overlay.stdout
index d6c16e6..fe4d77f 100644
--- a/tests/simple/tixs/hpc_hand_overlay.stdout
+++ b/tests/simple/tixs/hpc_hand_overlay.stdout
@@ -1,3 +1,4 @@
+Tix [TixModule "Main" 2454134535 5 [0,1,0,0,0]]
 100% expressions used (4/4)
 100% boolean coverage (0/0)
      100% guards (0/0)
diff --git a/tests/simple/tixs/hpc_overlay.stdout b/tests/simple/tixs/hpc_overlay.stdout
index d6c16e6..8fda52f 100644
--- a/tests/simple/tixs/hpc_overlay.stdout
+++ b/tests/simple/tixs/hpc_overlay.stdout
@@ -1,3 +1,5 @@
+Tix [TixModule "Main" 2454134535 5 [0,1,0,0,0]]
+
 100% expressions used (4/4)
 100% boolean coverage (0/0)
      100% guards (0/0)
diff --git a/tests/simple/tixs/hpc_overlay2.stdout b/tests/simple/tixs/hpc_overlay2.stdout
index d6c16e6..fe4d77f 100644
--- a/tests/simple/tixs/hpc_overlay2.stdout
+++ b/tests/simple/tixs/hpc_overlay2.stdout
@@ -1,3 +1,4 @@
+Tix [TixModule "Main" 2454134535 5 [0,1,0,0,0]]
 100% expressions used (4/4)
 100% boolean coverage (0/0)
      100% guards (0/0)
diff --git a/tests/simple/tixs/test.T b/tests/simple/tixs/test.T
index da88911..f1e82ef 100644
--- a/tests/simple/tixs/test.T
+++ b/tests/simple/tixs/test.T
@@ -23,9 +23,9 @@ test('hpc_markup_error_001', exit_code(1), run_command,
 test('hpc_markup_error_002', exit_code(1), run_command,
      ["{hpc} markup hpc001.hs"]) # bad .tix file
 test('hpc_markup_001', normal, run_command,
-     ["{hpc} markup hpc_sample.tix --highlight-covered; cat Main.hs.html"])
+     ["{hpc} markup --verbosity=0 hpc_sample.tix --highlight-covered; cat Main.hs.html"])
 test('hpc_markup_002', normal, run_command,
-     ["{hpc} markup hpc_sample.tix --fun-entry-count; cat Main.hs.html"])
+     ["{hpc} markup --verbosity=0 hpc_sample.tix --fun-entry-count; cat Main.hs.html"])
 
 test('hpc_help_show', normal, run_command, ["{hpc} help show"])
 test('hpc_show', normal, run_command, ["{hpc} show hpc_sample.tix"])
@@ -45,26 +45,26 @@ test('hpc_help_overlay', normal, run_command, ["{hpc} help overlay"])
 test('hpc_overlay',
      [extra_clean(['sample_overlay1.tix', 'total1.tix'])],
      run_command,
-     ["{hpc} overlay sample_overlay.ovr > sample_overlay1.tix; "
-      "cat sample_overlay1.tix; "
+     ["({hpc} overlay sample_overlay.ovr > sample_overlay1.tix; "
+      "cat sample_overlay1.tix; echo; "
       "{hpc} combine hpc_sample.tix sample_overlay1.tix > total1.tix; "
-      "{hpc} report total1.tix"])
+      "{hpc} report total1.tix)"])
 
 test('hpc_overlay2',
      [extra_clean(['sample_overlay2.tix', 'total2.tix'])],
      run_command,
-     ["{hpc} overlay sample_overlay.ovr --output=sample_overlay2.tix; "
-      "cat sample_overlay2.tix; "
+     ["({hpc} overlay sample_overlay.ovr --output=sample_overlay2.tix; "
+      "cat sample_overlay2.tix; echo; "
       "{hpc} combine hpc_sample.tix sample_overlay2.tix --output=total2.tix; "
-      "{hpc} report total2.tix"])
+      "{hpc} report total2.tix)"])
 
 test('hpc_hand_overlay',
      [extra_clean(['sample_overlay3.tix', 'total3.tix'])],
      run_command,
-     ["{hpc} overlay hand_overlay.ovr --output=sample_overlay3.tix; "
-      "cat sample_overlay3.tix; "
+     ["({hpc} overlay hand_overlay.ovr --output=sample_overlay3.tix; "
+      "cat sample_overlay3.tix; echo; "
       "{hpc} combine hpc_sample.tix sample_overlay3.tix --output=total3.tix; "
-      "{hpc} report total3.tix"])
+      "{hpc} report total3.tix)"])
 
 test('hpc_bad_001', exit_code(1), run_command, ["{hpc} bad arguments"])
 



More information about the ghc-commits mailing list