forked from jwilk/ubanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jwilk:master' into completion
- Loading branch information
Showing
7 changed files
with
105 additions
and
17 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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright © 2024 Jakub Wilk <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -e -u | ||
|
||
dir="${0%/*}/.." | ||
prog="${UBANNER_TEST_TARGET:-"$dir/ubanner"}" | ||
|
||
is_unicode_locale() | ||
{ | ||
local charset=$'\u2591\u2592\u2588' | ||
test ${#charset} -eq 3 | ||
} | ||
|
||
# vim:ts=4 sts=4 sw=4 et ft=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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright © 2024 Jakub Wilk <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -e -u | ||
|
||
. "${0%/*}/common.sh" | ||
|
||
echo 1..1 | ||
is_unicode_locale || { | ||
echo 'non-Unicode locale' >&2 | ||
exit 1 | ||
} | ||
if out=$("$prog" --full-screen $'\u10E3') | ||
then | ||
sed -e 's/^/# /' <<< "$out" | ||
echo ok 1 | ||
else | ||
echo not ok 1 | ||
fi | ||
|
||
# vim:ts=4 sts=4 sw=4 et ft=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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright © 2024 Jakub Wilk <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -e -u | ||
|
||
. "${0%/*}/common.sh" | ||
|
||
echo 1..1 | ||
if out=$("$prog" --list-fonts) | ||
then | ||
sed -e 's/^/# /' <<< "$out" | ||
echo ok 1 | ||
else | ||
echo not ok 1 | ||
fi | ||
|
||
# vim:ts=4 sts=4 sw=4 et ft=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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright © 2024 Jakub Wilk <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -e -u | ||
|
||
. "${0%/*}/common.sh" | ||
|
||
echo 1..1 | ||
is_unicode_locale || { | ||
echo 'non-Unicode locale' >&2 | ||
exit 1 | ||
} | ||
if out=$("$prog" --trim $'\u10E3') | ||
then | ||
sed -e 's/^/# /' <<< "$out" | ||
echo ok 1 | ||
else | ||
echo not ok 1 | ||
fi | ||
|
||
# vim:ts=4 sts=4 sw=4 et ft=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