Skip to content
Snippets Groups Projects
Commit db3c4bc9 authored by Nithin Mysore Nagesh's avatar Nithin Mysore Nagesh Committed by Walter Lozano
Browse files

Replace wget with git clone in manual test cases

parent dfb54283
No related branches found
No related tags found
1 merge request!620Backport v2024 <- v2025dev2: Several fixes
......@@ -9,19 +9,19 @@
{% endmacro %}
{% macro ostree_preconditions(preconditions) %}
<li class="mb-sm-2">Clone the tests repository from another computer <i>(Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question)</i>:</li>
{% for precondition in preconditions %}
<li class="mb-sm-2">From a PC, download and unpack the test data tarball from the gitlab test repository:</li>
<pre><code>$ wget https://gitlab.apertis.org/tests/{{ precondition.reponame }}/-/archive/{{ precondition.branch }}/{{ precondition.reponame }}.tar.gz</code></pre>
<pre><code>$ tar -xvf {{ precondition.reponame }}.tar.gz</code></pre>
<li class="mb-sm-2">Copy the {{ precondition.reponame }}-* folder to the target device:</li>
<pre><code>$ git clone --depth 1 --branch {{ precondition.branch }} https://gitlab.apertis.org/tests/{{ precondition.reponame }}</code></pre>
{% endfor %}
<li class="mb-sm-2">Copy the test directory to the target device:</li>
<pre><code>$ DUT_IP=&ltdevice-ip&gt</code></pre>
<pre><code>$ scp -r {{ precondition.reponame }}-* user@$DUT_IP:</code></pre>
<pre><code>$ scp -r{% for precondition in preconditions %} {{ precondition.reponame }} {% endfor %}user@$DUT_IP:</code></pre>
<li class="mb-sm-2">Log into the target device:</li>
<pre><code>$ ssh user@$DUT_IP</code></pre>
<li class="mb-sm-2">After log into the DUT, enter the test directory</li>
<pre><code>$ cd {{ precondition.reponame }}-*</code></pre>
<li class="mb-sm-2">Note that the tarball may change depending on the release/branch being tested, please make sure to download the correct tarball for the release in question.</li>
{% endfor %}
<li class="mb-sm-2">After log into the DUT, enter the test directory, and run respective commands mentioned in the execution steps</li>
{% if preconditions|length == 1 %}
<pre><code>$ cd {{ preconditions[0].reponame }}</code></pre>
{% endif %}
{% endmacro %}
{% macro install_packages(packages_list) %}
......
......@@ -60,10 +60,10 @@ run:
- "Run btmon before any connection happens:"
- "$ sudo btmon | grep -A4 'AV/C: Control'"
- "Execute the test suite in another terminal:"
- $ cd $HOME/bluez-phone* ; ./bluez-avrcp-volume.sh
- $ cd $HOME/bluez-phone ; ./bluez-avrcp-volume.sh
- "After verifying that the bluez-avrcp-volume test is passing, open a new terminal
and run the following. Do not yet answer to the question."
- $ cd $HOME/apparmor-bluez-setup-*; ./aa_get_complaints.sh
- $ cd $HOME/apparmor-bluez-setup ; ./aa_get_complaints.sh
- "Now, run the bluez-avrcp-volume test case again in the previous terminal."
- $ cd $HOME/bluez-phone ; ./bluez-avrcp-volume.sh
- "After the bluez-avrcp-volume test ended, answer y to check for complaints."
......@@ -82,10 +82,10 @@ run:
steps:
- "First ensure that the bluez-setup test case is passing before executing the
apparmor-bluez-setup test one (otherwise false-negative might occur):"
- $ cd $HOME/bluez-setup-* ; ./check-setup.sh
- $ cd $HOME/bluez-setup ; ./check-setup.sh
- "After verifying that the bluez-setup test is passing, open a new terminal
and run the following. Do not yet answer to the question."
- $ cd $HOME/apparmor-bluez-setup-* ; ./aa_get_complaints.sh
- $ cd $HOME/apparmor-bluez-setup ; ./aa_get_complaints.sh
- "Now, run the bluez-setup test case again in the previous terminal."
- $ cd $HOME/bluez-setup-* ; ./check-setup.sh
- $ cd $HOME/bluez-setup ; ./check-setup.sh
- "After the bluez-setup test ended, answer y to check for complaints."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment