link for start-testcase-DMM
[csit.git] / README
1 # STEPS TO START DEVELOPING TESTS LOCALLY
2  - install virtualenv
3  - generate environment using virtualenv:
4     # cd $ROOT
5     # virtualenv env
6     # source env/bin/activate
7  - install python requirements for this project by executing:
8     # pip install -r requirements.txt
9  - make sure user mentioned in topology.py has NOPASSWD sudo access to
10     vpp_api_test
11
12 Note:
13 You can alternatively create the virtualenv with the flag --system-site-packages
14 It give access to the global site-packages dir to the virtual environment, which
15 is faster, but you may end up with some conflicts.
16
17
18  Done.
19
20 # STEPS TO START THE TESTS
21 export PYTHONPATH=.
22
23 # create topology, edit ip addresses
24 cp topologies/available/3_node_hw_topo1.yaml.example topologies/available/topology.yaml
25 ln -s ../available/topology.yaml topologies/enabled/topology.yaml
26
27 pybot -L TRACE -v TOPOLOGY_PATH:topologies/enabled/topology.yaml tests
28  or
29 ./main.py -t topologies/enabled/topology.yaml -i test_tag
30  or
31 ./main.py
32
33
34 # Dependencies on Nodes
35
36  - virtualenv
37  - pip
38  - python2.7
39  - python-dev package
40  - gcc (pycrypto)
41  - libpcap-devel (pypcap)
42
43 ``` bash
44 # on fedora26
45 yum install -y python-virtualenv python-pip python python-devel libpcap-devel gcc
46
47 # if you have the following error during pycrypto
48 # gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1 No such file or directory
49 yum install -y redhat-rpm-config
50 ```
51

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.