Tests
Suites
Latest Results
Search
Register
Login
Popular Tests
Timed Linux Kernel Compilation
Blender
7-Zip Compression
SVT-AV1
FFmpeg
Hashcat
Newest Tests
OpenVINO GenAI
Rustls
LiteRT
WarpX
Epoch
Valkey
Recently Updated Tests
srsRAN Project
VVenC
x265
RELION
Llamafile
Llama.cpp
New & Recently Updated Tests
Recently Updated Suites
Machine Learning
Server Motherboard
HPC - High Performance Computing
New & Recently Updated Suites
Component Benchmarks
CPUs / Processors
GPUs / Graphics
OpenGL
Disks / Storage
Motherboards
File-Systems
Operating Systems
OpenBenchmarking.org
Corporate / Organization Info
Bug Reports / Feature Requests
Serial Loopback Test 1.0.1
pts/serial-loopback-1.0.1
- 09 October 2015 -
Add RequiresRoot, try to better catch errors.
install.sh
#!/bin/sh cat > ~/serial-loopback << EOT #!/bin/sh TEST_CONTENTS="Phoronix Test Suite 1234567890" dmesg > dmesg-output 2>&1 RESULT_SCALE="" RESULTS="" for ttyf in /dev/tty*S* do ttybase=\$(basename \$ttyf) if grep "\$ttybase" dmesg-output >/dev/null then stty -F \$ttyf -echo -onlcr cat \$ttyf > output-file & CAT_PID=\$! sleep 1 echo \$TEST_CONTENTS > \$ttyf sleep 5 kill \$CAT_PID >/dev/null RESULT_SCALE="\$RESULT_SCALE, \$ttyf" if grep -Fxq "\$TEST_CONTENTS" output-file then RESULTS="\$RESULTS,PASS" else RESULTS="\$RESULTS,FAIL" fi rm output-file >/dev/null 2>&1 fi done rm dmesg-output if [ "X$RESULTS" = "X" ] then exit 1 fi RESULT_SCALE=\${RESULT_SCALE:2} RESULTS=\${RESULTS:1} echo \$RESULT_SCALE > ~/pts-results-scale echo \$RESULT_SCALE > ~/pts-test-description echo \$RESULTS > \$LOG_FILE EOT chmod +x serial-loopback
results-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v6.0.0m3--> <PhoronixTestSuite> <ResultsParser> <OutputTemplate>#_RESULT_#</OutputTemplate> </ResultsParser> </PhoronixTestSuite>
test-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v6.0.0m3--> <PhoronixTestSuite> <TestInformation> <Title>Serial Loopback Test</Title> <Description>This test will do a simple write/read test on all detected serial interfaces. For this test to work, the relevant serial ports should have a serial loopback plug or have otherwise wired the appropriate pins.</Description> <DisplayFormat>PASS_FAIL</DisplayFormat> <TimesToRun>1</TimesToRun> </TestInformation> <TestProfile> <Version>1.0.1</Version> <SupportedPlatforms>Linux</SupportedPlatforms> <SoftwareType>Utility</SoftwareType> <TestType>System</TestType> <License>Free</License> <Status>Verified</Status> <RequiresRoot>TRUE</RequiresRoot> <EnvironmentSize>1</EnvironmentSize> <Maintainer>Michael Larabel</Maintainer> </TestProfile> </PhoronixTestSuite>