Skip to content

Commit

Permalink
Update make regen to work with new directory.
Browse files Browse the repository at this point in the history
Also add test to make sure that `make regen` continues to work.
  • Loading branch information
mbrukman committed May 26, 2017
1 parent 4395ecb commit ce12b67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ matrix:
dist: trusty
env: TEST_RUNNER=make VERBOSE=2
sudo: false
script: make test
script:
- make test
- make regen-test

- os: linux
dist: trusty
Expand Down Expand Up @@ -83,7 +85,9 @@ matrix:
- os: osx
env: TEST_RUNNER=make VERBOSE=2
sudo: false
script: make test
script:
- make test
- make regen-test

- os: osx
env: TEST_RUNNER=bazel
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ test:

regen:
$(VERB) bash gen_test_results.sh

regen-test:
$(VERB) $(MAKE) regen
$(VERB) $(MAKE) test
2 changes: 1 addition & 1 deletion gen_test_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
function gen_test_data() {
local files="$@"
if [[ -z "${files}" ]]; then
files=testdata/*.in
files=tests/testdata/*.in
fi

for input in ${files}; do
Expand Down

0 comments on commit ce12b67

Please sign in to comment.