mirror of
https://github.com/uutils/coreutils
synced 2024-10-01 13:35:03 +00:00
Added build instructions and allowed selection of which tests to run
This commit is contained in:
parent
68e4d86f9d
commit
33bcc3156b
7
Makefile
7
Makefile
|
@ -27,9 +27,14 @@ BUILD ?= $(PROGS)
|
|||
EXES := \
|
||||
$(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS)))
|
||||
|
||||
TESTS := \
|
||||
# Programs with usable tests
|
||||
TEST_PROGS := \
|
||||
cat \
|
||||
|
||||
TEST ?= $(TEST_PROGS)
|
||||
|
||||
TESTS := \
|
||||
$(filter $(TEST),$(filter-out $(DONT_TEST),$(filter $(BUILD),$(filter-out $(DONT_BUILD),$(TEST_PROGS)))))
|
||||
|
||||
# Utils stuff
|
||||
EXES_PATHS := $(addprefix build/,$(EXES))
|
||||
|
|
36
README.md
36
README.md
|
@ -16,6 +16,42 @@ are either old, abandonned, hosted on CVS, written in platform-specific C, etc.
|
|||
Rust provides a good platform-agnostic way of writing systems utils that are easy
|
||||
to compile anywhere, and this is as good a way as any to try and learn it.
|
||||
|
||||
Build Instructions
|
||||
------------------
|
||||
|
||||
To simply build all available utilities:
|
||||
```
|
||||
make
|
||||
```
|
||||
|
||||
To build all but a few of the available utilities:
|
||||
```
|
||||
make DONT_BUILD='UTILITY_1 UTILITY_2'
|
||||
```
|
||||
|
||||
To build only a few of the available utilities:
|
||||
```
|
||||
make BUILD='UTILITY_1 UTILITY_2'
|
||||
```
|
||||
|
||||
Test Instructions
|
||||
-----------------
|
||||
|
||||
To simply test all available utilities:
|
||||
```
|
||||
make test
|
||||
```
|
||||
|
||||
To test all but a few of the available utilities:
|
||||
```
|
||||
make DONT_TEST='UTILITY_1 UTILITY_2' test
|
||||
```
|
||||
|
||||
To test only a few of the available utilities:
|
||||
```
|
||||
make TEST='UTILITY_1 UTILITY_2' test
|
||||
```
|
||||
|
||||
Contribute
|
||||
----------
|
||||
|
||||
|
|
Loading…
Reference in a new issue