rename make target 'unittest' to 'test', install fakeroot, store reports in tool specific filenames

Change-Id: Iec752bf1b50749172ebd34ab8f06a2d0b8b96e19
mprokop/tests
Michael Prokop 10 years ago
parent 72222d488c
commit 00dd98f580

@ -60,12 +60,12 @@ perlcheck:
done; \
echo "-> perl check done."; \
unittest:
test:
mkdir -p $(RESULTS)
nosetests --xunit-file=$(RESULTS)/ngcpcfg.xml --with-xunit t/tests.py
# note: can't control output filename :(
nosetests --xunit-file=$(RESULTS)/nose1.xml --with-xunit t/tests.py
nose2-3 --plugin nose2.plugins.junitxml --junit-xml -s t/
py.test-3 --junit-xml=$(RESULTS)/ngcpcfg.xml t/tests.py
# can't control output filename :(
mv nose2-junit.xml $(RESULTS)/nose2.xml
py.test-3 --junit-xml=$(RESULTS)/pytest.xml t/tests.py
# EOF

@ -19,7 +19,7 @@ deb https://deb.sipwise.com/autobuild/ release-trunk-jessie main\n" > /etc/apt/s
RUN wget -O /etc/apt/trusted.gpg.d/sipwise.gpg https://deb.sipwise.com/spce/sipwise.gpg
RUN apt-get update
RUN apt-get install --assume-yes python-nose git make python3-nose2 python3-junitxml python3-pytest
RUN apt-get install --assume-yes python-nose git make fakeroot python3-nose2 python3-junitxml python3-pytest
RUN echo './t/testrunner' >>/root/.bash_history

@ -16,4 +16,4 @@ else
mkdir -p "${RESULTS}"
fi
RESULTS=${RESULTS} make unittest
RESULTS=${RESULTS} make test

Loading…
Cancel
Save