Skip to content

Commit

Permalink
Add CI tests for CSharp wrappers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Oct 20, 2023
1 parent 7a11cb2 commit acbbf06
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/make-test-swtpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ jobs:
- name: make debug io
run: make

# build CSharp wrapper
- name: Install mono
run: |
sudo apt-get install -y mono-mcs mono-tools-devel nunit nunit-console
- name: Build CSharp wrapper
run: |
cd wrapper/CSharp
mcs wolfTPM.cs wolfTPM-tests.cs -r:/usr/lib/cli/nunit.framework-2.6.3/nunit.framework.dll -t:library
LD_LIBRARY_PATH=../../src/.libs/ nunit-console wolfTPM.dll -run=tpm_csharp_test.WolfTPMTest.TrySelfTest
LD_LIBRARY_PATH=../../src/.libs/ nunit-console wolfTPM.dll
# capture logs on failure
- name: Upload failure logs
if: failure()
Expand Down

0 comments on commit acbbf06

Please sign in to comment.