This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
forked from datenlord/open-rdma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·90 lines (73 loc) · 2.85 KB
/
run.sh
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
#! /bin/sh
set -o errexit
set -o nounset
set -o xtrace
CI_ENV="${CI_ENV:-false}"
export MILL_VERSION="0.10.0"
TEST_ONLY="${1:-false}"
if [ ! -f mill ]; then
curl -JLO https://github.com/com-lihaoyi/mill/releases/download/$MILL_VERSION/$MILL_VERSION && mv $MILL_VERSION mill && chmod +x mill
fi
MILL="./mill --no-server"
$MILL version
# The output directory for RTL code
mkdir -p ./rtl
# Generate IDEA config
# $MILL mill.scalalib.GenIdea/idea
if [ "$TEST_ONLY" = "false" ]; then
# Run build and simulation
$MILL rocev2.runMain rdma.RoCEv2
# Check format and lint
if [ "$CI_ENV" = "true" ]; then
$MILL rocev2.checkFormat
$MILL rocev2.fix --check
else
$MILL mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
$MILL rocev2.fix
fi
fi
#$MILL rocev2.test.testSim rdma.SetSuite
# Cache Test
$MILL rocev2.test.testSim rdma.FifoTest
$MILL rocev2.test.testSim rdma.PdAddrCacheTest
$MILL rocev2.test.testSim rdma.ReadAtomicRstCacheTest
$MILL rocev2.test.testSim rdma.WorkReqCacheTest
# SQ Test
$MILL rocev2.test.testSim rdma.SendReqGeneratorTest
$MILL rocev2.test.testSim rdma.WriteReqGeneratorTest
$MILL rocev2.test.testSim rdma.WorkReqValidatorTest
$MILL rocev2.test.testSim rdma.WorkReqCacheAndOutPsnRangeHandlerTest
$MILL rocev2.test.testSim rdma.SqOutTest # Slow test
$MILL rocev2.test.testSim rdma.SqDmaReadRespHandlerTest
# Retry Handler Test
$MILL rocev2.test.testSim rdma.RetryHandlerTest
# Response Handler Test
$MILL rocev2.test.testSim rdma.CoalesceAndNormalAndRetryNakHandlerTest
$MILL rocev2.test.testSim rdma.ReadRespLenCheckTest
$MILL rocev2.test.testSim rdma.ReadAtomicRespVerifierAndFatalNakNotifierTest
$MILL rocev2.test.testSim rdma.ReadAtomicRespDmaReqInitiatorTest
$MILL rocev2.test.testSim rdma.WorkCompGenTest
# RQ Test
$MILL rocev2.test.testSim rdma.ReqCommCheckTest
$MILL rocev2.test.testSim rdma.ReqRnrCheckTest
$MILL rocev2.test.testSim rdma.DupReqHandlerAndReadAtomicRstCacheQueryTest
$MILL rocev2.test.testSim rdma.DupReadDmaReqBuilderTest
$MILL rocev2.test.testSim rdma.ReqAddrInfoExtractorTest
$MILL rocev2.test.testSim rdma.ReqAddrValidatorTest
$MILL rocev2.test.testSim rdma.ReqPktLenCheckTest
$MILL rocev2.test.testSim rdma.ReqSplitterAndNakGenTest
$MILL rocev2.test.testSim rdma.RqSendWriteDmaReqInitiatorTest
$MILL rocev2.test.testSim rdma.RqReadAtomicDmaReqBuilderTest
$MILL rocev2.test.testSim rdma.ReadDmaReqInitiatorTest
$MILL rocev2.test.testSim rdma.RqReadDmaRespHandlerTest
$MILL rocev2.test.testSim rdma.ReadRespGeneratorTest
$MILL rocev2.test.testSim rdma.RqOutTest
$MILL rocev2.test.testSim rdma.SendWriteRespGeneratorTest # Slow test
$MILL rocev2.test.testSim rdma.RqSendWriteWorkCompGeneratorTest # Slow test
if [ "$CI_ENV" = "true" ]; then
rm -rf simWorkspace/ # Delete simulation data to save space for GitHub CI
fi
# E2E test
$MILL rocev2.test.testSim rdma.RecvQTest
# QpCtrl Test
$MILL rocev2.test.testSim rdma.QpCtrlTest