Tests
Suites
Latest Results
Search
Register
Login
Popular Tests
Timed Linux Kernel Compilation
SVT-AV1
7-Zip Compression
Stockfish
FFmpeg
Blender
Newest Tests
Rustls
LiteRT
WarpX
Epoch
Valkey
Whisperfile
Recently Updated Tests
Renaissance
Blender
vkpeak
ProjectPhysX OpenCL-Benchmark
FluidX3D
Primesieve
New & Recently Updated Tests
Recently Updated Suites
Database Test Suite
Machine Learning
Steam
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.2
pts/serial-loopback-1.0.2
- 09 October 2015 -
Fix exit check, ensure bash is used for the script
install.sh
#!/bin/sh cat > ~/serial-loopback << EOT #!/bin/bash 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 2 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.2</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>