Basic test runner script
This commit is contained in:
@@ -11,3 +11,12 @@ start with
|
||||
python tests/iperf-analysis.py -v
|
||||
|
||||
It will indicate if all tests passed.
|
||||
|
||||
# test-runner test
|
||||
|
||||
This is not a true test, because the results need to be manually inspected. To
|
||||
run this "test", run
|
||||
|
||||
./run.sh
|
||||
|
||||
inside the `test-runner/` directory (important!).
|
||||
|
||||
Executable
+49
@@ -0,0 +1,49 @@
|
||||
#/bin/bash
|
||||
|
||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
commit=$(git rev-parse HEAD)
|
||||
file=../../test_results.html
|
||||
rm -f ${file}
|
||||
|
||||
cd ../../
|
||||
python3 main.py \
|
||||
--mode=InitiateHtml \
|
||||
--ranRepository=https://gitlab.eurecom.fr/oai/openairinterface5g.git \
|
||||
--ranBranch=${branch} \
|
||||
--ranCommitID=${commit} \
|
||||
--ranAllowMerge=true \
|
||||
--ranTargetBranch=develop \
|
||||
--XMLTestFile=tests/test-runner/test.xml
|
||||
|
||||
python3 main.py \
|
||||
--mode=TesteNB \
|
||||
--ranRepository=https://gitlab.eurecom.fr/oai/openairinterface5g.git \
|
||||
--ranBranch=${branch} \
|
||||
--ranCommitID=${commit} \
|
||||
--ranAllowMerge=true \
|
||||
--ranTargetBranch=develop \
|
||||
--eNBIPAddress=localhost \
|
||||
--eNBUserName=NONE \
|
||||
--eNBPassword=NONE \
|
||||
--eNBSourceCodePath=NONE \
|
||||
--UEIPAddress=localhost \
|
||||
--UEUserName=NONE \
|
||||
--UEPassword=NONE \
|
||||
--UESourceCodePath=NONE \
|
||||
--EPCIPAddress=localhost \
|
||||
--EPCType=OAI \
|
||||
--EPCUserName=NONE \
|
||||
--EPCPassword=NONE \
|
||||
--EPCSourceCodePath=NONE \
|
||||
--XMLTestFile=tests/test-runner/test.xml
|
||||
|
||||
python3 main.py \
|
||||
--mode=FinalizeHtml \
|
||||
--finalStatus=true
|
||||
cd -
|
||||
|
||||
if [ -f ${file} ]; then
|
||||
echo "results are in ${file}"
|
||||
else
|
||||
echo "ERROR: no results file created"
|
||||
fi
|
||||
@@ -0,0 +1,41 @@
|
||||
<!--
|
||||
|
||||
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The OpenAirInterface Software Alliance licenses this file to You under
|
||||
the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||
except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.openairinterface.org/?page_id=698
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||
contact@openairinterface.org
|
||||
|
||||
-->
|
||||
|
||||
<testCaseList>
|
||||
<htmlTabRef>test</htmlTabRef>
|
||||
<htmlTabName>Manual testing</htmlTabName>
|
||||
<htmlTabIcon>wrench</htmlTabIcon>
|
||||
<repeatCount>1</repeatCount>
|
||||
<TestCaseRequestedList>
|
||||
000001
|
||||
</TestCaseRequestedList>
|
||||
<TestCaseExclusionList></TestCaseExclusionList>
|
||||
|
||||
<testCase id="000001">
|
||||
<class>Custom_Command</class>
|
||||
<desc>This should succeed</desc>
|
||||
<node>localhost</node>
|
||||
<command>true</command>
|
||||
<command_fail>yes</command_fail>
|
||||
</testCase>
|
||||
</testCaseList>
|
||||
Reference in New Issue
Block a user