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/
bin/
testing/test
auxilib

7
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)
rm -rf $(BUILDDIR) $(BINDIR) $(TESTDIR)/$(TESTBIN)

BIN
testing/test

Binary file not shown.

2
testing/test.c

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