Skip to content

Commit 034df90

Browse files
committed
Use modern file extensions
And make sure we use the "run-tests" logic in CI
1 parent 776a5cb commit 034df90

12 files changed

+23
-14
lines changed

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
run: zef install --/test --test-depends --deps-only .
2929
- name: Build
3030
run: zef build .
31-
- name: Stage, Test, and Installation
32-
run: zef install . --debug
31+
- name: Run Special Tests
32+
run: raku run-tests -i

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
run: zef install --/test --test-depends --deps-only .
3131
- name: Build
3232
run: zef build .
33-
- name: Stage, Test, and Installation
34-
run: zef install . --debug
33+
- name: Run Special Tests
34+
run: raku run-tests -i

.github/workflows/windows.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ jobs:
2828
run: zef install --/test --test-depends --deps-only .
2929
- name: Build
3030
run: zef build .
31-
- name: Stage, Test, and Installation
32-
run: zef install . --debug
31+
- name: Run Special Tests
32+
run: raku run-tests -i
3333
- name: Ensure dll rename hack works
34-
if: runner.os == 'Windows'
3534
run: |
3635
Remove-Item -Path $env:TEMP\* -Recurse -Force -ErrorAction Ignore
37-
raku ${{ github.workspace }}/t/06-digest-md5.t
36+
raku ${{ github.workspace }}/t/06-digest-md5.rakutest

t/01-basic.t renamed to t/01-basic.rakutest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ ok $ssl.write("GET / HTTP/1.1\r\n\r\n"), 'write';
2222
ok $ssl.read(1) == 0, 'read';
2323

2424
ok $ssl.close, 'close';
25+
26+
# vim: expandtab shiftwidth=4

t/02-socket.t renamed to t/02-socket.rakutest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ sub fetch($host, $url) {
4949
$s.close;
5050
$result
5151
}
52+
53+
# vim: expandtab shiftwidth=4

t/03-rsa.t renamed to t/03-rsa.rakutest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
use v6;
21
use Test;
2+
use OpenSSL::RSATools;
33

44
plan 8;
55

6-
use OpenSSL::RSATools;
7-
86
my $pem = slurp 't/key.pem';
97

108
my $rsa = OpenSSL::RSAKey.new(private-pem => $pem);
@@ -24,3 +22,5 @@ ok $sha256-signature ne $signature, 'Different signature than sha1';
2422

2523
ok $rsa.verify($data.encode, $sha256-signature, :sha256), 'Can verify correctly (sha256)';
2624
ok !$rsa.verify("asdf".encode, $sha256-signature, :sha256), 'verify fails on different data (sha256)';
25+
26+
# vim: expandtab shiftwidth=4

t/04-crypt.t renamed to t/04-crypt.rakutest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
use v6;
21
use Test;
2+
use OpenSSL::CryptTools;
33

44
plan 13;
55

6-
use OpenSSL::CryptTools;
7-
86
ok 1, 'can load module';
97

108
my $ciphertext = encrypt("asdf".encode, :aes256, :iv(("0" x 16).encode), :key(('x' x 32).encode));
@@ -44,3 +42,5 @@ $ciphertext = encrypt($test, :aes192, :$iv, :$key);
4442
is-deeply $ciphertext[0..^16], (108, 43, 13, 72, 123, 90, 223, 254, 165, 189, 230, 75, 140, 224, 182, 49), "got aes192 expected ciphertext";
4543
$plaintext = decrypt($ciphertext, :aes192, :$iv, :$key);
4644
is-deeply $plaintext[0..^16], $test[0..^16], 'aes192 encrypt/decrypt roundtrip';
45+
46+
# vim: expandtab shiftwidth=4

t/05-digest.t renamed to t/05-digest.rakutest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ is $sha256, 'fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75',
1515
is $sha384, '6839312f3db343477070d3c0b2becd417b357154d48794d01d78cfb4617ed5ab819a77b6832f6542dd18bb738131ef7e', "sha384";
1616
is $sha512, '65019286222ace418f742556366f9b9da5aaf6797527d2f0cba5bfe6b2f8ed24746542a0f2be1da8d63c2477f688b608eb53628993afa624f378b03f10090ce7', 'sha512';
1717
is md5('abc'.encode: 'ascii').list».fmt("%02x").join, '900150983cd24fb0d6963f7d28e17f72', "md5";
18+
19+
# vim: expandtab shiftwidth=4
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ plan 1;
55

66
is OpenSSL::Digest::MD5.new.add('abc').hex,
77
'900150983cd24fb0d6963f7d28e17f72', 'hex hash';
8+
9+
# vim: expandtab shiftwidth=4

t/07-version.t renamed to t/07-version.rakutest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ isa-ok OpenSSL::Version::version(OpenSSL::Version::DIR), Str,
2020
"version(DIR) is-a 'Str'";
2121
isa-ok OpenSSL::Version::version(OpenSSL::Version::ENGINES_DIR), Str,
2222
"version(ENGINES_DIR) is-a 'Str'";
23+
24+
# vim: expandtab shiftwidth=4

0 commit comments

Comments
 (0)