Ethan P
e4999a7ffb
lib: Add option parsing for short flags followed by number
2020-07-06 18:03:30 -07:00
Ethan P
69d9c38326
batwatch: small formatting changes
2020-07-06 17:43:37 -07:00
Alissa Huskey
57be774f88
Fix gnu stat flag
...
- fix gnu stat formatting option from %z to %Z
- use read with a one second timeout instead of sleep, then quit if user
responds with "q" (for testing, mostly)
- call pager_exec on entr and bat line instead of main so that --clear
works
2020-07-06 17:36:03 -07:00
Alissa Huskey
4c09718a46
batwatch changes to reveal a bug and add --help
...
- Add `-h` and `--help` flags to print out basic usage.
- Refactor determine_stat_variant so that it checks to make sure the
value from `stat` is a epoch timestamp, and exit noisily if it is not.
- Change `determine_watcher` to set the `OPT_WATCHER` global directory
directly instead of echoing it then being called from a subshell. There
was an errror that the subshell was obscuring.
- Add a test to reflect the bug.
2020-07-06 17:36:03 -07:00
Ethan P
e250ad9b29
test: Add --no-config to bat shimexec
2020-05-06 18:57:04 -07:00
Ethan P
f9b18f7e8e
test: Fix bat shimexec
2020-05-06 18:56:27 -07:00
Ethan P
29fb251348
test: Update tests to shim stty instead of tput
...
Since we removed a dependency on tput, it makes more sense to shim the
command that we replaced it with.
2020-04-30 21:47:59 -07:00
Ethan P
9f983891fd
lib: Fix behavior of PAGER environment var ( #24 )
2020-04-30 20:13:03 -07:00
Ethan P
d81456872b
test: Add 'perf' suite to find out which libraries cost the most startup time
2020-04-27 19:08:06 -07:00
Ethan P
76afe39c96
test: Generate snapshot for batdiff
2020-04-27 18:51:36 -07:00
Ethan P
ab0f1b96d6
batdiff: Add batdiff script
2020-04-27 18:51:36 -07:00
Ethan P
e79e747e71
test: Avoid using 'head'
2020-04-27 01:22:22 -07:00
Ethan P
9a92579100
test: Add suite for DSL parsing library
2020-04-17 02:25:33 -07:00
Ethan P
c4af3eb637
Add tests for all programs --version
2020-04-08 03:11:56 -07:00
Ethan P
a3d2df5927
Update all scripts to use constants, add --version support
2020-04-08 03:00:04 -07:00
Ethan P
7eac8b265d
Add tests for pager library
2020-04-06 13:01:39 -07:00
Ethan P
b72a495de1
Add skip for batgrep tests if ripgrep is not installed
2020-04-06 04:55:57 -07:00
Ethan P
06746d0e24
Add tests for lib/version.sh
2020-04-01 15:00:11 -07:00
Ethan P
b1ccd08034
Update snapshots
2020-04-01 12:51:29 -07:00
Éfrit
73aafa56e1
Format with vs-shell-format
2020-04-01 02:55:41 +02:00
Éfrit
30f5508bc3
Remove superfluous newline
2020-04-01 02:55:41 +02:00
Ethan P
6b57f3ff3c
Fix invalid snapshot
2020-02-19 21:33:58 -08:00
Ethan P
ef9def267f
Add executable shim for bat which enforces a theme
2020-02-19 21:33:40 -08:00
Ethan P
531dcd6c19
Add executable shim for tput to ensure consistent size
2020-02-19 21:10:56 -08:00
Ethan P
88e71bbb38
Update to use 'best' for testing
2020-02-19 20:49:20 -08:00
Ethan P
e0b9819859
Add relative symlink test
2020-01-21 09:58:26 -08:00
Ethan P
441eed7c52
Rename symlink tests
2020-01-21 09:41:24 -08:00
Ethan P
5c9920827f
Add test for running from a symlink
2020-01-18 15:31:25 -08:00
Ethan P
c80d107d1c
Disabled pager test due to inconsistencies
2020-01-17 16:56:18 -08:00
Ethan P
eca97339e0
Fix inconsistencies in tests between tty and script
2019-12-25 00:17:01 -08:00
Ethan P
98e2077fe2
Fix lib.pager test breaking on CI
2019-12-23 18:06:27 -08:00
Ethan P
08acea3bf4
Add test for pager lib
2019-12-23 17:45:58 -08:00
Ethan P
a0fcb97ff9
Disable batman tests because man will not read local files
2019-10-22 16:06:44 -07:00
Ethan P
14b69a893d
Add new tests for batman
2019-10-22 15:42:34 -07:00
Ethan P
df14cfc8b1
Add way to see test snapshot output
2019-10-22 15:42:06 -07:00
Ethan P
fa8a3bb850
Improve tests
2019-10-22 15:21:12 -07:00
Ethan P
3e399294e2
Change tests to not show failure reasons in build script
2019-09-26 15:57:17 -07:00
Ethan P
e15b9d439a
Update tests for lib/opt.sh
2019-09-25 13:19:51 -07:00
Ethan P
0967ca9ab3
Add snapshot test for option parsing library
2019-09-08 19:38:13 -07:00
Ethan P
d38d5b518e
Fix test/run.sh passing when tests are actually failing
2019-09-08 19:09:52 -07:00
Ethan P
369d7f4eef
Added more documentation to tests
2019-09-07 15:06:50 -07:00
Ethan P
9c2656312c
Updated test system to be a little more straightforward
2019-09-07 15:00:36 -07:00
Ethan P
bb494fa484
Fixed tests hanging the CI instance
2019-07-26 15:16:17 -07:00
Ethan P
9dbb62c015
Fixed CI tests, hopefully.
2019-06-19 17:37:16 -07:00
Ethan P
b6ba2e1736
Added testing support.
2019-06-19 16:54:23 -07:00