From c832963ebe7939393f1108d31aa569723190177c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Jul 2014 09:39:06 +0200 Subject: Add Windows test scripts (VC and MinGW) --- test/windows/all | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 test/windows/all (limited to 'test/windows/all') diff --git a/test/windows/all b/test/windows/all new file mode 100755 index 0000000..31d5773 --- /dev/null +++ b/test/windows/all @@ -0,0 +1,53 @@ +#! /usr/bin/env bash + +trap 'exit 1' ERR + +function error () +{ + echo "$*" 1>&2 +} + +function usage () +{ + error "usage: $0 vc-version conf plat [action]" + error " valid configurations are: {Debug,Release}|all" + error " valid platforms are: {Win32,x64}|all" + error " valid actions are: /Build (default), /Clean, and /Rebuild" +} + +if [ "$1" = "" ]; then + error vc version expected + usage + exit 1 +fi + +if [ "$2" = "" ]; then + error configuration expected + usage + exit 1 +fi + +if [ "$3" = "" ]; then + error platform expected + usage + exit 1 +fi + +action=$4 +if [ "$action" == "" ]; then + action=/Build +fi + +cd xsd-i686-windows + +cmd.exe /C ..\\setenv.bat "$1" ..\\build.bat "$1" "$2" "$3" "$action" + +cd examples/cxx/tree +cmd.exe /C ..\\..\\..\\..\\setenv.bat "$1" test.bat +cd ../../.. + +cd examples/cxx/parser +cmd.exe /C ..\\..\\..\\..\\setenv.bat "$1" test.bat +cd ../../.. + +cd .. -- cgit v1.1