Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Alpine (Linux Distro) #331

Merged
merged 34 commits into from
Sep 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
58de4e2
fix: add test automation for Alpine
skinner-m-c Sep 16, 2024
8424d5e
Update .github/CONTRIBUTING.md
Chemaclass Sep 21, 2024
70499d1
docs: improve BASHUNIT_LOAD_FILE documentation
Chemaclass Sep 18, 2024
0055475
feat: add optional second arg to --debug option
Chemaclass Sep 21, 2024
a8ad97e
docs: upgrade changelog
Chemaclass Sep 21, 2024
c8f8848
refactor: rename runtime_in_milliseconds to total_runtime_in_millisec…
Chemaclass Sep 21, 2024
673d1bc
refactor: move duration logic from logger to runner test scope
Chemaclass Sep 21, 2024
291fdb7
feat: add str::rpad()
Chemaclass Sep 21, 2024
5b79121
feat: add time per test if BASHUNIT_SHOW_EXECUTION_TIME=true
Chemaclass Sep 21, 2024
50061f8
fix: static-analysis
Chemaclass Sep 21, 2024
878a55b
refactor: simplify total tests display
Chemaclass Sep 21, 2024
ae2e529
fix: str::rpad()
Chemaclass Sep 21, 2024
4c05947
fix: TERMINAL_WIDTH when TERM is not define, use a default
Chemaclass Sep 21, 2024
dde0369
docs: upgrade changelog
Chemaclass Sep 21, 2024
cc23fa1
test: print_successful_test_output time with and without args
Chemaclass Sep 21, 2024
9874c17
fix: load check_os before clock
Chemaclass Sep 21, 2024
1d66eaf
fix: TERMINAL_WIDTH using stty instead of tput to get the cols
Chemaclass Sep 21, 2024
e70da26
Merge branch 'main' into fix/add-alpine-test-automation
Chemaclass Sep 21, 2024
194853f
feat: distinguish Linux - Ubuntu,Alpine,Other
Chemaclass Sep 21, 2024
cab23f7
fix: filtered_lines in check_duplicate_functions()
Chemaclass Sep 21, 2024
0cd4af1
refactor: _OS split into _OS and _DISTRO
Chemaclass Sep 21, 2024
f6be730
refactor: remove unnecesary test
Chemaclass Sep 21, 2024
9463fb7
test: ignore directory tests for Alpine
Chemaclass Sep 21, 2024
dec200e
fix: alpine compabible filtered_lines grep on check_duplicate_functions
Chemaclass Sep 21, 2024
e4fe41c
fix: add missing deps on teset-alpine make command
Chemaclass Sep 21, 2024
07d44bc
fix: time on linux alpine
Chemaclass Sep 21, 2024
939abfb
docs: update changelog
Chemaclass Sep 21, 2024
c5be076
fix: time per test adding perl to test-alpine
Chemaclass Sep 21, 2024
f144546
refactor: clean ups
Chemaclass Sep 21, 2024
23763f1
docs: testing different OS in contributing
Chemaclass Sep 22, 2024
ee31360
test: add alpine-latest to CI strategy matrix
Chemaclass Sep 22, 2024
9e6d625
fix: CI alpine tests in a separate job
Chemaclass Sep 22, 2024
5426cc5
refactor: remove BASHUNIT_ALPINE_TEST_VERSION from .env.example
Chemaclass Sep 22, 2024
141b208
refactor: make test/alpine for local and CI test alpine with custom d…
Chemaclass Sep 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: distinguish Linux - Ubuntu,Alpine,Other
  • Loading branch information
Chemaclass committed Sep 21, 2024
commit 194853fb81d6e79146cb4f1f9fe52638334587a3
14 changes: 10 additions & 4 deletions src/check_os.sh
Original file line number Diff line number Diff line change
@@ -4,9 +4,15 @@
_OS="Unknown"

if [[ "$(uname)" == "Linux" ]]; then
_OS="Linux"
if command -v apt > /dev/null; then
_OS="Linux - Ubuntu"
elif command -v apk > /dev/null; then
_OS="Linux - Alpine"
else
_OS="Linux - Other"
fi
elif [[ "$(uname)" == "Darwin" ]]; then
_OS="OSX"
elif [[ $(uname) == *"MINGW"* ]]; then
_OS="Windows"
_OS="OSX"
elif [[ "$(uname)" == *"MINGW"* ]]; then
_OS="Windows"
fi