Add interoperability test suite to CI

This commit is contained in:
M. Thiercelin 2023-02-20 10:37:38 +01:00 committed by marinthiercelin
parent 503727334c
commit b7193f64e4
5 changed files with 224 additions and 0 deletions

4
.github/test-suite/build_gosop.sh vendored Executable file
View file

@ -0,0 +1,4 @@
cd gosop
echo "replace github.com/ProtonMail/gopenpgp/v2 => ../gopenpgp" >> go.mod
go get github.com/ProtonMail/gopenpgp/v2/crypto
go build .

28
.github/test-suite/config.json.template vendored Normal file
View file

@ -0,0 +1,28 @@
{
"drivers": [
{
"id": "gosop-branch",
"path": "__GOSOP_BRANCH__"
},
{
"id": "gosop-main",
"path": "__GOSOP_MAIN__"
},
{
"path": "__SQOP__"
},
{
"path": "__GPGME_SOP__"
},
{
"path": "__SOP_OPENPGPJS__"
},
{
"path": "__RNP_SOP__"
}
],
"rlimits": {
"DATA": 1073741824
}
}

12
.github/test-suite/prepare_config.sh vendored Executable file
View file

@ -0,0 +1,12 @@
CONFIG_TEMPLATE=$1
CONFIG_OUTPUT=$2
GOSOP_BRANCH=$3
GOSOP_MAIN=$4
cat $CONFIG_TEMPLATE \
| sed "s@__GOSOP_BRANCH__@${GOSOP_BRANCH}@g" \
| sed "s@__GOSOP_MAIN__@${GOSOP_MAIN}@g" \
| sed "s@__SQOP__@${SQOP}@g" \
| sed "s@__GPGME_SOP__@${GPGME_SOP}@g" \
| sed "s@__SOP_OPENPGPJS__@${SOP_OPENPGPJS}@g" \
| sed "s@__RNP_SOP__@${RNP_SOP}@g" \
> $CONFIG_OUTPUT