Skip to content

Commit

Permalink
Remove old debug code in preparation for new code
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnx committed Dec 31, 2018
1 parent 84cdbdd commit 5f106e4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 65 deletions.
22 changes: 2 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
language: c
compiler:
- gcc

env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "zxB/HrSnLlzoB0gFT0w2IYLeF4eZRjI+TLGfVm7eWFFfosDNM7vEfJ3OTFxHh1BRh0+Ts+PwqCSLSv7L5IeHHZkft8YuDHQfc5qYheqmiJHdrh5br+UyVLrfnk3p15Im3Kum3aSQBOBfdmxO6vWfeKIL6EDf5UD9i0ZPYq7mwFbxOdmC1a9l/ucHOPQ8imvhqEINb7sXogrC/8jf9Cq8q53lt8OzXGa4I5HJa9CUxJ83ozE2zpu2cCAcTvcve1Up3pYQlsykXspbQPqBdNLHK+HYd8kSKw+WbfAkvSZ6UV9aC8Hp6nwmOMjih3B6v3XxguODhOglVwKpf4ecu290LOnE34K3De5tx2PJepD9IdupQD+ejcgvDS/0mPp9Bo+cpsqCRYSv05BQnunzoWGjKvQMTEM4d5tmGlCsrMD88YfuSywfx1RJX07QnhT4qPm8hBVbtnA4wovwS/m50vB1pjX1lZVEXJw6XSz/j3jAXYqTQYwCE39B7Ap8zKx1VUvem+rIasojAGmpjZY9gF4E4CBqvjkcZncsuTKekMFrWz2AjoHAVIy7hDo05gTjH/UAOU9mFg5T0LxZXZwZVmdOETtLlDf+WG7hTE4b4+oAb9wYLV8fZpOLynTFVV0gLeApm4GDNNxVxUpem45LWuQpbG5J5xU1TA7OVXHkHBcqtwo="

before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

addons:
coverity_scan:
project:
name: "ohnx/mail"
description: "Build submitted via Travis CI"
notification_email: masonx.01@gmail.com
build_command_prepend: "make clean"
build_command: "make -j4"
branch_pattern: coverity_scan
- clang

script:
- make -j4
- make test
20 changes: 8 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
INCLUDES=-Iinclude/ -Idist/mbedtls/include
LIBS=-lpthread -Ldist/ -lmbedtls -lmbedcrypto -lmbedx509
CFLAGS=$(INCLUDES) -Wall -Werror -std=gnu99 -pedantic
CFLAGS+=$(INCLUDES) -Wall -Werror -std=gnu99 -pedantic

OBJ=objs/smtp.o objs/mail.o objs/server.o objs/mail_serialize.o objs/ssl.o
OUTPUT=barid
Expand All @@ -24,22 +24,18 @@ objs/%.o: src/%.c
$(OUTPUT): dist/libmbedtls.a $(OBJ)
$(CC) $^ -o $@ $(LIBS) $(CFLAGS)

debug/hook_net.so: debug/hook_net.c
$(MAKE) -C debug/

.PHONY: debugnet
debugnet: $(OUTPUT) debug/hook_net.so
LD_PRELOAD=debug/hook_net.so ./$(OUTPUT)

.PHONY: debug
debug: CFLAGS += -g -O0 -fsanitize=address
debug: CFLAGS += -g -O0
debug: $(OUTPUT)
# valgrind --leak-check=full --show-leak-kinds=all ./$(OUTPUT) -p 2525 example.com example.org example.net -s

.PHONY: test
test: debug
@-echo "Tests are a WIP"

.PHONY: clean
clean:
-rm -f $(OBJ)
-rm -f $(OUTPUT)
$(MAKE) clean -C debug/
$(MAKE) clean -C dist/mbedtls
-$(MAKE) clean -C debug/
-$(MAKE) clean -C dist/mbedtls

5 changes: 0 additions & 5 deletions debug/Makefile

This file was deleted.

28 changes: 0 additions & 28 deletions debug/hook_net.c

This file was deleted.

0 comments on commit 5f106e4

Please sign in to comment.