From b7cfce888880dde215e3ea2b92f06e9cb1280495 Mon Sep 17 00:00:00 2001 From: TJ Date: Tue, 29 Mar 2016 17:24:41 +0100 Subject: [PATCH] tests: use Make variable for "cp" Signed-off-by: TJ --- testsuite/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/Makefile b/testsuite/Makefile index 073991e..fff51c9 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -10,6 +10,7 @@ OPTS = -t -q EXE := ../$(PROG) TEST_DIR := $(shell mktemp --directory ) +CP := cp SHA := sha1sum SHASUM := $(shell which $(SHA) ) HDR_ORIG := header_test.bin @@ -37,7 +38,7 @@ checksum: echo $(CHK_HDR_ORIG) | $(SHASUM) --check --quiet hdr_duplicate: - cp $(HDR_ORIG) $(HDR_TEST) + $(CP) $(HDR_ORIG) $(HDR_TEST) test_nochange: exe tests_dir hdr_duplicate checksum $(EXE) $(OPTS) $(HDR_TEST) 2>/dev/null -- 2.17.1