tests: use Make variable for "cp"
authorTJ <hacker@iam.tj>
Tue, 29 Mar 2016 16:24:41 +0000 (17:24 +0100)
committerTJ <hacker@iam.tj>
Tue, 29 Mar 2016 16:24:41 +0000 (17:24 +0100)
Signed-off-by: TJ <hacker@iam.tj>
testsuite/Makefile

index 073991e..fff51c9 100644 (file)
@@ -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