-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
update-desktop-database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
update-desktop-database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Do a test installation of the cshargextcap*.apk package on Alpine. | ||
FROM alpine:latest | ||
COPY install.sh / | ||
CMD ["/bin/sh", "install.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
RED="\033[1;31m" | ||
GREEN="\033[1;32m" | ||
NOCOLOR="\033[0m" | ||
|
||
# test harness | ||
apk update | ||
apk add xdg-utils | ||
|
||
# the real deal... | ||
apk add --allow-untrusted /dist/cshargextcap_*_amd64.apk | ||
|
||
apk add tshark | ||
|
||
# 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. | ||
tshark -D | grep packetflix \ | ||
&& echo -e "${GREEN}OK:${NOCOLOR} tshark detects extcap plugin" \ | ||
|| (echo -e "${RED}FAIL:${NOCOLOR} tshark doesn't detect the packetflix extcap"; exit 1) | ||
|
||
# Check that the default URL scheme handler registration is in place. | ||
xdg-mime query default x-scheme-handler/packetflix | grep "packetflix.desktop" \ | ||
&& echo -e "${GREEN}OK:${NOCOLOR} packetflix URL scheme handler registered" \ | ||
|| (echo -e "${RED}FAIL:${NOCOLOR} packetflix URL scheme handler not detected"; exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
|
||
RED="\033[1;31m" | ||
GREEN="\033[1;32m" | ||
NOCOLOR="\033[0m" | ||
|
||
docker build --pull -f Dockerfile -t cshargextcap-alpine-test-install . | ||
docker run --rm --name cshargextcap-alpine-test-install -v ./../../../../dist:/dist cshargextcap-alpine-test-install \ | ||
&& echo -e "${GREEN}SUCCESS${NOCOLOR}" \ | ||
|| (echo -e "${RED}FAIL${NOCOLOR}"; exit 1) |