-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from dokku/alpine-support
Add support for alpine linux 3.x. Closes #16
- Loading branch information
Showing
6 changed files
with
76 additions
and
10 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
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,6 @@ | ||
NAME="Alpine Linux" | ||
ID=alpine | ||
VERSION_ID=3.2.3 | ||
PRETTY_NAME="Alpine Linux v3.2" | ||
HOME_URL="http://alpinelinux.org" | ||
BUG_REPORT_URL="http://bugs.alpinelinux.org" |
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,7 @@ | ||
PRETTY_NAME="Debian GNU/Linux jessie/sid" | ||
NAME="Debian GNU/Linux" | ||
ID=debian | ||
ANSI_COLOR="1;31" | ||
HOME_URL="http://www.debian.org/" | ||
SUPPORT_URL="http://www.debian.org/support/" | ||
BUG_REPORT_URL="http://bugs.debian.org/" |
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,9 @@ | ||
NAME="Ubuntu" | ||
VERSION="14.04.3 LTS, Trusty Tahr" | ||
ID=ubuntu | ||
ID_LIKE=debian | ||
PRETTY_NAME="Ubuntu 14.04.3 LTS" | ||
VERSION_ID="14.04" | ||
HOME_URL="http://www.ubuntu.com/" | ||
SUPPORT_URL="http://help.ubuntu.com/" | ||
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" |
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,34 @@ | ||
#!/usr/bin/env bats | ||
|
||
load test_helper | ||
|
||
@test "(fn) print-os-id (custom path)" { | ||
load "/usr/local/bin/sshcommand" | ||
|
||
SSHCOMMAND_OSRELEASE=$BATS_TEST_DIRNAME/fixtures/ubuntu-1404-os-release run "fn-print-os-id" | ||
echo "output: "$output | ||
echo "status: "$status | ||
assert_output "ubuntu" | ||
assert_success | ||
|
||
SSHCOMMAND_OSRELEASE=$BATS_TEST_DIRNAME/fixtures/debian-jessie-os-release run "fn-print-os-id" | ||
echo "output: "$output | ||
echo "status: "$status | ||
assert_output "debian" | ||
assert_success | ||
|
||
SSHCOMMAND_OSRELEASE=$BATS_TEST_DIRNAME/fixtures/alpine-32-os-release run "fn-print-os-id" | ||
echo "output: "$output | ||
echo "status: "$status | ||
assert_output "alpine" | ||
assert_success | ||
} | ||
|
||
@test "(fn) print-os-id (invalid path)" { | ||
load "/usr/local/bin/sshcommand" | ||
SSHCOMMAND_OSRELEASE=/tmp/nonexistent-os-release run "fn-print-os-id" | ||
echo "output: "$output | ||
echo "status: "$status | ||
assert_output "unknown" | ||
assert_success | ||
} |