install-apps: script to install NDN applications required for testing
test-ndntlvping: sample test case for testing ndn-tlv-ping
Change-Id: Ib54bd606f6854672ed890d3971ff5827197435e8
refs: #1220
diff --git a/install_helpers/__init__.py b/install_helpers/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/install_helpers/__init__.py
diff --git a/install_helpers/install_NFD.py b/install_helpers/install_NFD.py
new file mode 100644
index 0000000..171b2e6
--- /dev/null
+++ b/install_helpers/install_NFD.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python2
+import os
+
+# Install NFD
+def run():
+ print "\nINSTALLING NFD"
+ print "**************"
+ os.system("git clone https://github.com/named-data/NFD --depth 1")
+ os.chdir("NFD")
+ os.system("./waf distclean")
+ os.system("./waf configure")
+ os.system("./waf -j1")
+ os.system("sudo ./waf install")
+ os.system("sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf")
+ os.system("sudo mkdir /usr/local/etc/ndn/keys/")
+ os.system("ndnsec-cert-dump -i `ndnsec-get-default` > ~/default.ndncert")
+ os.system("sudo mv ~/default.ndncert /usr/local/etc/ndn/keys")
+ os.chdir("..")
diff --git a/install_helpers/install_dependencies.py b/install_helpers/install_dependencies.py
new file mode 100644
index 0000000..ab27a96
--- /dev/null
+++ b/install_helpers/install_dependencies.py
@@ -0,0 +1,9 @@
+#!/usr/bin/python2
+import os
+
+# Install Dependencies & Necessary Tools
+def run():
+ print "\nINSTALLING DEPENDENCIES"
+ print "***********************"
+ os.system("sudo apt-get -qq update")
+ os.system("sudo apt-get -qq install libboost1.48-all-dev libcrypto++-dev pkg-config libsqlite3-dev")
diff --git a/install_helpers/install_ndncppdev.py b/install_helpers/install_ndncppdev.py
new file mode 100644
index 0000000..8dc09b7
--- /dev/null
+++ b/install_helpers/install_ndncppdev.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python2
+import os
+
+# Install ndn-cpp-dev
+def run():
+ print "\nINSTALLING ndn-cpp-dev"
+ print "**********************"
+ os.system("git clone https://github.com/named-data/ndn-cpp-dev --depth 1")
+ os.chdir("ndn-cpp-dev")
+ os.system("./waf distclean")
+ os.system("./waf configure")
+ os.system("./waf -j1")
+ os.system("sudo ./waf install")
+ os.chdir("..")
diff --git a/install_helpers/install_ndntlvping.py b/install_helpers/install_ndntlvping.py
new file mode 100644
index 0000000..c27f254
--- /dev/null
+++ b/install_helpers/install_ndntlvping.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python2
+import os
+
+# Install ndn-tlv-ping
+def run():
+ print "\nINSTALLING ndn-tlv-ping"
+ print "***********************"
+ os.system("git clone https://github.com/named-data/ndn-tlv-ping --depth 1")
+ os.chdir("ndn-tlv-ping")
+ os.system("./waf distclean")
+ os.system("./waf configure")
+ os.system("./waf -j1")
+ os.system("sudo ./waf install")
+ os.chdir("..")
diff --git a/install_helpers/install_ndntraffic.py b/install_helpers/install_ndntraffic.py
new file mode 100644
index 0000000..3203dce
--- /dev/null
+++ b/install_helpers/install_ndntraffic.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python2
+import os
+
+# Install ndn-traffic-generator
+def run():
+ print "\nINSTALLING ndn-traffic-generator"
+ print "********************************"
+ os.system("git clone https://github.com/named-data/ndn-traffic-generator --depth 1")
+ os.chdir("ndn-traffic-generator")
+ os.system("./waf distclean")
+ os.system("./waf configure")
+ os.system("./waf -j1")
+ os.system("sudo ./waf install")
+ os.chdir("..")
diff --git a/install_helpers/setup_preparation_folder.py b/install_helpers/setup_preparation_folder.py
new file mode 100644
index 0000000..777fb73
--- /dev/null
+++ b/install_helpers/setup_preparation_folder.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python2
+import os
+from os.path import expanduser
+
+# Setup Preparation Folder
+def run():
+ print "\nSETTING UP PREPARATION FOLDER"
+ print "******************************"
+ home = expanduser("~")
+ os.chdir(home)
+ os.system("rm -rf nfd_prepare")
+ os.mkdir("nfd_prepare")
+ os.chdir("nfd_prepare")
+
diff --git a/install_helpers/setup_security.py b/install_helpers/setup_security.py
new file mode 100644
index 0000000..4d550cd
--- /dev/null
+++ b/install_helpers/setup_security.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python2
+import os
+
+# Configure Security Environment Using ndnsec
+def run():
+ print "\nCONFIGURING SECURITY ENVIRONMENT WITH ndnsec"
+ print "********************************************"
+ os.system("ndnsec-keygen -n '/tmp/nfd_integration_tests/' | ndnsec-install-cert -")