Nicolas Cannasse %!s(int64=14) %!d(string=hai) anos
pai
achega
5797d039f2
Modificáronse 3 ficheiros con 84 adicións e 168 borrados
  1. 19 67
      tests/unit/unit.hxml
  2. 0 101
      tests/unit/unit.hxp
  3. 65 0
      tests/unit/unit.hxproj

+ 19 - 67
tests/unit/unit.hxml

@@ -1,111 +1,63 @@
-# Flash8
+-cp ..
 -swf unit8.swf
+-swf-header 300:300:30:FFFFFF
 -main unit.Test
--debug
--cp ..
-
--resource res1.txt
-
+-resource res1.txt
 -resource res2.bin
-
 -D noopt
-
---next
-# Flash9
+--next
 -swf9 unit9.swf
 -main unit.Test
 -debug
--cp ..
-
--resource res1.txt
-
+-cp ..
+-resource res1.txt
 -resource res2.bin
-
 -D noopt
-
-
-#--next
-
-#-as3 as3
-
-#-cp ..
-
-#-main unit.Test
-
-#-D noopt
-
-#-cmd mxmlc -default-size 800 600 -debug -output unit9_as3.swf as3/__main__.as
-
---next
-# JS
+--next
+-as3 as3
+-cp ..
+-main unit.Test
+-D noopt
+--next
 -js unit.js
 unit.Test
--cp ..
-
+-cp ..
 -resource res1.txt
-
--resource res2.bin
-
+-resource res2.bin
 -D noopt
-
---next
-# Neko
+--next
 -neko unit.n
 -main unit.Test
 -cp ..
-
 -resource res1.txt
-
 -resource res2.bin
-
 -D noopt
 --next
 -cp ..
-
 -resource res1.txt
-
 -resource res2.bin
-
 -D noopt
 -main unit.Test
 --interp
-
---next
-# RemotingServer
+--next
 -neko remoting.n
 -main unit.RemotingServer
 -cp ..
-
---next
-# PHP
+--next
 -php php
 -main unit.Test
 -cp ..
-
 -resource res1.txt
-
 -resource res2.bin
-
 -D noopt
-
-
-
---next
-# CPP
+--next
 -neko runcpp.n
 -main RunCpp
-
 --next
-
 -cpp cpp
-
 -debug
--main unit.Test
-
+-main unit.Test
 -cp ..
-
 -resource res1.txt
-
 -resource res2.bin
-
 -D noopt

+ 0 - 101
tests/unit/unit.hxp

@@ -1,101 +0,0 @@
-<haxe selected="0">
-  <output name="Flash8" mode="swf" out="unit8.swf" class="unit.Test" lib="" cmd="http://dev.unit-tests/unit.html" main="True" debug="True">-cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt</output>
-  <output name="Flash9" mode="swf9" out="unit9.swf" class="unit.Test" lib="" cmd="unit9_as3.swf" main="True" debug="True">-cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt
-
-
-#--next
-
-#-as3 as3
-
-#-cp ..
-
-#-main unit.Test
-
-#-D noopt
-
-#-cmd mxmlc -default-size 800 600 -debug -output unit9_as3.swf as3/__main__.as</output>
-  <output name="JS" mode="js" out="unit.js" class="unit.Test" lib="" cmd="" main="False" debug="False">-cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt</output>
-  <output name="Neko" mode="neko" out="unit.n" class="unit.Test" lib="" cmd="" main="True" debug="False">-cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt
---next
--cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt
--main unit.Test
---interp</output>
-  <output name="RemotingServer" mode="neko" out="remoting.n" class="unit.RemotingServer" lib="" cmd="" main="True" debug="False">-cp ..</output>
-  <output name="PHP" mode="php" out="php" class="unit.Test" lib="" cmd="" main="True" debug="False">-cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt
-
-</output>
-  <output name="CPP" mode="neko" out="runcpp.n" class="RunCpp" lib="" cmd="" main="True" debug="False">
---next
-
--cpp cpp
-
--debug
--main unit.Test
-
--cp ..
-
--resource res1.txt
-
--resource res2.bin
-
--D noopt</output>
-  <files path="/">
-    <file path="MyClass.hx" />
-    <file path="MyEnum.hx" />
-    <file path="MySubClass.hx" />
-    <file path="RemotingApi.hx" />
-    <file path="RemotingServer.hx" />
-    <file path="RunCpp.hx" />
-    <file path="Test.hx" />
-    <file path="TestBasetypes.hx" />
-    <file path="TestBytes.hx" />
-    <file path="TestEReg.hx" />
-    <file path="TestInt32.hx" />
-    <file path="TestIO.hx" />
-    <file path="TestLocals.hx" />
-    <file path="TestMeta.hx" />
-    <file path="TestMisc.hx" />
-    <file path="TestReflect.hx" />
-    <file path="TestRemoting.hx" />
-    <file path="TestResource.hx" />
-    <file path="TestSerialize.hx" />
-    <file path="TestType.hx" />
-    <file path="TestXML.hx" />
-  </files>
-</haxe>

+ 65 - 0
tests/unit/unit.hxproj

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <!-- Output SWF options -->
+  <output>
+    <movie disabled="False" />
+    <movie input="" />
+    <movie path="unit8.swf" />
+    <movie fps="30" />
+    <movie width="300" />
+    <movie height="300" />
+    <movie version="8" />
+    <movie background="#FFFFFF" />
+  </output>
+  <!-- Other classes to be compiled into your SWF -->
+  <classpaths>
+    <class path=".." />
+  </classpaths>
+  <!-- Build options -->
+  <build>
+    <option directives="" />
+    <option flashStrict="False" />
+    <option mainClass="unit.Test" />
+    <option enabledebug="False" />
+    <option additional="-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;&#xA;# Flash9&#xA;--next&#xA;-swf9 unit9.swf&#xA;-main unit.Test&#xA;-debug&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;&#xA;# AS3&#xA;--next&#xA;-as3 as3&#xA;-cp ..&#xA;-main unit.Test&#xA;-D noopt&#xA;#-cmd mxmlc -default-size 800 600 -debug -output unit9_as3.swf as3/__main__.as&#xA;&#xA;# JS&#xA;--next&#xA;-js unit.js&#xA;unit.Test&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;&#xA;# Neko&#xA;--next&#xA;-neko unit.n&#xA;-main unit.Test&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;&#xA;# MACROS&#xA;--next&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;-main unit.Test&#xA;--interp&#xA;&#xA;# RemotingServer&#xA;--next&#xA;-neko remoting.n&#xA;-main unit.RemotingServer&#xA;-cp ..&#xA;&#xA;# PHP&#xA;--next&#xA;-php php&#xA;-main unit.Test&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt&#xA;&#xA;# CPP&#xA;--next&#xA;-neko runcpp.n&#xA;-main RunCpp&#xA;--next&#xA;-cpp cpp&#xA;-debug&#xA;-main unit.Test&#xA;-cp ..&#xA;-resource res1.txt&#xA;-resource res2.bin&#xA;-D noopt" />
+  </build>
+  <!-- haxelib libraries -->
+  <haxelib>
+    <!-- example: <library name="..." /> -->
+  </haxelib>
+  <!-- Class files to compile (other referenced classes will automatically be included) -->
+  <compileTargets>
+    <!-- example: <compile path="..." /> -->
+  </compileTargets>
+  <!-- Assets to embed into the output SWF -->
+  <library>
+    <!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
+  </library>
+  <!-- Paths to exclude from the Project Explorer tree -->
+  <hiddenPaths>
+    <hidden path="as3" />
+    <hidden path="cpp" />
+    <hidden path="php" />
+    <hidden path="remoting.n" />
+    <hidden path="res1.txt" />
+    <hidden path="res2.bin" />
+    <hidden path="runcpp.n" />
+    <hidden path="unit.html" />
+    <hidden path="unit.hxml" />
+    <hidden path="unit.js" />
+    <hidden path="unit.n" />
+    <hidden path="unit8.swf" />
+    <hidden path="unit9.swf" />
+    <hidden path="unit9_as3.swf" />
+  </hiddenPaths>
+  <!-- Executed before build -->
+  <preBuildCommand />
+  <!-- Executed after build -->
+  <postBuildCommand alwaysRun="False" />
+  <!-- Other project options -->
+  <options>
+    <option showHiddenPaths="False" />
+    <option testMovie="OpenDocument" />
+    <option testMovieCommand="http://dev.unit-tests/unit.html" />
+  </options>
+</project>