Browse Source

--- Merging r14175 into '.':
U tests/Makefile.fpc
U tests/Makefile

# revisions: 14175
------------------------------------------------------------------------
r14175 | pierre | 2009-11-14 18:22:27 +0100 (Sat, 14 Nov 2009) | 1 line
Changed paths:
M /trunk/tests/Makefile
M /trunk/tests/Makefile.fpc

* set DB_USE_SSH allows to force ssh instead of putty
------------------------------------------------------------------------

git-svn-id: branches/fixes_2_4@14706 -

marco 15 years ago
parent
commit
4139c7dfac
2 changed files with 16 additions and 2 deletions
  1. 6 1
      tests/Makefile
  2. 10 1
      tests/Makefile.fpc

+ 6 - 1
tests/Makefile

@@ -1657,8 +1657,13 @@ else
 	cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
 endif
 endif
-uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
+ifndef DB_USE_SSH
 ifdef inWinDOS
+UsePutty=1
+endif
+endif
+uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
+ifdef UsePutty
 	pscp -load "[email protected]" $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part $(SSH_EXTRA)
 	plink -load "[email protected]" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
 else

+ 10 - 1
tests/Makefile.fpc

@@ -417,8 +417,17 @@ else
 endif
 endif
 
-uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
+
+# Use Putty, unless we set DB_USE_SSH to force ssh usage
+# Useful for cygwin
+ifndef DB_USE_SSH
 ifdef inWinDOS
+UsePutty=1
+endif
+endif
+
+uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
+ifdef UsePutty
         pscp -load "[email protected]" $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part $(SSH_EXTRA)
         plink -load "[email protected]" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
 else