]> granicus.if.org Git - graphviz/commitdiff
Batch file for regression tests for Windows added.
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 10 Oct 2016 22:01:22 +0000 (00:01 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 27 Oct 2016 22:56:32 +0000 (00:56 +0200)
This batch file will execute the new regression tests, for now this only
inclues `shapes.py`. Also added the execution of this file to the Appveyor
configuration.

appveyor.yml
tests/regression_tests/regression_tests.bat [new file with mode: 0644]

index 7873ccaa6983cf0d65e31f3be1b8fed14ab3e426..0053468165c71c4a10f3ae9323c10b1aba6eaee2 100644 (file)
@@ -69,6 +69,12 @@ build_script:
           rm Release\Graphviz\bin\*.ipdb;
           rm Release\Graphviz\bin\*.ilk;
         }
+
+        # Append build destination to the PATH, configure dot and execute regression tests 
+        $env:Path += ";" + $env:APPVEYOR_BUILD_FOLDER + "\" + $env:configuration + "\Graphviz\bin";
+        dot -c;
+        cd tests\regression_tests;
+        ./regression_tests.bat; 
       }
       
       if ($env:compiler -eq "msys2" -Or $env:compiler -eq "cygwin") {
diff --git a/tests/regression_tests/regression_tests.bat b/tests/regression_tests/regression_tests.bat
new file mode 100644 (file)
index 0000000..c762b17
--- /dev/null
@@ -0,0 +1,4 @@
+@ECHO OFF
+
+cd shapes
+python shapes.py