summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libssh/libssh/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/libssh/libssh/run-ptest')
-rw-r--r--meta-oe/recipes-support/libssh/libssh/run-ptest42
1 files changed, 3 insertions, 39 deletions
diff --git a/meta-oe/recipes-support/libssh/libssh/run-ptest b/meta-oe/recipes-support/libssh/libssh/run-ptest
index 159994e9b..6346b72d5 100644
--- a/meta-oe/recipes-support/libssh/libssh/run-ptest
+++ b/meta-oe/recipes-support/libssh/libssh/run-ptest
@@ -1,53 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Valid tests to run
4tests="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
38ptestdir=$(dirname "$(readlink -f "$0")") 3ptestdir=$(dirname "$(readlink -f "$0")")
39cd "$ptestdir"/tests || exit 4cd "$ptestdir"/tests || exit
40 5
41# Run specified tests 6tests=$(find * -type f -name 'torture_*')
7
42for f in $tests 8for f in $tests
43do 9do
44 if test -e ./"$f"; then 10 if test -x ./"$f"; then
45 if ./"$f" > ./"$f".out 2> ./"$f".err; then 11 if ./"$f" > ./"$f".out 2> ./"$f".err; then
46 echo "PASS: $f" 12 echo "PASS: $f"
47 else 13 else
48 echo "FAIL: $f" 14 echo "FAIL: $f"
49 fi 15 fi
50 else
51 echo "SKIP: $f"
52 fi 16 fi
53done 17done