@@ -53,33 +53,33 @@ fn client() {
53
53
54
54
wait_for_port ( 4443 ) ;
55
55
56
- let openssl_insecure_output = Command :: new ( "target/client " )
56
+ let openssl_insecure_output = Command :: new ( "tests/maybe-valgrind.sh " )
57
57
. env ( "LD_LIBRARY_PATH" , "" )
58
- . args ( & [ "localhost" , "4443" , "insecure" ] )
58
+ . args ( & [ "target/client" , " localhost", "4443" , "insecure" ] )
59
59
. stdout ( Stdio :: piped ( ) )
60
60
. output ( )
61
61
. map ( print_output)
62
62
. unwrap ( ) ;
63
63
64
- let rustls_insecure_output = Command :: new ( "target/client " )
65
- . args ( & [ "localhost" , "4443" , "insecure" ] )
64
+ let rustls_insecure_output = Command :: new ( "tests/maybe-valgrind.sh " )
65
+ . args ( & [ "target/client" , " localhost", "4443" , "insecure" ] )
66
66
. stdout ( Stdio :: piped ( ) )
67
67
. output ( )
68
68
. map ( print_output)
69
69
. unwrap ( ) ;
70
70
71
71
assert_eq ! ( openssl_insecure_output, rustls_insecure_output) ;
72
72
73
- let openssl_secure_output = Command :: new ( "target/client " )
73
+ let openssl_secure_output = Command :: new ( "tests/maybe-valgrind.sh " )
74
74
. env ( "LD_LIBRARY_PATH" , "" )
75
- . args ( & [ "localhost" , "4443" , "test-ca/rsa/ca.cert" ] )
75
+ . args ( & [ "target/client" , " localhost", "4443" , "test-ca/rsa/ca.cert" ] )
76
76
. stdout ( Stdio :: piped ( ) )
77
77
. output ( )
78
78
. map ( print_output)
79
79
. unwrap ( ) ;
80
80
81
- let rustls_secure_output = Command :: new ( "target/client " )
82
- . args ( & [ "localhost" , "4443" , "test-ca/rsa/ca.cert" ] )
81
+ let rustls_secure_output = Command :: new ( "tests/maybe-valgrind.sh " )
82
+ . args ( & [ "target/client" , " localhost", "4443" , "test-ca/rsa/ca.cert" ] )
83
83
. stdout ( Stdio :: piped ( ) )
84
84
. output ( )
85
85
. map ( print_output)
@@ -91,14 +91,16 @@ fn client() {
91
91
#[ test]
92
92
#[ ignore]
93
93
fn constants ( ) {
94
- let openssl_output = Command :: new ( "target/constants" )
94
+ let openssl_output = Command :: new ( "tests/maybe-valgrind.sh" )
95
+ . args ( & [ "target/constants" ] )
95
96
. env ( "LD_LIBRARY_PATH" , "" )
96
97
. stdout ( Stdio :: piped ( ) )
97
98
. output ( )
98
99
. map ( print_output)
99
100
. unwrap ( ) ;
100
101
101
- let rustls_output = Command :: new ( "target/constants" )
102
+ let rustls_output = Command :: new ( "tests/maybe-valgrind.sh" )
103
+ . args ( & [ "target/constants" ] )
102
104
. stdout ( Stdio :: piped ( ) )
103
105
. output ( )
104
106
. map ( print_output)
@@ -110,14 +112,16 @@ fn constants() {
110
112
#[ test]
111
113
#[ ignore]
112
114
fn ciphers ( ) {
113
- let openssl_output = Command :: new ( "target/ciphers" )
115
+ let openssl_output = Command :: new ( "tests/maybe-valgrind.sh" )
116
+ . args ( & [ "target/ciphers" ] )
114
117
. env ( "LD_LIBRARY_PATH" , "" )
115
118
. stdout ( Stdio :: piped ( ) )
116
119
. output ( )
117
120
. map ( print_output)
118
121
. unwrap ( ) ;
119
122
120
- let rustls_output = Command :: new ( "target/ciphers" )
123
+ let rustls_output = Command :: new ( "tests/maybe-valgrind.sh" )
124
+ . args ( & [ "target/ciphers" ] )
121
125
. stdout ( Stdio :: piped ( ) )
122
126
. output ( )
123
127
. map ( print_output)
0 commit comments