]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
tcl_tests: Allow running tests separately
authorVitaly Chikunov <vt@altlinux.org>
Mon, 11 Nov 2019 00:28:36 +0000 (03:28 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Jan 2020 21:20:37 +0000 (00:20 +0300)
For debug purposes.

Example:
  sh ./runtest.sh dgst pkcs8

tcl_tests/runtest.sh

index c3fc81200c976a6be9f4581e2a00d70ef6c24bdf..0589f78d29818998103602cda96db3c7a69202a0 100644 (file)
@@ -105,6 +105,12 @@ OPENSSL_DEBUG_MEMORY=on
 export OPENSSL_DEBUG_MEMORY
 
 fail=0
+if [ "$*" ]; then
+  for t do
+    $TCLSH $t.try || fail=1
+  done
+  exit $fail
+fi
 for t in $BASE_TESTS; do
        $TCLSH $t.try || fail=1
 done