Task #1220
closedInitial integrated test
100%
Description
Create skeleton for integrated tests.
- Create a code repository for integrated tests, with directory for each scenario. test
- Write a scenario integrated test for NFD using ndn-tlv-ping on a single host. This should include scripts to set up the environment, run the test, cleanup the environment. This scenario can assume that dependencies, ndn-cpp-dev, and NFD are already installed.
- Writing a script in top level directory to execute all (or selected) tests from the repository.
Updated by Junxiao Shi over 10 years ago
- Description updated (diff)
- Category set to Build
Updated by Yi Huang over 10 years ago
- Assignee changed from Jerald Paul Abraham to Yi Huang
Updated by Yi Huang over 10 years ago
I have documented the steps to test using traffic generator, ndn-cpp-dev, and ndnd-tlv on one machine. Moving to more complex system (two or more machines, or more apps).
Updated by Yi Huang over 10 years ago
ndn-traffic-generator is tested to run correctly on two VMs connected by ethernet. Jerald is implementing verification feature on client side to allow the application to verify correctness of the content.
Updated by Yi Huang over 10 years ago
Currently I have two VMs connected by Ethernet. The integrating test script runs NFD on both VMs and then run ndn-traffic-generator to test connectivity. One test takes one minute. After the test, the script will present the report about percentage data and interest loss, data correctness, etc.
Updated by Yi Huang over 10 years ago
Doing experiment on test bed on copying code coverage report from slave to master node for display.
Updated by Yi Huang over 10 years ago
Looks like the cobertura plugin does not fully support multi-configuration jobs (not shown as fancy as for free-style jobs). I tried to copy the coverage.xml file from slave to master using "copy to slave" plugin but it does not work. The steps to view the code coverage report for multi-configuration jobs are:
Click on the build link that jenkins posted on gerrit so you can go to the jenkins page for the build.
Click on the slave that does code coverage check for that build (Under "configuration").
Click on "Cobertura Coverage Report" to view the detailed report.
Updated by Junxiao Shi over 10 years ago
This is undesirable but acceptable.
Please deploy the feature on main Jenkins, and update CodeCoverage on how to access the reports.
Updated by Junxiao Shi over 10 years ago
- Subject changed from Integrated tests for NFD (initial setup) to Initial integrated test
- Description updated (diff)
- Category changed from Build to Integration Tests
This task can close upon finishing the first scenario. Other scenarios should have separate tasks.
Updated by Yi Huang over 10 years ago
The integrating test consists of the following parts:
NRD
Run application with environment variable NFD=1 and NRD=1. The FIB should be updated. Since currently there is no way to look into FIB, try to use the application and see if it works. If the application does not work, there must be something wrong. If it does work, there might be something wrong. This part will become easier when the status server works.TCP and UDP Faces
I think this is the task #1362 created by JunxiaoLocal face
Similar to part 2, but with only one node and TCP face only.Multicast
A, B, and C are connect to the same Ethernet (Junxiao said A, B, and C are connect to one L2 hub if all three nodes are VMs in virtualbox). Use multicast on A and observe the application output on B and C./localhop and /localhost
There should be three nodes A, B, and C and two links A-B, B-C. For /localhost, only application running on A but not B and C can see the interest. For /localhop, only applications running on A and B but not C can see the interest.
Updated by Junxiao Shi over 10 years ago
Each scenario should have its own Task similar to #1362, so that progress can be tracked.
Updated by Junxiao Shi over 10 years ago
Again, this task only refers to ONE TEST SCENARIO. It should be closed when this specific scenario is working.
Updated by Junxiao Shi over 10 years ago
- Description updated (diff)
I'm reverting Task Description to the version entered with note-10.
"Integrated test overview" is moved to IntegratedTests page.
Updated by Yi Huang over 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
The integ-test repository is up. I think this task should be resolved.
Updated by Junxiao Shi over 10 years ago
I'm unable to clone NFD/integration-tests repository.
shijunxiao@m0213:~$ git clone ssh://sunny@gerrit.named-data.net:29418/NFD/integration-tests
Cloning into 'integration-tests'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
Please investigate.
Updated by Alex Afanasyev over 10 years ago
This is something to do with gerrit. It needs initial commit approved for the command to succeed. Right now master branch doesn't exist, so there is nothing to clone (actually, to checkout).
With the following you can fetch Jerald's commit:
git clone ssh://sunny@gerrit.named-data.net:29418/NFD/integration-tests -n
cd integration-tests
git fetch ssh://sunny@gerrit.named-data.net:29418/NFD/integration-tests refs/changes/87/587/5 && git checkout FETCH_HEAD -b some-branch
Updated by Junxiao Shi over 10 years ago
- Status changed from Resolved to Closed
- Assignee changed from Yi Huang to Jerald Paul Abraham
Ib54bd606f6854672ed890d3971ff5827197435e8