diff options
author | 2019-05-28 10:19:21 +0200 | |
---|---|---|
committer | 2019-06-03 10:01:26 +0200 | |
commit | adf44f2a5eeb056c5fece0454d3e09d08df160fe (patch) | |
tree | aee220cedfccc15f59bccfae1ca7ec6b4a904809 /scripts | |
parent | 6dfe3074e92b3188c9fa72303f4135442cc0d5dd (diff) |
[TEST] - Initialize to use of YDK in sweetcomb test
- remove netopeer client
- use YDK
- check result, assert when error
Change-Id: Icb29dd5a35e8f7dbbeff2e44ec088b890f93b5ef
Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Test.Dockerfile | 20 | ||||
-rwxr-xr-x | scripts/run_test.sh | 2 |
2 files changed, 19 insertions, 3 deletions
diff --git a/scripts/Test.Dockerfile b/scripts/Test.Dockerfile index df2e0b2..025fa9d 100644 --- a/scripts/Test.Dockerfile +++ b/scripts/Test.Dockerfile @@ -2,5 +2,21 @@ FROM sweetcomb_img:latest #Install utils for testing RUN apt-get update; \ - apt-get install -y vim clang-format python3-pip; \ - pip3 install pexpect pyroute2 psutil;
\ No newline at end of file + apt-get install -y vim clang-format python3-pip python-pip; \ + apt-get install -y gdebi-core python3-dev python-dev libtool-bin; \ + apt-get install -y libcurl4-openssl-dev libpcre3-dev libssh-dev libxml2-dev libxslt1-dev cmake python-git; \ + pip3 install pexpect pyroute2 psutil; + +WORKDIR /root/src + +RUN git clone https://github.com/CiscoDevNet/ydk-gen.git + +WORKDIR /root/src/ydk-gen + +RUN pip install -r requirements.txt && \ + ./generate.py --libydk -i && ./generate.py --python --core && \ + pip3 install gen-api/python/ydk/dist/ydk*.tar.gz && \ + ./generate.py --python --bundle profiles/bundles/ietf_0_1_5.json && \ + ./generate.py --python --bundle profiles/bundles/openconfig_0_1_5.json && \ + pip3 install gen-api/python/ietf-bundle/dist/ydk*.tar.gz && \ + pip3 install gen-api/python/openconfig-bundle/dist/ydk*.tar.gz diff --git a/scripts/run_test.sh b/scripts/run_test.sh index 5586c7e..282ecb9 100755 --- a/scripts/run_test.sh +++ b/scripts/run_test.sh @@ -51,4 +51,4 @@ if [ "$?" == 0 ]; then mkdir /var/log/vpp" fi -docker exec -it ${CONTAINER} bash -c "/root/src/sweetcomb/test/run_test.py"
\ No newline at end of file +docker exec -it ${CONTAINER} bash -c "cd /root/src/sweetcomb && make test-plugins" |