Skip to content

Commit 8eb845e

Browse files
authored
Merge pull request #509 from intel-go/gregory/quickfix
Fixed parallel make in Travis. Switched to "master" branch in VMs
2 parents b0a3055 + c9def36 commit 8eb845e

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ before_script:
1717
- docker run -it -d --privileged -v /usr/src:/usr/src -v /lib/modules:/lib/modules -v /sys/devices/system/node:/sys/devices/system/node --name test-nff-go test-cosmic /bin/bash
1818

1919
script:
20+
- docker exec -i test-nff-go go mod download
2021
- docker exec -i test-nff-go make
2122
# Build standalone examples
2223
- docker exec -i test-nff-go bash -c "cd examples && make gopacketParserExample && cd .."

Diff for: vagrant/Vagrantfile

+15-4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ network:
7979
dhcp4: true
8080
dhcp6: true
8181
optional: true
82+
enp0s3:
83+
dhcp4: true
84+
dhcp6: true
85+
optional: true
86+
EOF'
87+
sudo sh -c 'cat > /etc/netplan/50-vagrant.yaml <<EOF
88+
---
89+
network:
90+
version: 2
91+
renderer: networkd
92+
ethernets: {}
8293
EOF'
8394
fi
8495
@@ -123,12 +134,12 @@ setuptesthost
123134
124135
echo Downloading and building NFF-GO framework
125136
go get -v golang.org/x/tools/cmd/stringer
126-
git clone -b develop --recurse-submodules http://github.com/intel-go/nff-go
127-
(cd nff-go; make -j1)
137+
git clone -b master --recurse-submodules http://github.com/intel-go/nff-go
138+
(cd nff-go; go mod download; make)
128139
echo Downloading and building NFF-GO NAT example and its dependencies
129140
go get github.com/golang/protobuf/protoc-gen-go
130-
git clone -b develop --recurse-submodules http://github.com/intel-go/nff-go-nat
131-
(cd nff-go-nat; . env.sh; make -j1)
141+
git clone -b master --recurse-submodules http://github.com/intel-go/nff-go-nat
142+
(cd nff-go-nat; go mod download; . env.sh; make)
132143
./nff-go-nat/test/httpperfserv/install-systemd-service.sh "-port 8008"
133144
134145
echo Setting up 1024 huge pages

Diff for: vagrant/scripts.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export DPDK_VERSION=18.11
21
export GOROOT=/opt/go
32
export NFF_GO="$HOME"/nff-go
43
export PATH="$HOME"/go/bin:"$GOROOT"/bin:"$PATH"
@@ -12,14 +11,14 @@ export CARD2=ens7
1211
bindports ()
1312
{
1413
sudo modprobe uio
15-
sudo insmod "$NFF_GO"/dpdk/dpdk-${DPDK_VERSION}/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
16-
sudo "$NFF_GO"/dpdk/dpdk-${DPDK_VERSION}/usertools/dpdk-devbind.py --bind=igb_uio $NFF_GO_CARDS
14+
sudo insmod "$NFF_GO"/dpdk/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
15+
sudo "$NFF_GO"/dpdk/dpdk/usertools/dpdk-devbind.py --bind=igb_uio $NFF_GO_CARDS
1716
}
1817

1918
# Bind ports to Linux kernel driver
2019
unbindports ()
2120
{
22-
sudo "$NFF_GO"/dpdk/dpdk-${DPDK_VERSION}/usertools/dpdk-devbind.py --bind=e1000 $NFF_GO_CARDS
21+
sudo "$NFF_GO"/dpdk/dpdk/usertools/dpdk-devbind.py --bind=e1000 $NFF_GO_CARDS
2322
}
2423

2524
# Run pktgen

0 commit comments

Comments
 (0)