X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Fresources%2Flinux%2Fns3%2Fns3dceapplication.py;h=3f9443a4bb5c99445a1faa1998052882389cdb2a;hb=999ef8574031b2e3facce8607b6e91f42af6dc66;hp=e3ef9ecd08a8eefbbfcb87060f2c8cb7283380a0;hpb=0a796df7191ef93f55f42d378315d97721aa5cb2;p=nepi.git diff --git a/test/resources/linux/ns3/ns3dceapplication.py b/test/resources/linux/ns3/ns3dceapplication.py index e3ef9ecd..3f9443a4 100755 --- a/test/resources/linux/ns3/ns3dceapplication.py +++ b/test/resources/linux/ns3/ns3dceapplication.py @@ -252,10 +252,17 @@ class LinuxNS3DceApplicationTest(unittest.TestCase): ### create applications ccnd1 = ec.register_resource("ns3::LinuxCCNDceApplication") - # NOTE THAT INSTALLATION MIGHT FAIL IF openjdk-6-jdk is not installed - ec.set(ccnd1, "depends", "libpcap0.8-dev openjdk-6-jdk ant1.8 autoconf " - "libssl-dev libexpat-dev libpcap-dev libecryptfs0 libxml2-utils auto" - "make gawk gcc g++ git-core pkg-config libpcre3-dev openjdk-6-jre-lib") + if host == self.fedora_host: + depends = ( " autoconf openssl-devel expat-devel libpcap-devel " + " ecryptfs-utils-devel libxml2-devel automake gawk " + " gcc gcc-c++ git pcre-devel make ") + else: # UBUNTU + # NOTE THAT INSTALLATION MIGHT FAIL IF openjdk-6-jdk is not installed + depends = ( "libpcap0.8-dev openjdk-6-jdk ant1.8 autoconf " + "libssl-dev libexpat-dev libpcap-dev libecryptfs0 libxml2-utils auto" + "make gawk gcc g++ git-core pkg-config libpcre3-dev openjdk-6-jre-lib") + + ec.set (ccnd1, "depends", depends) ec.set (ccnd1, "sources", "http://www.ccnx.org/releases/ccnx-0.7.2.tar.gz") ec.set (ccnd1, "build", "tar zxf ${SRC}/ccnx-0.7.2.tar.gz && " "cd ccnx-0.7.2 && " @@ -345,7 +352,7 @@ class LinuxNS3DceApplicationTest(unittest.TestCase): ec.shutdown() def test_dce_ping_fedora(self): - self.t_dce_ping(self.fedora_host, self.fedora_user, self.fedora_identity) + self.t_dce_ping(self.fedora_host, self.fedora_user, self.fedora_identity) def test_dce_ping_ubuntu(self): self.t_dce_ping(self.ubuntu_host, self.ubuntu_user, self.ubuntu_identity)