Switch branches/tags
Find file History
Pull request Compare This branch is 1 commit ahead, 829 commits behind ocaml:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
packages
results
Makefile
README.unittest
init-repo.sh
test-TEST.sh
tests.py

README.unittest

# to create a new unit test

* clean the test repository : 

      ./init-repo.sh -c

* init the test repository : 

      ./init-repo.sh -i

* load a inital scenario (this command can be invoked multiple times): 

      ./init-repo.sh -s 1
      ./init-repo.sh -s 2

* install/remove/upgrade : 

    OPAM_ROOT=/tmp/OPAM.ROOT PATH=/tmp/OPAM.BIN:$PATH opam --yes --root /tmp/OPAM.ROOT install P4

* crearte a new expected result file in as

      OPAM_ROOT=/tmp/OPAM.ROOT PATH=/tmp/OPAM.BIN:$PATH \
      opam --yes --root /tmp/OPAM.ROOT list > results/new-expected-result

* Make sure that the result correct !

* Add a new test case in the file tests.py