tests: use python3/pip3 instead of just python/pip

This commit is contained in:
philsmd
2020-10-13 10:12:10 +02:00
parent fb219e0a69
commit 10b3e3051c
10 changed files with 29 additions and 29 deletions
+5 -5
View File
@@ -64,13 +64,13 @@ cpan install Authen::Passphrase::LANManager \
ERRORS=$((ERRORS+$?))
pip install pygost
pip3 install pygost
# pip uninstall -y pycryptoplus pycrypto pycryptodome
# pip3 uninstall -y pycryptoplus pycrypto pycryptodome
pip install pycryptoplus
pip uninstall -y pycryptodome
pip install pycrypto
pip3 install pycryptoplus
pip3 uninstall -y pycryptodome
pip3 install pycrypto
ERRORS=$((ERRORS+$?))
+1 -1
View File
@@ -26,7 +26,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $hash = `python -c '$python_code'`;
my $hash = `python3 -c '$python_code'`;
return $hash;
}
+1 -1
View File
@@ -27,7 +27,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $digest = `python -c '$python_code'`;
my $digest = `python3 -c '$python_code'`;
my $hash = sprintf ("%s:%s", $digest, $salt);
+1 -1
View File
@@ -27,7 +27,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $digest = `python -c '$python_code'`;
my $digest = `python3 -c '$python_code'`;
my $hash = sprintf ("%s:%s", $digest, $salt);
+1 -1
View File
@@ -24,7 +24,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $hash = `python -c '$python_code'`;
my $hash = `python3 -c '$python_code'`;
return $hash;
}
+1 -1
View File
@@ -28,7 +28,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $digest = `python -c '$python_code'`;
my $digest = `python3 -c '$python_code'`;
my $hash = sprintf ("%s:%s", $digest, $salt);
+1 -1
View File
@@ -28,7 +28,7 @@ print (binascii.hexlify (digest[::-1]).decode (), end = "")
END_CODE
my $digest = `python -c '$python_code'`;
my $digest = `python3 -c '$python_code'`;
my $hash = sprintf ("%s:%s", $digest, $salt);
+6 -6
View File
@@ -48,7 +48,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -91,7 +91,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -136,7 +136,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -179,7 +179,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -224,7 +224,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -267,7 +267,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
+6 -6
View File
@@ -48,7 +48,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -91,7 +91,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -136,7 +136,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -179,7 +179,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -224,7 +224,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -267,7 +267,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
+6 -6
View File
@@ -48,7 +48,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -91,7 +91,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -136,7 +136,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -179,7 +179,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -224,7 +224,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;
@@ -267,7 +267,7 @@ END_CODE
$python_code =~ s/key_tweak/"$key_tweak"/;
$python_code =~ s/data/"$data_base64"/;
my $output_buf = `python -c '$python_code'`;
my $output_buf = `python3 -c '$python_code'`;
$output_buf =~ s/[\r\n]//g;