From: TJ Date: Tue, 29 Mar 2016 16:24:41 +0000 (+0100) Subject: tests: use Make variable for "cp" X-Git-Tag: v1.3~8 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=firmware_header_edit.git;a=commitdiff_plain;h=b7cfce888880dde215e3ea2b92f06e9cb1280495 tests: use Make variable for "cp" Signed-off-by: TJ --- 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