Permalink
Browse files

windows tests

  • Loading branch information...
tcaduser committed May 1, 2016
1 parent 75bba87 commit 0db1f07dbf5528e0623d4397d84d43e940db92f0
Showing with 55 additions and 32 deletions.
  1. +6 −2 appveyor.yml
  2. +23 −2 scripts/setup_appveyor.sh
  3. +23 −25 scripts/setup_windows.sh
  4. +3 −3 testing/CMakeLists.txt
View
@@ -211,8 +211,12 @@ build_script:
# to run your custom scripts instead of automatic tests
test_script:
echo "tests not configured for windows"
#- ctest
- cd %APPVEYOR_BUILD_FOLDER%
- SET PATH=c:\Tcl\bin;c:\Miniconda-x64;%PATH%
#- bin\symdiff_tcl.bat %APPVEYOR_BUILD_FOLDER%\testing\arrhenius_tcl.tcl
#- bin\symdiff.bat %APPVEYOR_BUILD_FOLDER%\examples\arrhenius.py
- cd %APPVEYOR_BUILD_FOLDER%\win64
- ctest
# to disable automatic tests
#test: off
View
@@ -5,9 +5,30 @@
CMAKE=/cygdrive/C/Program\ Files\ \(x86\)/CMake/bin/cmake.exe
SYMDIFF_CONFIG="appveyor"
#mkdir -p win32
#/usr/bin/mkdir -p win32
#(cd win32; "$CMAKE" -G "Visual Studio 14" -DSYMDIFF_CONFIG=${SYMDIFF_CONFIG} ..)
mkdir -p win64
/usr/bin/mkdir -p win64
(cd win64; "$CMAKE" -G "Visual Studio 14 Win64" -DSYMDIFF_CONFIG=${SYMDIFF_CONFIG} -DTCLMAIN=ON ..)
libpath=`/usr/bin/cygpath -w $PWD/lib`
#echo $libpath
/usr/bin/mkdir -p bin
/usr/bin/cat << EOF > bin/symdiff.bat
@setlocal
@echo off
SET PYTHONPATH=$libpath;%PYTHONPATH%
python %*
EOF
/usr/bin/chmod +x bin/symdiff.bat
# TCLLIBPATH must always use forward slashes
libpath=`/usr/bin/cygpath -m $PWD/lib`
/usr/bin/cat << EOF > bin/symdiff_tcl.bat
@setlocal
@echo off
SET TCLLIBPATH="$libpath" %TCLLIBPATH%
tclsh %*
EOF
/usr/bin/chmod +x bin/symdiff_tcl.bat
View
@@ -5,32 +5,30 @@
CMAKE=/cygdrive/C/Program\ Files\ \(x86\)/CMake/bin/cmake.exe
SYMDIFF_CONFIG="win32"
mkdir -p win32
/usr/bin/mkdir -p win32
(cd win32; "$CMAKE" -G "Visual Studio 14" -DSYMDIFF_CONFIG=${SYMDIFF_CONFIG} ..)
mkdir -p win64
/usr/bin/mkdir -p win64
(cd win64; "$CMAKE" -G "Visual Studio 14 Win64" -DSYMDIFF_CONFIG=${SYMDIFF_CONFIG} ..)
#libpath=`cygpath -w $PWD/lib`
#PYTHON_BIN="C:\Python27\python.exe"
##echo $libpath
#mkdir -p bin
#cat << EOF > bin/symdiff.bat
#@setlocal
#@echo off
#SET PATH="$libpath";%PATH%
#SET PYTHONPATH="$libpath";%PYTHONPATH%
#${PYTHON_BIN} %*
#EOF
#chmod +x bin/symdiff.bat
##
##cat << EOF > bin/symdiff_tcl
###!/bin/bash
##set -e
##progname="\$0"
##curdir=\`dirname "\$progname"\`
##export TCLLIBPATH=\${curdir}/../lib
##${TCL_BIN} \$*
##EOF
##chmod +x bin/symdiff_tcl
##
libpath=`/usr/bin/cygpath -w $PWD/lib`
#echo $libpath
/usr/bin/mkdir -p bin
/usr/bin/cat << EOF > bin/symdiff.bat
@setlocal
@echo off
SET PYTHONPATH=$libpath;%PYTHONPATH%
python %*
EOF
/usr/bin/chmod +x bin/symdiff.bat
# TCLLIBPATH must always use forward slashes
libpath=`/usr/bin/cygpath -m $PWD/lib`
/usr/bin/cat << EOF > bin/symdiff_tcl.bat
@setlocal
@echo off
SET TCLLIBPATH="$libpath" %TCLLIBPATH%
tclsh %*
EOF
/usr/bin/chmod +x bin/symdiff_tcl.bat
View
@@ -7,11 +7,11 @@ IF (WIN32)
SET (DIFF C:/cygwin/bin/diff.exe)
SET (PERL C:/cygwin/bin/perl.exe)
SET (RUNDIFFTEST ${PERL} ${PROJECT_SOURCE_DIR}/testing/rundifftest.pl)
SET (GOLDENDIR ${PROJECT_SOURCE_DIR}/goldenresults/win32)
SET (GOLDENDIR ${PROJECT_SOURCE_DIR}/goldenresults/unix)
SET (RUNDIR ${PROJECT_SOURCE_DIR}/testing)
SET (OUTPUTDIR ${PROJECT_BINARY_DIR}/testing)
SET (TCLCOMP ${PROJECT_BINARY_DIR}/src/tclcomp/Release/symdiff_tcl)
SET (PYTHONCOMP ${PROJECT_BINARY_DIR}/src/tclcomp/Release/symdiff)
SET (TCLCOMP ${PROJECT_BIN_DIR}/symdiff_tcl.bat)
SET (PYTHONCOMP ${PROJECT_BIN_DIR}/symdiff.bat)
ELSE (WIN32)
SET (DIFF diff)
SET (RUNDIFFTEST ${PROJECT_SOURCE_DIR}/testing/rundifftest.pl)

0 comments on commit 0db1f07

Please sign in to comment.