summaryrefslogtreecommitdiff
path: root/testsuite/tests/profiling/should_run/Makefile
diff options
context:
space:
mode:
authorKavon Farvardin <kavon@farvard.in>2018-09-23 15:29:37 -0500
committerKavon Farvardin <kavon@farvard.in>2018-09-23 15:29:37 -0500
commit84c2ad99582391005b5e873198b15e9e9eb4f78d (patch)
treecaa8c2f2ec7e97fbb4977263c6817c9af5025cf4 /testsuite/tests/profiling/should_run/Makefile
parent8ddb47cfcf5776e9a3c55fd37947c8a95e00fa12 (diff)
parente68b439fe5de61b9a2ca51af472185c62ccb8b46 (diff)
downloadhaskell-84c2ad99582391005b5e873198b15e9e9eb4f78d.tar.gz
update to current master againwip/T13904
Diffstat (limited to 'testsuite/tests/profiling/should_run/Makefile')
-rw-r--r--testsuite/tests/profiling/should_run/Makefile27
1 files changed, 8 insertions, 19 deletions
diff --git a/testsuite/tests/profiling/should_run/Makefile b/testsuite/tests/profiling/should_run/Makefile
index 9adb0a1b76..d52bda1918 100644
--- a/testsuite/tests/profiling/should_run/Makefile
+++ b/testsuite/tests/profiling/should_run/Makefile
@@ -4,25 +4,6 @@ include $(TOP)/mk/test.mk
DECIMAL_REGEXP = [0-9]\+.[0-9]\+
-define scc001Test
- grep -q '^ *$1 \+Main \+[0-9]\+ \+1 \+$(DECIMAL_REGEXP) \+$(DECIMAL_REGEXP) \+$(DECIMAL_REGEXP) \+$(DECIMAL_REGEXP)$$' scc001.prof || { echo 'No single-entry for $1 found in profile'; grep '^ *$1 ' scc001.prof; true; }
-endef
-
-define scc001Rule
- rm -f scc001.hi scc001.o scc001
- @echo Compiling with $1
- '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make scc001 -prof -fprof-auto -rtsopts $1
- ./scc001 +RTS -p
- $(call scc001Test,f)
- $(call scc001Test,g)
- $(call scc001Test,h)
-endef
-
-.PHONY: scc001
-scc001:
- $(call scc001Rule,-O0)
- $(call scc001Rule,-O)
-
.PHONY: T11489
T11489:
$(RM) T11489
@@ -33,3 +14,11 @@ T11489:
# then continue to run and exit normally.
# Caused a segmentation fault in GHC <= 7.10.3
./T11489 +RTS -hr{} -hc
+
+.PHONY: T14257
+T14257:
+ $(RM) T14257
+ "$(TEST_HC)" -O2 --make -prof -v0 -fprof-auto T14257.hs
+ ./T14257 +RTS -hc
+ # Make sure that samples are monotonically increasing
+ awk 'BEGIN{t=0} /BEGIN_SAMPLE/{if ($$2 < t) print "uh oh", $$t, $$0; t=$$2;}' T14257.hp