Skip to content

Commit 0d5ae5a

Browse files
committed
test code
1 parent 4d712da commit 0d5ae5a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/interop-mlkem.yml

Lines changed: 13 additions & 5 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,21 @@ 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

9394
- name: Run connect test
9495
working-directory: ./wolfssh/
9596
run: |
96-
mkdir -p /var/empty
97+
mkdir -p /tmp/empty
9798
${{ env.build_dir }}/bin/ssh-keygen -f ~/.ssh/id_ed25519 -N "" -t ed25519
9899
cp ~/.ssh/id_ed25519.pub ~/.ssh/authorized_keys
99100
${{ 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 /"
101+
SSH_PID=$!
102+
./examples/client/client -u $(whoami) -i ~/.ssh/id_ed25519 -j ~/.ssh/id_ed25519.pub -c "ls /"
103+
kill -s KILL $SSH_PID
104+
ps aux
105+
./examples/echoserver/echoserver -p 22222 -x mlkem768x25519-sha256 -I runner:~/.ssh/authorized_keys &
106+
ECHO_PID=$!
107+
${{ env.build_dir }}/bin/ssh -p 22222 localhost ls /
108+
kill -s KILL $ECHO_PID

0 commit comments

Comments
 (0)