diff --git a/.gitignore b/.gitignore index 7db15cf..aec9378 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ build/ bin/ -testing/test auxilib \ No newline at end of file diff --git a/Makefile b/Makefile index cf1128b..90ba7ac 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ lib: test: - $(CC) $(DEFAULTCFLAGS) $(TESTDIR)/*.c -o $(TESTDIR)/$(TESTBIN) && cd $(TESTDIR) && ./$(TESTBIN) + $(CC) $(DEFAULTCFLAGS) $(TESTDIR)/*.c -o $(TESTDIR)/$(TESTBIN) && \ + cd $(TESTDIR) && \ + ./$(TESTBIN) && \ + rm $(TESTBIN) clear: - rm -rf $(BUILDDIR) $(BINDIR) \ No newline at end of file + rm -rf $(BUILDDIR) $(BINDIR) $(TESTDIR)/$(TESTBIN) \ No newline at end of file diff --git a/testing/test b/testing/test deleted file mode 100755 index 60e9a5e..0000000 Binary files a/testing/test and /dev/null differ diff --git a/testing/test.c b/testing/test.c index a7979aa..507721d 100644 --- a/testing/test.c +++ b/testing/test.c @@ -143,4 +143,6 @@ int main() { } else { printf("[INFO] Endian test passed\n\n"); } + + return EXIT_SUCCESS; } \ No newline at end of file