summaryrefslogtreecommitdiffstats
path: root/jjb/trex/include-raw-trex-build.sh
blob: 24049ac0b87a986e6f97db71fa5fd1a65f63da0f (plain)
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
#!/bin/bash -ex

# emulate unique name for now
GERRIT_NEWREV=hash`date +%s%N`
WS=${PWD}/$GERRIT_NEWREV

#  temporary don't fail
set +e

function clean_ws {
    rm -rf "$WS"
}
trap clean_ws EXIT

echo "$WS"
clean_ws
mkdir "$WS"
cd "$WS"

# cloning

git clone https://github.com/cisco-system-traffic-generator/trex-core.git
git clone https://github.com/cisco-system-traffic-generator/trex-doc.git
ls -l

# building core

cd trex-core/linux_dpdk
./b configure
./b build
cd -

cd trex-core/linux
./b configure
./b build
cd -

which asciidoc
which sphinx-build
which dblatex
which python
which python3
which pip

# building docs

cd trex-doc
./b configure
./b build
cd -

echo Done