Skip to content

Commit

Permalink
Testing: add make test target, use in Travis CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 1, 2015
1 parent ab281dc commit 61df3e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
base64
test/test
test/test_base64
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -5,5 +5,4 @@ compiler:
- gcc

script:
- make
- ( cd test && make && ./test )
- make -C test test
11 changes: 7 additions & 4 deletions test/Makefile
@@ -1,9 +1,12 @@
CFLAGS += -std=c89 -O3 -march=native -Wall -Wextra -pedantic
CFLAGS += -std=c89 -O3 -Wall -Wextra -pedantic

test: test.c ../base64.c
.PHONY: clean test

test_base64: test_base64.c ../base64.c
$(CC) $(CFLAGS) -o $@ $^

.PHONY: clean
test: clean test_base64
./test_base64

clean:
rm -f test
rm -f test_base64
File renamed without changes.

0 comments on commit 61df3e7

Please sign in to comment.