Skip to content

Commit 1989eff

Browse files
authored
Merge pull request #1135 from kernelkit/test-fixes
Test fixes Signed-off-by: Joachim Wiberg <[email protected]>
2 parents 3fcb6a3 + 142e4e9 commit 1989eff

File tree

280 files changed

+2282
-2291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+2282
-2291
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env:
3939
jobs:
4040
test:
4141
name: Regression Test ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.name || inputs.name }} ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target || inputs.target }}
42-
runs-on: [ self-hosted, regression ]
42+
runs-on: [self-hosted, regression]
4343
steps:
4444
- name: Checkout infix repo
4545
uses: actions/checkout@v4
@@ -87,7 +87,7 @@ jobs:
8787
fi
8888
make test
8989
90-
- name: Publish Test Result for ${{ env.TARGET }}
90+
- name: Publish Test Result for ${{ env.TARGET }}
9191
# Ensure this runs even if Regression Test fails
9292
if: always()
9393
run: cat $TEST_PATH/.log/last/result-gh.md >> $GITHUB_STEP_SUMMARY
@@ -96,15 +96,10 @@ jobs:
9696
# Ensure this runs even if Regression Test fails
9797
if: always()
9898
run: |
99-
asciidoctor-pdf \
100-
--theme $TEST_PATH/9pm/report/theme.yml \
101-
-a pdf-fontsdir=$TEST_PATH/9pm/report/fonts \
102-
$TEST_PATH/.log/last/report.adoc \
103-
-o $TEST_PATH/.log/last/report.pdf
99+
make test-dir="$(pwd)/$TEST_PATH" test-report
104100
105101
- name: Upload Test Report as Artifact
106102
uses: actions/upload-artifact@v4
107103
with:
108104
name: test-report
109-
path: ${{ env.TEST_PATH }}/.log/last/report.pdf
110-
105+
path: output/images/test-report.pdf

board/common/mkdisk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ genboot()
8383
{
8484
if [ -d "$bootdata" ]; then
8585
bootimg=$(cat <<EOF
86-
image efi-part.vfat {
86+
image $BINARIES_DIR/efi-part.vfat {
8787
size = $bootsize
8888
vfat {
8989
file EFI {
@@ -98,7 +98,7 @@ EOF
9898
offset = $bootoffs
9999
partition-type-uuid = U
100100
bootable = true
101-
image = efi-part.vfat
101+
image = $BINARIES_DIR/efi-part.vfat
102102
}
103103
EOF
104104
)

test/case/all.yaml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,37 @@
1414
infamy:
1515
specification: False
1616

17-
1817
- name: Misc tests
19-
suite: misc/misc.yaml
20-
21-
- name: ietf-system
22-
suite: ietf_system/ietf_system.yaml
18+
suite: misc/all.yaml
2319

2420
# Upgrade may leave wrong boot order
2521
- case: meta/bootorder.py
2622
infamy:
2723
specification: False
2824

29-
- name: ietf-syslog
30-
suite: ietf_syslog/ietf_syslog.yaml
25+
- name: "IETF System"
26+
suite: ietf_system/all.yaml
27+
28+
- name: "IETF Syslog"
29+
suite: ietf_syslog/all.yaml
3130

32-
- name: ietf-interfaces
33-
suite: ietf_interfaces/ietf_interfaces.yaml
31+
- name: "IETF Interfaces"
32+
suite: ietf_interfaces/all.yaml
3433

35-
- name: ietf-routing
36-
suite: ietf_routing/ietf_routing.yaml
34+
- name: "IETF Routing"
35+
suite: ietf_routing/all.yaml
3736

38-
- name: infix-containers
39-
suite: infix_containers/infix_containers.yaml
37+
- name: "Infix Containers"
38+
suite: infix_containers/all.yaml
4039

41-
- name: infix-dhcp
42-
suite: infix_dhcp/infix_dhcp.yaml
40+
- name: "Infix DHCP"
41+
suite: infix_dhcp/all.yaml
4342

44-
- name: ietf-hardware
45-
suite: ietf_hardware/ietf_hardware.yaml
43+
- name: "IETF Hardware"
44+
suite: ietf_hardware/all.yaml
4645

47-
- name: infix-services
48-
suite: infix_services/infix_services.yaml
46+
- name: "Infix Services"
47+
suite: infix_services/all.yaml
4948

50-
- name: use-cases
51-
suite: use_case/use_case.yml
49+
- name: "Use Case Tests"
50+
suite: use_case/all.yaml

test/case/ietf_hardware/Readme.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
:testgroup:
22
== ietf-hardware
33

4-
<<<
4+
Tests verifying IETF standard hardware monitoring and management:
5+
6+
- USB device detection and enumeration
7+
- Multiple USB port management and device handling
58

69
include::usb/Readme.adoc[]
710

test/case/ietf_hardware/all.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
- name: USB configuration
3+
case: usb/test.py
4+
5+
- name: USB configuration with two USB ports
6+
case: usb_two_ports/test.py

test/case/ietf_hardware/ietf_hardware.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
usb.adoc
1+
test.adoc
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
=== USB configuration
2+
3+
ifdef::topdoc[:imagesdir: {topdoc}../../test/case/ietf_hardware/usb]
4+
25
==== Description
6+
37
This test checks if the configuration is consistent with hardware state,
48
and verifies whether the USB ports are correctly _locked_ (restricted from
59
use) and _unlocked_ (available for use) when they should. It also verifies
@@ -11,18 +15,11 @@ If this pass you can be certain that the configuration of the USB
1115
port is handled correctly.
1216

1317
==== Topology
14-
ifdef::topdoc[]
15-
image::{topdoc}../../test/case/ietf_hardware/usb/topology.svg[USB configuration topology]
16-
endif::topdoc[]
17-
ifndef::topdoc[]
18-
ifdef::testgroup[]
19-
image::usb/topology.svg[USB configuration topology]
20-
endif::testgroup[]
21-
ifndef::testgroup[]
22-
image::topology.svg[USB configuration topology]
23-
endif::testgroup[]
24-
endif::topdoc[]
25-
==== Test sequence
18+
19+
image::topology.svg[USB configuration topology, align=center, scaledwidth=75%]
20+
21+
==== Sequence
22+
2623
. Set up topology and attach to target DUT
2724
. Unlock all USB ports
2825
. Verify that all USB ports are unlocked
@@ -36,5 +33,3 @@ endif::topdoc[]
3633
. Verify USB port remain unlocked after reboot
3734

3835

39-
<<<
40-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
usb_two_ports.adoc
1+
test.adoc

0 commit comments

Comments
 (0)