citus/src/test/regress/bin
Jelte Fennema e1afd30263
Speed up test runs on WSL2 a lot (#5736)
It turns out `whereis` is incredibly slow on WSL2 (at least on my
machine):

```
$ time whereis diff
diff: /usr/bin/diff /usr/share/man/man1/diff.1.gz

real    0m0.408s
user    0m0.010s
sys 0m0.101s
```

This command is run by our custom `diff` script, which is run for every
test file that is run. So this adds lots of unnecessary runtime time to
tests.

This changes our custom `diff` script to only call `whereis` in the
strange case that `/usr/bin/diff` does not exist.

The impact of this small change on the total runtime of the tests on WSL
is huge. As an example the following command takes 18 seconds without
this change and 7 seconds with it:
```
make -C src/test/regress/ check-arbitrary-configs CONFIGS=PostgresConfig
```
2022-02-23 13:03:29 +01:00
..
test Update diff-filter to handle lines removed by normalization 2020-01-28 15:39:40 +00:00
copy_modified Replace denormalized test output with normalized at the end of the run 2020-01-24 11:42:38 +01:00
copy_modified_wrapper Add an infrastructure to run same tests with arbitrary configs (#5316) 2021-10-12 14:24:19 +03:00
create_test.py Add a simple python script to generate a new test (#3972) 2021-06-01 11:22:11 +02:00
diff Speed up test runs on WSL2 a lot (#5736) 2022-02-23 13:03:29 +01:00
diff-filter Fix diff-filter to search the whole line for matches 2021-04-23 12:43:49 +02:00
normalize.sed Overrides pg_cancel_backend and pg_terminate_backend to accept global pid 2022-02-21 16:41:35 +03:00
test_diff Update diff-filter to handle lines removed by normalization 2020-01-28 15:39:40 +00:00