diff --git a/cmds/portmaster-core/pack b/cmds/portmaster-core/pack index b2f6f217..5bbc1443 100755 --- a/cmds/portmaster-core/pack +++ b/cmds/portmaster-core/pack @@ -50,7 +50,7 @@ function build { fi # build - ./build main.go + ./build if [[ $? -ne 0 ]]; then echo -e "\n${COL_BOLD}[core] $platform v$version: ${COL_RED}BUILD FAILED.${COL_OFF}" exit 1 diff --git a/test b/test index 4caccbc9..572dcb14 100755 --- a/test +++ b/test @@ -131,6 +131,29 @@ if [[ $testonly -eq 0 ]]; then fi fi +# build portmaster-core for for all supported platforms +echo "building portmaster-core for all platforms" +cd ./cmds/portmaster-core +run env GOOS=linux GOARCH=amd64 ./build +run env GOOS=windows GOARCH=amd64 ./build +run env GOOS=darwin GOARCH=amd64 ./build +run env GOOS=linux GOARCH=arm64 ./build +run env GOOS=windows GOARCH=arm64 ./build +run env GOOS=darwin GOARCH=arm64 ./build +cd "$baseDir" + +# build portmaster-start for for all supported platforms +echo "" +echo "building portmaster-start for all platforms" +cd ./cmds/portmaster-start +run env GOOS=linux GOARCH=amd64 ./build +run env GOOS=windows GOARCH=amd64 ./build +run env GOOS=darwin GOARCH=amd64 ./build +run env GOOS=linux GOARCH=arm64 ./build +run env GOOS=windows GOARCH=arm64 ./build +run env GOOS=darwin GOARCH=arm64 ./build +cd "$baseDir" + # target selection if [[ "$1" == "" ]]; then # get all packages @@ -138,10 +161,12 @@ if [[ "$1" == "" ]]; then else # single package testing packages=$(go list -e)/$1 + echo "" echo "note: only running tests for package $packages" fi # platform info +echo "" platformInfo=$(go env GOOS GOARCH) echo "running tests for ${platformInfo//$'\n'/ }:"