Skip to content

Commit

Permalink
feat: distro packaging tests on arm64 in addition to amd64
Browse files Browse the repository at this point in the history
Signed-off-by: thediveo <[email protected]>
  • Loading branch information
thediveo committed Oct 16, 2023
1 parent 83a50af commit e768a4a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
9 changes: 8 additions & 1 deletion packaging/linux/test/alpine/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ RED="\033[1;31m"
GREEN="\033[1;32m"
NOCOLOR="\033[0m"

arch=$(uname -m)
case ${arch} in
x86_64) arch="amd64";;
aarch64) arch="arm64";;
*) echo -e "${RED}FAIL:${NOCOLOR} unsupported architecture ${arch}"; exit 1;;
esac

# test harness
apk update
apk add xdg-utils

# the real deal...
apk add --allow-untrusted /dist/cshargextcap_*_amd64.apk
apk add --allow-untrusted /dist/cshargextcap_*_${arch}.apk

apk add tshark

Expand Down
9 changes: 8 additions & 1 deletion packaging/linux/test/debian/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ RED="\033[1;31m"
GREEN="\033[1;32m"
NOCOLOR="\033[0m"

arch=$(uname -m)
case ${arch} in
x86_64) arch="amd64";;
aarch64) arch="arm64";;
*) echo -e "${RED}FAIL:${NOCOLOR} unsupported architecture ${arch}"; exit 1;;
esac

# test harness
apt-get update
apt-get install --no-install-recommends --no-install-suggests -y xdg-utils

# the real deal...
apt-get install --no-install-suggests -y /dist/cshargextcap_*_amd64.deb
apt-get install --no-install-suggests -y /dist/cshargextcap_*_${arch}.deb

apt-get install --no-install-recommends --no-install-suggests -y tshark

Expand Down
9 changes: 8 additions & 1 deletion packaging/linux/test/fedora/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ RED="\033[1;31m"
GREEN="\033[1;32m"
NOCOLOR="\033[0m"

arch=$(uname -m)
case ${arch} in
x86_64) arch="amd64";;
aarch64) arch="arm64";;
*) echo -e "${RED}FAIL:${NOCOLOR} unsupported architecture ${arch}"; exit 1;;
esac

# test harness
dnf install -y xdg-utils

# the real deal...
dnf install -y /dist/cshargextcap_*_amd64.rpm
dnf install -y /dist/cshargextcap_*_${arch}.rpm

# Ask tshark to tell us the extcap interfaces it knows of: this must list the
# packetflix extcap so we know we've installed the plugin properly.
Expand Down
9 changes: 8 additions & 1 deletion packaging/linux/test/ubuntu/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ RED="\033[1;31m"
GREEN="\033[1;32m"
NOCOLOR="\033[0m"

arch=$(uname -m)
case ${arch} in
x86_64) arch="amd64";;
aarch64) arch="arm64";;
*) echo -e "${RED}FAIL:${NOCOLOR} unsupported architecture ${arch}"; exit 1;;
esac

# test harness
apt-get update
apt-get install --no-install-recommends --no-install-suggests -y xdg-utils

# the real deal...
apt-get install --no-install-suggests -y /dist/cshargextcap_*_amd64.deb
apt-get install --no-install-suggests -y /dist/cshargextcap_*_${arch}.deb

apt-get install --no-install-recommends --no-install-suggests -y tshark

Expand Down
2 changes: 1 addition & 1 deletion packaging/windows/pluginversion.nsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!define VERSION "0.9.7"
!define VERSION "0.9.7-7-g83a50af"
!define FILEVERSION "0.9.7.0"
!define COPYRIGHT "Copyright © Siemens 2023"
!define BINARYPATH "/cshargextcap/dist/windows_windows_amd64_v1"
Expand Down

0 comments on commit e768a4a

Please sign in to comment.