From 3809b109c60b0f8740b6bef6eec128c6f28ce352 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 23 Aug 2015 13:11:20 +0200 Subject: [PATCH] Add autotest for progress() Signed-off-by: Joachim Nilsson --- Makefile | 1 + progress.c | 4 ++-- progress.mk | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 progress.mk diff --git a/Makefile b/Makefile index e1129ea..140e979 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ test: clean $(MAKE) -f fsendfile.mk $(MAKE) -f makepath.mk $(MAKE) -f pidfilefn.mk + $(MAKE) -f progress.mk $(MAKE) -f rsync.mk $(MAKE) -f tempfile.mk $(MAKE) -f tree.mk diff --git a/progress.c b/progress.c index 6d969c5..fcc9fe9 100644 --- a/progress.c +++ b/progress.c @@ -70,7 +70,7 @@ static void bye(void) showcursor(); } -int main(int argc __attribute__((unused)), char const *argv[] __attribute__((unused))) +int main(void) { int i, percent, block = 0, num = 85; @@ -94,7 +94,7 @@ int main(int argc __attribute__((unused)), char const *argv[] __attribute__((unu /** * Local Variables: - * compile-command: "gcc -g -I../../include -o unittest -DUNITTEST progress.c; and ./unittest" + * compile-command: "make V=1 -f progress.mk" * version-control: t * indent-tabs-mode: t * c-file-style: "linux" diff --git a/progress.mk b/progress.mk new file mode 100644 index 0000000..f0e0332 --- /dev/null +++ b/progress.mk @@ -0,0 +1,4 @@ +OBJS = +TARGET = progress.test clean + +include rules.mk