1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| #!/bin/sh
| # Valid tests to run
| tests="utest_binary \
| utest_bits \
| utest_common \
| utest_hash_table \
| utest_inet_types \
| utest_int8 \
| utest_json \
| utest_list \
| utest_merge \
| utest_metadata \
| utest_parser_yang \
| utest_parser_yin \
| utest_pattern \
| utest_printer_yang \
| utest_printer_yin \
| utest_range \
| utest_schema \
| utest_set \
| utest_string \
| utest_tree_data \
| utest_tree_schema_compile \
| utest_types \
| utest_xml \
| utest_xpath \
| utest_yang_types \
| utest_yanglib"
|
| # cd into right directory
| ptestdir=$(dirname "$(readlink -f "$0")")
| cd "$ptestdir"/tests || exit
|
| # Run specified tests
| for f in $tests
| do
| if test -e ./"$f"; then
| if ./"$f" > ./"$f".out 2> ./"$f".err; then
| echo "PASS: $f"
| else
| echo "FAIL: $f"
| fi
| else
| echo "SKIP: $f"
| fi
| done
|
|