File: test_resource.sh

package info (click to toggle)
libhmsbeagle 4.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 46,424 kB
  • sloc: xml: 133,356; cpp: 36,477; ansic: 5,842; java: 2,400; python: 643; sh: 342; makefile: 50
file content (14 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [ -z "${1}" ];
then
    echo "Usage: test_resource.sh resource_number"
    echo
    ../examples/synthetictest/synthetictest --resourcelist
else
    TEST_RESOURCE=${1}
    echo "Testing resource..."
    ../examples/synthetictest/synthetictest --resourcelist | grep "Resource $TEST_RESOURCE" -A 1 | grep -o --color=never ': .*'
    ./run_tests.sh $TEST_RESOURCE 2>&1 | grep "\*\*\*[^:]*:" -B 2
    echo "All tests completed."
fi