A Discrete-Event Network Simulator
API
examples-to-run.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 
4 # A list of C++ examples to run in order to ensure that they remain
5 # buildable and runnable over time. Each tuple in the list contains
6 #
7 # (example_name, do_run, do_valgrind_run).
8 #
9 # See test.py for more information.
10 cpp_examples = [
11  ("mixed-wired-wireless", "True", "True"),
12  ("multirate --totalTime=0.3s --rateManager=ns3::AarfcdWifiManager", "True", "True"),
13  ("multirate --totalTime=0.3s --rateManager=ns3::AmrrWifiManager", "True", "False"),
14  ("multirate --totalTime=0.3s --rateManager=ns3::CaraWifiManager", "True", "False"),
15  ("multirate --totalTime=0.3s --rateManager=ns3::IdealWifiManager", "True", "False"),
16  ("multirate --totalTime=0.3s --rateManager=ns3::MinstrelWifiManager", "True", "False"),
17  ("multirate --totalTime=0.3s --rateManager=ns3::OnoeWifiManager", "True", "False"),
18  ("multirate --totalTime=0.3s --rateManager=ns3::RraaWifiManager", "True", "False"),
19  ("wifi-adhoc", "False", "True"), # Takes too long to run
20  ("wifi-ap --verbose=0", "True", "True"), # Don't let it spew to stdout
21  ("wifi-clear-channel-cmu", "False", "True"), # Requires specific hardware
22  ("wifi-simple-adhoc", "True", "True"),
23  ("wifi-simple-adhoc-grid", "True", "True"),
24  ("wifi-simple-infra", "True", "True"),
25  ("wifi-simple-interference", "True", "True"),
26  ("wifi-wired-bridging", "True", "True"),
27  ("wifi-sleep", "True", "True"),
28  ("wifi-blockack", "True", "True"),
29  ("wifi-timing-attributes --simulationTime=1", "True", "True"),
30  ("power-adaptation-distance --manager=ns3::ParfWifiManager --outputFileName=parf --steps=5 --stepsSize=10", "True", "True"),
31  ("power-adaptation-distance --manager=ns3::AparfWifiManager --outputFileName=aparf --steps=5 --stepsSize=10", "True", "False"),
32  ("power-adaptation-distance --manager=ns3::RrpaaWifiManager --outputFileName=rrpaa --steps=5 --stepsSize=10", "True", "False"),
33  ("power-adaptation-interference --simuTime=5", "True", "False"),
34  ("dsss-validation", "True", "True"),
35  ("ofdm-validation", "True", "True"),
36  ("ofdm-ht-validation", "True", "True"),
37  ("ofdm-vht-validation", "True", "True"),
38  ("ofdm-he-validation", "True", "True"),
39  ("80211n-mimo --simulationTime=0.1 --step=10", "True", "True"),
40  ("ht-wifi-network --simulationTime=0.1 --frequency=5 --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=134", "True", "True"),
41  ("ht-wifi-network --simulationTime=0.1 --frequency=5 --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=130", "True", "True"),
42  ("ht-wifi-network --simulationTime=0.1 --frequency=2.4 --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=132", "True", "True"),
43  ("ht-wifi-network --simulationTime=0.1 --frequency=2.4 --useRts=1 --minExpectedThroughput=4.5 --maxExpectedThroughput=128", "True", "True"),
44  ("vht-wifi-network --simulationTime=0.1 --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=555", "True", "True"),
45  ("vht-wifi-network --simulationTime=0.2 --useRts=1", "True", "True"),
46  ("he-wifi-network --simulationTime=0.25 --frequency=5 --useRts=0 --minExpectedThroughput=6 --maxExpectedThroughput=754", "True", "True"),
47  ("he-wifi-network --simulationTime=0.3 --frequency=5 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=639", "True", "True"),
48  ("he-wifi-network --simulationTime=0.25 --frequency=2.4 --useRts=0 --minExpectedThroughput=6 --maxExpectedThroughput=238", "True", "True"),
49  ("he-wifi-network --simulationTime=0.3 --frequency=2.4 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=224", "True", "True"),
50  ("simple-ht-hidden-stations --simulationTime=1 --enableRts=0 --nMpdus=32 --minExpectedThroughput=59 --maxExpectedThroughput=60", "True", "True"),
51  ("simple-ht-hidden-stations --simulationTime=1 --enableRts=1 --nMpdus=32 --minExpectedThroughput=57 --maxExpectedThroughput=58", "True", "True"),
52  ("mixed-network --simulationTime=1", "True", "True"),
53  ("wifi-aggregation --simulationTime=1 --verifyResults=1", "True", "True"),
54  ("80211e-txop --simulationTime=1 --verifyResults=1", "True", "True"),
55  ("wifi-multi-tos --simulationTime=1 --nWifi=16 --useRts=1 --useShortGuardInterval=1", "True", "True"),
56  ("wifi-tcp", "True", "True"),
57  ("wifi-pcf --simulationTime=1 --withData=0", "True", "True"),
58  ("wifi-pcf --simulationTime=1 --withData=1 --trafficDirection=upstream", "True", "True"),
59  ("wifi-pcf --simulationTime=1 --withData=1 --trafficDirection=downstream", "True", "True"),
60  ("wifi-hidden-terminal --wifiManager=Arf", "True", "True"),
61  ("wifi-hidden-terminal --wifiManager=Aarf", "True", "True"),
62  ("wifi-hidden-terminal --wifiManager=Aarfcd", "True", "True"),
63  ("wifi-hidden-terminal --wifiManager=Onoe", "True", "True"),
64  ("wifi-hidden-terminal --wifiManager=Amrr", "True", "True"),
65  ("wifi-hidden-terminal --wifiManager=Minstrel", "True", "True"),
66  ("wifi-hidden-terminal --wifiManager=Cara", "True", "True"),
67  ("wifi-hidden-terminal --wifiManager=Rraa", "True", "True"),
68  ("wifi-hidden-terminal --wifiManager=Rrpaa", "True", "True"),
69  ("wifi-spectrum-per-example --distance=52 --index=3 --wifiType=ns3::SpectrumWifiPhy --simulationTime=1", "True", "True"),
70  ("wifi-spectrum-per-example --distance=24 --index=31 --wifiType=ns3::YansWifiPhy --simulationTime=1", "True", "False"),
71  ("wifi-spectrum-per-interference --distance=24 --index=31 --simulationTime=1 --waveformPower=0.1", "True", "True"),
72  ("wifi-spectrum-saturation-example --simulationTime=1 --index=63", "True", "True"),
73  ("wifi-backward-compatibility --apVersion=80211a --staVersion=80211n_5GHZ --simulationTime=1", "True", "True"),
74  ("wifi-backward-compatibility --apVersion=80211a --staVersion=80211n_5GHZ --apRaa=Ideal --staRaa=Ideal --simulationTime=1", "True", "False"),
75  ("wifi-backward-compatibility --apVersion=80211a --staVersion=80211ac --simulationTime=1", "True", "False"),
76  ("wifi-backward-compatibility --apVersion=80211a --staVersion=80211ac --apRaa=Ideal --staRaa=Ideal --simulationTime=1", "True", "False"),
77 ]
78 
79 # A list of Python examples to run in order to ensure that they remain
80 # runnable over time. Each tuple in the list contains
81 #
82 # (example_name, do_run).
83 #
84 # See test.py for more information.
85 python_examples = [
86  ("wifi-ap.py", "True"),
87  ("mixed-wired-wireless.py", "True"),
88 ]