<h3>Contribution description</h3>
<p>This PR adds a script that automatically tests riotboot's image selection.<br>
It expects slot0, APP_VER=0 be pre-flashed on the device (and verifies that). This is what happens when "make flash" is run, and also happens on the CI.</p>
<p>A following "make test" will:</p>
<ol>
<li>verify slot0, APP_VER=0</li>
<li>flash slot1, APP_VER=1, verify it is booting</li>
<li>flash slot0, APP_VER=2, verify it is booting</li>
</ol>
<h3>Testing procedure</h3>
<ol>
<li>look at CI output</li>
<li>try local <code>make -Ctests/riotboot flash test</code></li>
</ol>
<h3>Issues/PRs references</h3>
<p>Needs <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="456182896" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11697" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11697/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11697">#11697</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="455660032" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11690" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11690/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11690">#11690</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/11707'>https://github.com/RIOT-OS/RIOT/pull/11707</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>murdock: allow multiple files to be sent along with a test job</li>
  <li>riotboot: set FLASHFILE to RIOTBOOT_EXTENDED_BIN</li>
  <li>riotboot: update documentation to match automatic use</li>
  <li>riotboot: fix APP_VER default documentation</li>
  <li>tests/riotboot_flashwrite: disable for saml1[01]-xpro</li>
  <li>fixup! riotboot: fix APP_VER default documentation</li>
  <li>DEPENDENCY MERGE: pr/murdock_allow_multiple_files_for_test_job</li>
  <li>DEPENDENCY MERGE: pr/always_flash_riotboot_if_required</li>
  <li>tests/riotboot: add re-flashing and image selection test</li>
  <li>make/riotboot: allow slot image creation without compiling</li>
  <li>fixup! murdock: allow multiple files to be sent along with a test job</li>
  <li>fixup! tests/riotboot: add basic automatic test in python</li>
  <li>riotboot: reference riotboot test documentation</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-0">.murdock</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-1">Makefile.include</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-2">bootloaders/riotboot/README.md</a>
    (28)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-3">makefiles/boot/riotboot.mk</a>
    (23)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-4">makefiles/murdock.inc.mk</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-5">tests/riotboot/Makefile</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-6">tests/riotboot/README.md</a>
    (23)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-7">tests/riotboot/tests/01_test_slot_selection.sh</a>
    (12)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-8">tests/riotboot/tests/common/assert_slotnum.py</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11707/files#diff-9">tests/riotboot_flashwrite/Makefile</a>
    (5)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11707.patch'>https://github.com/RIOT-OS/RIOT/pull/11707.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11707.diff'>https://github.com/RIOT-OS/RIOT/pull/11707.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11707?email_source=notifications&email_token=ABE7WYDUTJPENC5BBHSMQULP26STRA5CNFSM4HYXUBWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZ5EJYA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEL6ARTLR6NPXMJIADP26STRANCNFSM4HYXUBWA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYAADSGZVQXQFQGHENDP26STRA5CNFSM4HYXUBWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZ5EJYA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11707?email_source=notifications\u0026email_token=ABE7WYDUTJPENC5BBHSMQULP26STRA5CNFSM4HYXUBWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZ5EJYA",
"url": "https://github.com/RIOT-OS/RIOT/pull/11707?email_source=notifications\u0026email_token=ABE7WYDUTJPENC5BBHSMQULP26STRA5CNFSM4HYXUBWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZ5EJYA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>