aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-tests.bat
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-01-22 12:43:10 +0000
committerJustus Winter <[email protected]>2016-04-21 13:36:35 +0000
commitd962d64b29b51e404abebd8386375e6b3b306edb (patch)
treebe06e1479ce06e00cf4729fe7febfd21377eba43 /tests/run-tests.bat
parenttests/openpgp: Reimplement tests in Scheme. (diff)
downloadgnupg-justus/scm-9.tar.gz
gnupg-justus/scm-9.zip
tests: Add script to build a CD with the test environment.justus/scm-9
* tests/make-windows-cd.sh: New file. * tests/run-tests.bat: Likewise. -- This makes it easy to deploy GnuPG with the test suite to a virtual machine for testing. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/run-tests.bat25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/run-tests.bat b/tests/run-tests.bat
new file mode 100644
index 000000000..ceb2fabab
--- /dev/null
+++ b/tests/run-tests.bat
@@ -0,0 +1,25 @@
+@echo off
+cd /d d:\
+
+set TARGET=gnupg-test
+
+set GNUPGHOME=c:/%TARGET%/tests/openpgp
+c:/%TARGET%/gpg-connect-agent.exe killagent /bye
+rem is there a nicer way to sleep?
+ping -n 1 localhost > nul
+set GNUPGHOME=
+
+rmdir /q /s c:\%TARGET%
+mkdir c:\%TARGET%
+xcopy /q /s d:\gnupg c:\%TARGET%
+
+set GPGSCM_PATH=c:/%TARGET%/tests/gpgscm;c:/%TARGET%/tests/openpgp
+set EXEEXT=.exe
+set srcdir=/%TARGET%/tests/openpgp
+set BIN_PREFIX=c:/%TARGET%
+
+cd /d c:\%TARGET%
+c:\%TARGET%\gpgscm.exe --verbose tests/gpgscm/t-child.scm
+
+cd /d c:\%TARGET%\tests\openpgp
+c:\%TARGET%\gpgscm.exe run-tests.scm