File: test_resource.sh

package info (click to toggle)
libhmsbeagle 3.1.2%2Bdfsg-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,724 kB
  • sloc: xml: 133,356; cpp: 24,230; ansic: 5,842; java: 2,050; python: 570; makefile: 353; sh: 268
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