-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.test
137 lines (129 loc) · 7.28 KB
/
Makefile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
TESTDIR ?= $(abspath ../test)
LOGDIR ?= $(abspath ../tmp)
TESTBENCHS = \
SimDma.bsv \
SimExtractRdmaHeaderPayload.bsv \
SimGenRdmaReqResp.bsv \
TestArbitration.bsv \
TestController.bsv \
TestDupReadAtomicCache.bsv \
TestExtractAndPrependPipeOut.bsv \
TestInputPktHandle.bsv \
TestMetaData.bsv \
TestPayloadConAndGen.bsv \
TestQueuePair.bsv \
TestReqGenSQ.bsv \
TestReqHandleRQ.bsv \
TestRespHandleSQ.bsv \
TestRetryHandleSQ.bsv \
TestSpecialFIFOF.bsv \
TestTransportLayer.bsv \
TestUtils.bsv \
TestWorkCompGen.bsv \
TestPayloadGen.bsv \
TestSendQ.bsv
SimDma.bsv = mkTestFixedPktLenDataStreamPipeOut \
mkTestDmaReadAndWriteSrv
SimExtractRdmaHeaderPayload.bsv = mkTestSimExtractNormalHeaderPayload
SimGenRdmaReqResp.bsv = mkTestSimGenRdmaResp
TestArbitration.bsv = mkTestPipeOutArbiter \
mkTestServerArbiter \
mkTestClientArbiter
TestController.bsv = mkTestCntrlInVec
TestDupReadAtomicCache.bsv = mkTestDupReadAtomicCache \
mkTestCacheFIFO
TestExtractAndPrependPipeOut.bsv = mkTestHeaderAndDataStreamConversion \
mkTestPrependHeaderBeforeEmptyDataStream \
mkTestExtractHeaderWithPayloadLessThanOneFrag \
mkTestExtractHeaderLongerThanDataStream \
mkTestExtractAndPrependHeader
TestInputPktHandle.bsv = mkTestCalculateRandomPktLen \
mkTestCalculatePktLenEqPMTU \
mkTestCalculateZeroPktLen \
mkTestReceiveCNP
TestMetaData.bsv = mkTestMetaDataMRs \
mkTestMetaDataPDs \
mkTestMetaDataQPs \
mkTestPermCheckSrv \
mkTestMetaDataSrv \
mkTestBramCache \
mkTestTLB
TestPayloadConAndGen.bsv = mkTestPayloadConAndGenNormalCase \
mkTestPayloadGenSegmentAndPaddingCase \
mkTestDmaReadCntrlNormalCase \
mkTestDmaReadCntrlCancelCase \
mkTestDmaWriteCntrlNormalCase \
mkTestDmaWriteCntrlCancelCase \
mkTestAddrChunkSrv
TestQueuePair.bsv = mkTestPermCheckCltArbiter \
mkTestDmaReadCltArbiter \
mkTestQueuePairReqErrResetCase \
mkTestQueuePairRespErrResetCase \
mkTestQueuePairTimeOutErrResetCase \
mkTestQueuePairTimeOutErrCase \
mkTestQueuePairNormalCase
TestReqGenSQ.bsv = mkTestReqGenNormalCase \
mkTestReqGenZeroLenCase \
mkTestReqGenDmaReadErrCase
TestReqHandleRQ.bsv = mkTestReqHandleNormalReqCase \
mkTestReqHandleDupReqCase \
mkTestReqHandleNoAckReqCase \
mkTestReqHandleTooManyReadAtomicReqCase \
mkTestReqHandleReqErrCase \
mkTestReqHandlePermCheckFailCase \
mkTestReqHandleDmaReadErrCase \
mkTestReqHandleRnrCase \
mkTestReqHandleSeqErrCase
TestRespHandleSQ.bsv = mkTestRespHandleNormalRespCase \
mkTestRespHandleDupRespCase \
mkTestRespHandleGhostRespCase \
mkTestRespHandleRespErrCase \
mkTestRespHandleRetryErrCase \
mkTestRespHandleTimeOutErrCase \
mkTestRespHandlePermCheckFailCase \
mkTestRespHandleRnrCase \
mkTestRespHandleSeqErrCase \
mkTestRespHandleNestedRetryCase
TestRetryHandleSQ.bsv = mkTestRetryHandleSeqErrCase \
mkTestRetryHandleImplicitRetryCase \
mkTestRetryHandleRnrCase \
mkTestRetryHandleTimeOutCase \
mkTestRetryHandleNestedRetryCase \
mkTestRetryHandleExcRetryLimitErrCase \
mkTestRetryHandleExcTimeOutLimitErrCase
TestSpecialFIFOF.bsv = mkTestCacheFIFO2 \
mkTestScanFIFOF \
mkTestSearchFIFOF \
mkTestVectorSearch
TestTransportLayer.bsv = mkTestTransportLayerNormalCase \
mkTestTransportLayerErrorCase
TestUtils.bsv = mkTestPsnFunc
TestWorkCompGen.bsv = mkTestWorkCompGenNormalCaseRQ \
mkTestWorkCompGenErrFlushCaseRQ \
mkTestWorkCompGenNormalCaseSQ \
mkTestWorkCompGenErrFlushCaseSQ
TestPayloadGen.bsv = mkTestCalcPktNumAndPktLenByAddrAndPMTU \
mkTestAddrChunkSrv \
mkTestDmaReadCntrlScatterGatherListCase \
mkTestDmaReadCntrlNormalCase \
mkTestDmaReadCntrlCancelCase \
mkTestMergeNormalPayloadEachSGE \
mkTestMergeSmallPayloadEachSGE \
mkTestMergeNormalPayloadAllSGE \
mkTestMergeSmallPayloadAllSGE \
mkTestAdjustNormalPayloadSegmentCase \
mkTestAdjustSmallPayloadSegmentCase \
mkTestPayloadGenNormalCase \
mkTestPayloadGenSmallCase \
mkTestPayloadGenZeroCase
TestSendQ.bsv = mkTestSendQueueRawPktCase \
mkTestSendQueueNormalCase \
mkTestSendQueueNoPayloadCase \
mkTestSendQueueZeroPayloadLenCase
all: $(TESTBENCHS)
%.bsv:
$(foreach testcase, $($@), $(shell cd $(TESTDIR) && make simulate TESTFILE=$@ TOPMODULE=$(testcase) > $(LOGDIR)/$@-$(testcase).log 2>&1))
clean:
rm -f $(LOGDIR)/*.log
.PHONY: all TESTBENCHS %.bsv clean
.DEFAULT_GOAL := all