Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/scripts/build-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ make)
cmake "$WORKSPACE" -DSTANDALONE_MODE=ON -DLPAC_WITH_APDU_AT=ON
make -j VERBOSE=1
make DESTDIR="$PKGDIR" install

test-driver-available # test driver loader works
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding || exit 1 to make the test logic more explicit (instead of depends on set -e).


copy-license "$PKGDIR/executables"
copy-usage "$PKGDIR/executables"
create-bundle "$ARTIFACT/lpac-$KERNEL-$MACHINE.zip" "$PKGDIR/executables"
Expand Down Expand Up @@ -51,6 +54,9 @@ make-without-lto)
cmake "$WORKSPACE" -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF -DSTANDALONE_MODE=ON
make -j VERBOSE=1
make DESTDIR="$PKGDIR" install

test-driver-available # test driver loader works

copy-license "$PKGDIR/executables"
copy-usage "$PKGDIR/executables"
create-bundle "$ARTIFACT/lpac-$KERNEL-$MACHINE-without-lto.zip" "$PKGDIR/executables"
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,8 @@ function create-bundle {
zip -v -r "$BUNDLE_FILE" ./*
popd
}

function test-driver-available {
env LPAC_APDU=stdio LPAC_HTTP=stdio "$PKGDIR/executables/lpac" driver list | \
jq --exit-status '.payload | [isempty(.LPAC_APDU), isempty(.LPAC_HTTP) | not] | all'
}
Loading