Browse Source

make test now automatically removes test binary after the testing session

master
Gitea 2 years ago
parent
commit
f7b67a00b5
  1. 1
      .gitignore
  2. 7
      Makefile
  3. BIN
      testing/test
  4. 2
      testing/test.c

1
.gitignore vendored

@ -1,4 +1,3 @@
build/ build/
bin/ bin/
testing/test
auxilib auxilib

7
Makefile

@ -18,7 +18,10 @@ lib:
test: test:
$(CC) $(DEFAULTCFLAGS) $(TESTDIR)/*.c -o $(TESTDIR)/$(TESTBIN) && cd $(TESTDIR) && ./$(TESTBIN) $(CC) $(DEFAULTCFLAGS) $(TESTDIR)/*.c -o $(TESTDIR)/$(TESTBIN) && \
cd $(TESTDIR) && \
./$(TESTBIN) && \
rm $(TESTBIN)
clear: clear:
rm -rf $(BUILDDIR) $(BINDIR) rm -rf $(BUILDDIR) $(BINDIR) $(TESTDIR)/$(TESTBIN)

BIN
testing/test

Binary file not shown.

2
testing/test.c

@ -143,4 +143,6 @@ int main() {
} else { } else {
printf("[INFO] Endian test passed\n\n"); printf("[INFO] Endian test passed\n\n");
} }
return EXIT_SUCCESS;
} }
Loading…
Cancel
Save