#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require test
}
lappend auto_path [file dirname [info script]]
proc rus {string} {
- return [encoding convertfrom cp1251 [encoding convertto $string]]
+ return $string
}
proc compare_order {el1 el2} {
global order
set statsfile stats
if {$argc} {set statsfile [lindex $argv 0]}
set f [open $statsfile]
-fconfigure $f -encoding cp1251
+fconfigure $f -encoding utf-8
set ordno 0
while {[gets $f line] >=0} {
set script [lindex $line 0]
if {$argc > 1} {
set out [open [lindex $argv 1] w]
- fconfigure $out -encoding cp1251
+ fconfigure $out -encoding utf-8
}
output [format "%-12s %-41s%5s %4s %4s %4s %4s" File "Test name" Total ok fail skip ign]
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
package require test
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
package require test
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh/
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
set plain0 [getFile plain.enc]
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
-# -*- coding: cp1251 -*-
#
# Получает в командной строке URL и (опционально) строку для поиска
# сертификата. Выполняет HTTP-запрос и возрвщает результат
-# -*- coding: cp1251 -*-
package require testlib
start_tests "Работа с аппаратными носителями"
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/bin/sh
-# -*- coding: cp1251 -*-
# Создает подкаталог OtherVersion, копирует в него данные для тестирования
# совместимости с другими версиями.
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
-package ifneeded test 0.2 [list source [file join $dir test.tcl]]
-package ifneeded testlib 0.1 [list source [file join $dir testlib.tcl]]
-package ifneeded fgetopt 0.1 [list source [file join $dir fgetopt.tcl]]
-package ifneeded asn 0.7.1 [list source [file join $dir asn.tcl]]
-package ifneeded base64 2.3.2 [list source [file join $dir base64.tcl]]
-package ifneeded ossltest 0.7 [list source [file join $dir ossltest.tcl]]
+package ifneeded test 0.2 [list source -encoding utf-8 [file join $dir test.tcl]]
+package ifneeded testlib 0.1 [list source -encoding utf-8 [file join $dir testlib.tcl]]
+package ifneeded fgetopt 0.1 [list source -encoding utf-8 [file join $dir fgetopt.tcl]]
+package ifneeded asn 0.7.1 [list source -encoding utf-8 [file join $dir asn.tcl]]
+package ifneeded base64 2.3.2 [list source -encoding utf-8 [file join $dir base64.tcl]]
+package ifneeded ossltest 0.7 [list source -encoding utf-8 [file join $dir ossltest.tcl]]
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
# создание секретного ключа
# создание заявки и самоподписанного сертификата командой req
# проверка OIDов алгоритма во всех структурах
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
if {[info exists env(PKG_PATH)]} {
lappend auto_path $env(PKG_PATH)
} else {
#!/bin/sh
-# -*- coding: cp1251 -*-
# Состав набора тестов
# 1. Этот скрипт
else
echo "Using $TCLSH as tclsh"
fi
+TCLSH="$TCLSH -encoding utf-8"
APP_SUFFIX=`basename $OPENSSL_APP .exe|sed s/openssl//`
[ -n "$OPENSSL_APP" ]&& export OPENSSL_APP
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
+
lappend auto_path [file dirname [info script]]
package require ossltest
if {$argc==2} {
-# -*- coding: cp1251 -*-
# Установка номера тестового ПРА
namespace eval vizir {
}
set test_id [file rootname [file tail [info script]]]$suffix
set stat [open "stats" a]
- fconfigure $stat -encoding cp1251
+ fconfigure $stat -encoding utf-8
puts $stat [list $test_id [rus $t_name] $no $ok $failed $p_skip $c_skip]
close $stat
if {!$failed} {
}
return 1
}
-# Перекодирует строку из кодировки скрипта (assumed 1251)
-# в текущую системную
-
-if {[encoding system] == "utf-8" } {
-
proc rus {string} {
- return [encoding convertfrom cp1251 $string]
-}
-
-} else {
-
-proc rus {string} "
- return \[encoding convertfrom cp1251 \[encoding convertto [encoding system] \$string\]\]
-"
-
+ return $string
}
#
# Пишет строку в лог
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir
#!/usr/bin/tclsh
-# -*- coding: cp1251 -*-
lappend auto_path [file dirname [info script]]
package require ossltest