]> granicus.if.org Git - zziplib/commitdiff
emulating 'cp -s' behaviour #31
authorGuido Draheim <guidod@gmx.de>
Thu, 1 Mar 2018 22:30:49 +0000 (23:30 +0100)
committerGuido Draheim <guidod@gmx.de>
Thu, 1 Mar 2018 22:30:49 +0000 (23:30 +0100)
test/Makefile.am
test/Makefile.in
test/test.zip

index fc4ae2ed279f439ae5da2f059023623765275054..ac29b64221867e8801bd77144b9ab081bcf4858e 100644 (file)
@@ -45,11 +45,11 @@ check-local: check-readme $(sfxtests) $(newtests)
 
 check-tests: tests
 tests:
-       @ test -f zziptests.py || cp -s -v $(srcdir)/zziptests.py .
-       python zziptests.py     --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
+       @ test -f zziptests.py || ln -s -v $(srcdir)/zziptests.py . || cp -v $(srcdir)/zziptests.py .
+       $(PYTHON) zziptests.py     --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
 test_%:
-       @ test -f zziptests.py || cp -s -v $(srcdir)/zziptests.py .
-       python zziptests.py $@ -vvvv    --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
+       @ test -f zziptests.py || ln -s -v $(srcdir)/zziptests.py . || cp -v $(srcdir)/zziptests.py .
+       $(PYTHON) zziptests.py $@ -vvvv    --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
 
 check-readme : $(zzcat)  test.zip
        @ test -f test.zip || $(MAKE) test0.zip 
index 984db8eb1bf10ca1b8931a3d91ac36d65091e4c2..af2c8f6709033967e690d1516131c2d971ade3d9 100644 (file)
@@ -680,11 +680,11 @@ check-local: check-readme $(sfxtests) $(newtests)
 
 check-tests: tests
 tests:
-       @ test -f zziptests.py || cp -s -v $(srcdir)/zziptests.py .
-       python zziptests.py     --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
+       @ test -f zziptests.py || ln -s -v $(srcdir)/zziptests.py . || cp -v $(srcdir)/zziptests.py .
+       $(PYTHON) zziptests.py     --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
 test_%:
-       @ test -f zziptests.py || cp -s -v $(srcdir)/zziptests.py .
-       python zziptests.py $@ -vvvv    --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
+       @ test -f zziptests.py || ln -s -v $(srcdir)/zziptests.py . || cp -v $(srcdir)/zziptests.py .
+       $(PYTHON) zziptests.py $@ -vvvv    --exeext "$(EXEEXT)" --topsrcdir "$(top_srcdir)"
 
 check-readme : $(zzcat)  test.zip
        @ test -f test.zip || $(MAKE) test0.zip 
index ffa4e6b5fecdb89058204fe523ed9967c83a4986..7a505805ddbdc59e7430462dbe26f6b2f71d4635 100644 (file)
Binary files a/test/test.zip and b/test/test.zip differ