1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Improve integration test for checker

* Modify script to call checker twice with difference options,
   including one with json and --verbose.
 * Add json result as build artifact to be uploaded.
This commit is contained in:
Bernhard Reiter 2022-06-14 11:10:52 +02:00
parent 589547fa94
commit d4f68a9b08
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554
2 changed files with 10 additions and 4 deletions

View file

@ -32,5 +32,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: checker-results
path: ~/checker-results.html
path: |
~/checker-results.html
~/checker-results.json
if-no-files-found: error

View file

@ -10,11 +10,15 @@
set -e # to exit if a command in the script fails
echo ==== run checker
echo '==== run checker (twice)'
cd ~/csaf_distribution
./bin-linux-amd64/csaf_checker -o ../checker-results.html --insecure \
--client-cert ~/devca1/testclient1.crt --client-key \
~/devca1/testclient1-key.pem localhost -f html
--insecure localhost -f html
cat ../checker-results.html
./bin-linux-amd64/csaf_checker -o ../checker-results.json --insecure \
--client-cert ~/devca1/testclient1.crt \
--client-key ~/devca1/testclient1-key.pem \
--verbose localhost