Skip to content

Commit 16f833c

Browse files
committed
Let's test in CI
1 parent 6054990 commit 16f833c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- name: Check out repository
1313
uses: actions/checkout@v4
1414
- run: make prepare
15+
- run: cd test_native && make && ./test && cd -
1516
- run: make build DEVICE=${{ matrix.device }}
1617
- name: Upload artifacts
1718
uses: actions/upload-artifact@v4

test_native/test_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,10 @@ int test_layouts(void) {
290290
assert(1 == pad_report.buttons.r4);
291291

292292
ESP_LOGI(TAG, "Stadia controller reports passed");
293-
294293
return 0;
295294
}
296295

297296
int main(void) {
298297
assert(0 == test_layouts());
298+
return 0;
299299
}

test_native/test_reports.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include <stdint.h>
22

33
uint8_t mouse1_reports[8][8] = {
4-
{0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00}, {0x02, 0x00, 0x00, 0xFF, 0x4F, 0x00, 0x00, 0x01},
5-
{0x02, 0x00, 0x00, 0x42, 0x80, 0x02, 0x00, 0xFF}, {0x02, 0x00, 0x00, 0x01, 0x18, 0x80, 0x00, 0x00},
6-
{0x02, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00}, {0x02, 0x00, 0x00, 0x01, 0x10, 0x00, 0x81, 0x7F},
4+
{0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00},
5+
{0x02, 0x00, 0x00, 0xFF, 0x4F, 0x00, 0x00, 0x01},
6+
{0x02, 0x00, 0x00, 0x42, 0x80, 0x02, 0x00, 0xFF},
7+
{0x02, 0x00, 0x00, 0x01, 0x18, 0x80, 0x00, 0x00},
8+
{0x02, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00},
9+
{0x02, 0x00, 0x00, 0x01, 0x10, 0x00, 0x81, 0x7F},
710
{0x02, 0x00, 0x00, 0xFF, 0xF7, 0x7F, 0x7F, 0x81},
811
};
912

0 commit comments

Comments
 (0)