lookupBindGroupOcc: recommend names in the same namespace (#17593)
[ghc.git] / testsuite / tests / perf / should_run / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 define runT3736
6 ./T3736 $1 +RTS -t --machine-readable 2>&1 | grep '"bytes allocated"' | sed -e 's/.*, "//' -e 's/".*//'
7 endef
8 .PHONY: T3736
9 T3736:
10 $(RM) -f T3736.hi T3736.o T3736
11 '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O --make T3736 -rtsopts
12 # Check ALLOC1 is > 100 just to check with have sane results, and if so,
13 # the test passes if the two numbers are equal. We could check that the
14 # actual numbers are in the range we expect too (on the various
15 # platforms), but we don't currently.
16 ALLOC1=`$(call runT3736,1)`; ALLOC2=`$(call runT3736,2)`; if [ "$$ALLOC1" -gt 100 ] && [ "$$ALLOC1" -eq "$$ALLOC2" ]; then echo Match; else echo "Mismatch: $$ALLOC1 $$ALLOC2"; fi
17
18 .PHONY: T2902
19 T2902:
20 $(RM) -f T2902_A T2902_B
21 $(RM) -f T2902_A.hi T2902_B.hi
22 $(RM) -f T2902_A.o T2902_B.o
23 $(RM) -f T2902_A_PairingSum.hi T2902_B_PairingSum.hi T2902_Sum.hi
24 $(RM) -f T2902_A_PairingSum.o T2902_B_PairingSum.o T2902_Sum.o
25 '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O --make T2902_A -rtsopts
26 '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O --make T2902_B -rtsopts
27 BAA=`./T2902_A +RTS -t --machine-readable 2>&1 | grep '"bytes allocated"' | sed -e 's/.*, "//' -e 's/")//'`; BAB=`./T2902_B +RTS -t --machine-readable 2>&1 | grep '"bytes allocated"' | sed -e 's/.*, "//' -e 's/")//'`; [ "$$BAA" = "" ] && echo 'T2902_A: No "bytes allocated"'; [ "$$BAA" = "$$BAB" ] || echo "T2902: Mismatch in \"bytes allocated\": $$BAA $$BAB"
28
29 .PHONY: T149
30 T149:
31 $(RM) -f T149_A T149_A.hi T149_A.o
32 $(RM) -f T149_B T149_B.hi T149_B.o
33 '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O --make T149_A -rtsopts
34 '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O --make T149_B -rtsopts
35 BAA=`./T149_A +RTS -t --machine-readable 2>&1 | grep '"bytes allocated"' | sed -e 's/.*, "//' -e 's/")//'`; BAB=`./T149_B +RTS -t --machine-readable 2>&1 | grep '"bytes allocated"' | sed -e 's/.*, "//' -e 's/")//'`; [ "$$BAA" = "" ] && echo 'T149_A: No "bytes allocated"'; [ "$$BAA" = "$$BAB" ] || echo "T149: Mismatch in \"bytes allocated\": $$BAA $$BAB"
36