diff options
Diffstat (limited to 'meta-oe/recipes-support/libssh/libssh/run-ptest')
-rw-r--r-- | meta-oe/recipes-support/libssh/libssh/run-ptest | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libssh/libssh/run-ptest b/meta-oe/recipes-support/libssh/libssh/run-ptest new file mode 100644 index 000000000..159994e9b --- /dev/null +++ b/meta-oe/recipes-support/libssh/libssh/run-ptest | |||
@@ -0,0 +1,53 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Valid tests to run | ||
4 | tests="torture_bind_config \ | ||
5 | torture_buffer \ | ||
6 | torture_bytearray \ | ||
7 | torture_callbacks \ | ||
8 | torture_channel \ | ||
9 | torture_config \ | ||
10 | torture_crypto \ | ||
11 | torture_hashes \ | ||
12 | torture_init \ | ||
13 | torture_isipaddr \ | ||
14 | torture_keyfiles \ | ||
15 | torture_knownhosts_parsing \ | ||
16 | torture_list \ | ||
17 | torture_misc \ | ||
18 | torture_moduli \ | ||
19 | torture_options \ | ||
20 | torture_packet \ | ||
21 | torture_packet_filter \ | ||
22 | torture_pki \ | ||
23 | torture_pki_ecdsa \ | ||
24 | torture_pki_ed25519 \ | ||
25 | torture_pki_rsa \ | ||
26 | torture_push_pop_dir \ | ||
27 | torture_rand \ | ||
28 | torture_session_keys \ | ||
29 | torture_temp_dir \ | ||
30 | torture_temp_file \ | ||
31 | torture_threads_buffer \ | ||
32 | torture_threads_crypto \ | ||
33 | torture_threads_init \ | ||
34 | torture_threads_pki_rsa \ | ||
35 | torture_tokens \ | ||
36 | " | ||
37 | |||
38 | ptestdir=$(dirname "$(readlink -f "$0")") | ||
39 | cd "$ptestdir"/tests || exit | ||
40 | |||
41 | # Run specified tests | ||
42 | for f in $tests | ||
43 | do | ||
44 | if test -e ./"$f"; then | ||
45 | if ./"$f" > ./"$f".out 2> ./"$f".err; then | ||
46 | echo "PASS: $f" | ||
47 | else | ||
48 | echo "FAIL: $f" | ||
49 | fi | ||
50 | else | ||
51 | echo "SKIP: $f" | ||
52 | fi | ||
53 | done | ||