jig: add jig information

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2019-05-24 19:10:37 +08:00
parent 372ab22b10
commit 946c7f8ec1
25 changed files with 670 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=/bin/true
Name=Run all tests
Description=Make sure all tests complete successfully
Requires=test-rgbb, test-rgbg, test-rgbr, test-spi, test-touch
Timeout=4

View File

@ -0,0 +1,5 @@
[Scenario]
Name=Program and test Everything
Description=Load the test bitstream, run tests, then load the final bitstream
Tests=all-tests,load-final-bitstream,verify-final-bitstream
Timeout=5

View File

@ -0,0 +1,6 @@
[Jig]
Name=Raspberry Pi Fomu PVT Jig
Description=Fomu factory jig running on a Raspberry Pi, designed to burn and test Fomu PVT
TestFile=/etc
DefaultScenario=complete
DefaultWorkingDirectory=../bin

5
jig/config/file.logger Normal file
View File

@ -0,0 +1,5 @@
[Logger]
Name=File Logger
Description=Write log messages out to a file
ExecStart=/bin/sh -c "cat > /tmp/ltc-log.json"
Format=json

View File

@ -0,0 +1,5 @@
[Interface]
Name=Front panel LEDs
Description=Shows test status on the LEDs
Format=text
ExecStart=./led-interface.sh

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=fomu-flash -w pvt-top-multiboot.bin
Name=Load Final Bitstream
Description=Use fomu-flash to load the final bitstream
Requires=all-tests
Timeout=3

View File

@ -0,0 +1,5 @@
[Test]
ExecStart=fomu-flash -f evt-tester-bitstream.bin
Name=Load Tester Bitstream
Description=Use fomu-flash to load the tester bitstream
Timeout=1

View File

@ -0,0 +1,4 @@
[Trigger]
Name=Start button
Description=A start button on the Raspberry Pi jig, pin 26. Compile with 'gcc gpiopoll.c -o gpiopoll; sudo chown root gpiopoll; sudo chmod u+s gpiopoll'
ExecStart=./gpiopoll 26

View File

@ -0,0 +1,7 @@
[Test]
ExecStart=./uart-monitor /tmp/monitor-log.txt
Name=Run all tests
Description=Run all tests and log the output to a file
Requires=load-tester-bitstream
Required=load-tester-bitstream
Timeout=2

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=grep -c '^RGBB: .*Pass\s*$' /tmp/monitor-log.txt
Name=Verify Blue LED
Description=Look for "RGBB: Pass" in the monitor log
Requires=load-tester-bitstream,run-all-tests
Timeout=1

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=grep -c '^RGBG: .*Pass\s*$' /tmp/monitor-log.txt
Name=Verify Green LED
Description=Look for "RGBG: Pass" in the monitor log
Requires=load-tester-bitstream,run-all-tests
Timeout=1

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=grep -c '^RGBR: .*Pass\s*$' /tmp/monitor-log.txt
Name=Verify Red LED
Description=Look for "RGBR: Pass" in the monitor log
Requires=load-tester-bitstream,run-all-tests
Timeout=1

6
jig/config/test-spi.test Normal file
View File

@ -0,0 +1,6 @@
[Test]
ExecStart=grep -c '^SPI: .*Pass\s*$' /tmp/monitor-log.txt
Name=Verify SPI
Description=Look for "SPI: Pass" in the monitor log
Requires=load-tester-bitstream,run-all-tests
Timeout=1

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=grep -c '^TOUCH: .*Pass\s*$' /tmp/monitor-log.txt
Name=Verify Touch Pads
Description=Look for "TOUCH: Pass" in the monitor log
Requires=load-tester-bitstream,run-all-tests
Timeout=3

View File

@ -0,0 +1,6 @@
[Test]
ExecStart=fomu-flash -v pvt-top-multiboot.bin
Name=Verify Final Bitstream
Description=Use fomu-flash to verify the final bitstream
Requires=load-final-bitstream
Timeout=3