Skip to content

Commit e812216

Browse files
committed
test code
1 parent 4d712da commit e812216

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/interop-mlkem.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
install: true
3939

4040
build_openssh:
41+
name: Build OpenSSH
4142
runs-on: ubuntu-latest
4243
timeout-minutes: 4
4344
steps:
@@ -56,12 +57,12 @@ jobs:
5657
repository: openssh/openssh-portable
5758
ref: ${{ env.openssh }}
5859
path: openssh
59-
configure:
60+
configure: --with-privsep-path=/tmp/empty
6061
check: false
6162
install: true
6263

6364
build_wolfssh:
64-
name: Build wolfSSH
65+
name: Build and test wolfSSH
6566
runs-on: ubuntu-latest
6667
timeout-minutes: 4
6768
needs: [build_wolfssl, build_openssh]
@@ -87,14 +88,24 @@ jobs:
8788
with:
8889
repository: wolfSSL/wolfssh
8990
path: wolfssh
90-
configure: --enable-debug --with-wolfssl=${{ env.build_dir }}
91+
configure: --with-wolfssl=${{ env.build_dir }}
9192
check: true
9293

93-
- name: Run connect test
94+
- name: Make test key
9495
working-directory: ./wolfssh/
9596
run: |
96-
mkdir -p /var/empty
9797
${{ env.build_dir }}/bin/ssh-keygen -f ~/.ssh/id_ed25519 -N "" -t ed25519
9898
cp ~/.ssh/id_ed25519.pub ~/.ssh/authorized_keys
99+
100+
- name: Run connect wolfSSH to OpenSSH test
101+
working-directory: ./wolfssh/
102+
run: |
103+
mkdir -p /tmp/empty
99104
${{ env.build_dir }}/sbin/sshd -p 22222 -o KbdInteractiveAuthentication=no -o PasswordAuthentication=no -o KexAlgorithms=mlkem768x25519-sha256
100-
./examples/client/client -u root -i ~/.ssh/id_ed25519 -j ~/.ssh/id_ed25519.pub -c "ls /"
105+
./examples/client/client -u $(whoami) -i ~/.ssh/id_ed25519 -j ~/.ssh/id_ed25519.pub -c "ls /"
106+
107+
- name: Run connect OpenSSH to wolfSSH test
108+
working-directory: ./wolfssh/
109+
run: |
110+
./examples/echoserver/echoserver -p 22223 -x mlkem768x25519-sha256 -I runner:~/.ssh/id_ed25519.pub &
111+
${{ env.build_dir }}/bin/ssh -o StrictHostKeyChecking=no -p 22223 runner@127.0.0.1 "ls /"

0 commit comments

Comments
 (0)