Skip to content

Commit

Permalink
Polish test files
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Sep 30, 2023
1 parent 77ddc09 commit b492a0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update
RUN apt-get install --yes --no-install-recommends \
autoconf gcc git libjson-c-dev lsof make php8.2-dev

COPY . /fracker
COPY . /fracker/

WORKDIR /fracker/test
RUN make rebuild
Expand Down
8 changes: 4 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAKEFLAGS += --always-make

rebuild:
build:
npm install -C ../app/
make -C ../ext/

Expand All @@ -10,11 +10,11 @@ test:
clean:
@find ./cases/ -name 'result--*' -delete

rebuild-docker:
docker-build:
@docker build -f ./Dockerfile -t fracker-testsuite ..

test-docker:
docker-test:
@docker run --rm -it fracker-testsuite

clean-docker:
docker-clean:
@docker rmi fracker-testsuite
20 changes: 10 additions & 10 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
## Run inside a Docker container

```console
$ make rebuild-docker
$ make test-docker
$ make clean-docker
make docker-build
make docker-test
make docker-clean
```

## Run locally

```console
$ make rebuild
$ make test
$ make clean
make build
make test
make clean
```

### Run single tests

This is mostly useful for debugging and test-writing purposes to avoid running the whole test suite every time:
This is mostly useful for debugging and test-writing purposes to avoid running the whole test suite every time. For example to run just the `argument-matching` test case:

```console
$ make rebuild
$ ./run.sh $test_case
$ make clean
make build
./run.sh argument-matching
make clean
```

0 comments on commit b492a0a

Please sign in to comment.