Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
7a888da409
tests: remove all "extern crate" statements
2023-04-10 08:31:31 +02:00
Terts Diepraam
4dd88680eb
tests: define default env vars for test commands
...
We now run each command with TZ=UTC and LC_ALL=C to ensure consistent
behavior independent from external timezone and locale settings. These
can still be overridden with other values if necessary.
2023-03-23 18:15:05 +01:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00
Jeffrey Finkelstein
c6d9d7f11c
Clippy fixes
2023-02-13 21:33:42 -05:00
Joining7943
1fadeb43b2
tests/util: Do not trim stderr in CmdResult::stderr_is. Add method stderr_trimmed_is.
...
Fix tests assert whitespace instead of trimming it. Disable some tests in `test_tr` because `tr`
produces too many newlines.
2023-01-22 14:56:19 +01:00
Daniel Hofstetter
ebbf8ade1e
pr: use clap to handle help & version
2022-09-12 15:28:08 +02:00
Niyaz Nigmatullin
999db68042
pr: migrate from chrono
crate to time
...
It seems that `chrono` is the reason of deadlock or UB in android
CI. Also `chrono` had some security issues and wasn't maintained for
two years until March 2022, so other unstabilities can happen. Plus
`chrono` uses old `time` dependency.
2022-09-09 21:59:08 +03:00
Niyaz Nigmatullin
52d767ed5a
test_pr: follow clippy advice
2022-08-17 13:13:27 +03:00
Daniel Hofstetter
dd19f85d2b
Fix clippy warnings in tests
2022-08-12 09:45:16 +02:00
Terts Diepraam
18369dc0be
all: use array intoiterator
2022-04-05 10:39:31 +02:00
Terts Diepraam
bb379b5384
pr: fix heuristic for number-lines argument ( #3109 )
2022-03-05 10:26:12 +01:00
Michael Debertol
1725bf6a36
pr: reduce test flakiness
...
Since some tests run multiple commands, we have to re-calculate the
expected result for every run.
This is because the expected results depend on file timestamps, but the
files are re-created for every new TestScenario.
2021-08-12 17:03:06 +02:00
Michael Debertol
285eeac1fb
tests/pr: include one more possible minute
2021-06-18 18:49:39 +02:00
Michael Debertol
d8c8e6774f
tests/pr: formatting
2021-06-12 18:03:00 +02:00
Michael Debertol
bb029193e2
tests/pr: prevent races
...
Allow any timestamp from the start of the command to its end to show up
in stdout.
2021-06-12 18:03:00 +02:00
Michael Debertol
8e7eedebe7
tests: take slices in stdout_is_fixture
2021-06-12 18:03:00 +02:00
Terts Diepraam
48516cc06a
pr: fix usage of current time
2021-06-02 17:18:07 +02:00
Sylvestre Ledru
a017c1b589
Merge pull request #2323 from miDeb/maint/spellcheck-all
...
maint: actually run spellcheck on all files
2021-05-31 23:36:56 +02:00
Michael Debertol
41878f1bf4
refactor/pr: polish spelling
2021-05-31 22:46:01 +02:00
Sylvestre Ledru
7b7185f916
Fix clippy warnings in the pr tests
2021-05-31 21:20:55 +02:00
Terts Diepraam
b0bf3e7e0f
pr: rustfmt test_pr.rs and utils.rs
2021-05-29 19:34:17 +02:00
Max Semenik
62fe68850e
pr: Fixes after rebasing
...
Only the minimum needed to:
* Make everything compile without warnings
* Move files according to the new project structure
* Make tests pass
2021-03-26 17:57:19 +03:00