scroll

scrollbackbuffer program for st
git clone git://git.suckless.org//gitrepos
Log | Files | Refs

commit 68aff5cc7ed9a7581b2075d1469147ddbff35f10
parent 21a7825390e81a0a49ab4f9c2299fb7ea7462410
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Wed,  5 Feb 2020 17:42:59 +0100

add test for return code passthrough

Diffstat:
MMakefile | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -2,8 +2,13 @@ CFLAGS += -std=c99 -pedantic -Wall -Wextra LDLIBS += -lutil CPPFLAGS += -D_DEFAULT_SOURCE -.PHONY: all clean +.PHONY: all clean test all: scroll clean: rm -f scroll + +test: scroll + # return code passthrough of childs + ./scroll /usr/bin/true && if [ $$? -ne 0 ]; then exit 1; fi + ./scroll /usr/bin/false || if [ $$? -ne 1 ]; then exit 1; fi