From d8be4085b58428799fc1b61f78f8fd092b67355c Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 10 Jun 2009 17:53:11 -0400 Subject: [PATCH] starting to build this thing --- .gitignore | 2 ++ Makefile | 6 ++++++ classes/XMLReader.hx | 5 +++++ test.hxml | 4 ++++ test/HubbleSiteDailyImageChumbyTestRunner.hx | 7 +++++++ test/RemoteXMLReaderTest.hx | 11 +++++++++++ 6 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 classes/XMLReader.hx create mode 100644 test.hxml create mode 100644 test/HubbleSiteDailyImageChumbyTestRunner.hx create mode 100644 test/RemoteXMLReaderTest.hx diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f63e7c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.n diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8a6b873 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +test: force_look + haxe test.hxml && neko HubbleSiteDailyImageChumbyTestRunner.n + rm HubbleSiteDailyImageChumbyTestRunner.n + +force_look: + true \ No newline at end of file diff --git a/classes/XMLReader.hx b/classes/XMLReader.hx new file mode 100644 index 0000000..8ffc4ee --- /dev/null +++ b/classes/XMLReader.hx @@ -0,0 +1,5 @@ +class XMLReader { + public function new() { + + } +} \ No newline at end of file diff --git a/test.hxml b/test.hxml new file mode 100644 index 0000000..4a2e51f --- /dev/null +++ b/test.hxml @@ -0,0 +1,4 @@ +-main HubbleSiteDailyImageChumbyTestRunner +-neko HubbleSiteDailyImageChumbyTestRunner.n +-cp classes +-cp test \ No newline at end of file diff --git a/test/HubbleSiteDailyImageChumbyTestRunner.hx b/test/HubbleSiteDailyImageChumbyTestRunner.hx new file mode 100644 index 0000000..01a47b3 --- /dev/null +++ b/test/HubbleSiteDailyImageChumbyTestRunner.hx @@ -0,0 +1,7 @@ +class HubbleSiteDailyImageChumbyTestRunner { + static function main() { + var r = new haxe.unit.TestRunner(); + r.add(new RemoteXMLReaderTest()); + r.run(); + } +} diff --git a/test/RemoteXMLReaderTest.hx b/test/RemoteXMLReaderTest.hx new file mode 100644 index 0000000..76c8c36 --- /dev/null +++ b/test/RemoteXMLReaderTest.hx @@ -0,0 +1,11 @@ +class RemoteXMLReaderTest extends haxe.unit.TestCase { + private var xr : XMLReader; + + override function setup() { + this.xr = new XMLReader(); + } + + function testParseXML() { + assertTrue(true); + } +} \ No newline at end of file