From 40d88ce9057babd28074afe803086bf415527dca Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Thu, 19 Feb 2009 14:35:11 +0000
Subject: * Reverted the revert, as it seems the problem was the 1.0.* in the
separate projects.
---
Prebuild/tests/Makefile | 24 +++++++++++++++++++
Prebuild/tests/README.txt | 5 ++++
Prebuild/tests/include-001.expected | 46 ++++++++++++++++++++++++++++++++++++
Prebuild/tests/include-001.include | 33 ++++++++++++++++++++++++++
Prebuild/tests/include-001.prebuild | 22 +++++++++++++++++
Prebuild/tests/include-002-2.include | 8 +++++++
Prebuild/tests/include-002.expected | 26 ++++++++++++++++++++
Prebuild/tests/include-002.include | 14 +++++++++++
Prebuild/tests/include-002.prebuild | 7 ++++++
9 files changed, 185 insertions(+)
create mode 100644 Prebuild/tests/Makefile
create mode 100644 Prebuild/tests/README.txt
create mode 100644 Prebuild/tests/include-001.expected
create mode 100644 Prebuild/tests/include-001.include
create mode 100644 Prebuild/tests/include-001.prebuild
create mode 100644 Prebuild/tests/include-002-2.include
create mode 100644 Prebuild/tests/include-002.expected
create mode 100644 Prebuild/tests/include-002.include
create mode 100644 Prebuild/tests/include-002.prebuild
(limited to 'Prebuild/tests')
diff --git a/Prebuild/tests/Makefile b/Prebuild/tests/Makefile
new file mode 100644
index 0000000..4a8ddf4
--- /dev/null
+++ b/Prebuild/tests/Makefile
@@ -0,0 +1,24 @@
+#
+# Executable
+#
+
+# Executables
+PREBUILD = mono ../src/bin/Release/prebuild.exe /target makefile
+
+# Files
+PREBUILDS = $(wildcard *.prebuild)
+RESULTS = $(PREBUILDS:prebuild=results)
+TESTS = $(PREBUILDS:prebuild=test)
+
+all: $(TESTS)
+
+clean:
+ rm -f *~ *.log
+ rm -f $(RESULTS)
+
+%.test: %.prebuild
+ $(PREBUILD) /log $*.log /file $*.prebuild /ppi $*.results >& /dev/null
+ if ! cmp $*.expected $*.results; then \
+ echo $*.prebuild failed; \
+ false; \
+ fi
diff --git a/Prebuild/tests/README.txt b/Prebuild/tests/README.txt
new file mode 100644
index 0000000..2c2de3b
--- /dev/null
+++ b/Prebuild/tests/README.txt
@@ -0,0 +1,5 @@
+There are some tests that are run via a Makfile in this
+directory. They haven't been included in any form of unit tests, but
+they are there to help test the functionality in some what. Simply
+build prebuild (so there is a src/bin/Release/prebuild.exe) and type
+`make` in this directory. Everything should pass without errors.
diff --git a/Prebuild/tests/include-001.expected b/Prebuild/tests/include-001.expected
new file mode 100644
index 0000000..26374b5
--- /dev/null
+++ b/Prebuild/tests/include-001.expected
@@ -0,0 +1,46 @@
+
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+
+
+
+
+ TRACE
+ bin/Release
+ true
+ false
+
+
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+ Prebuild.snk
+ 1595
+
+
+
+
+ TRACE
+ bin/Release
+ true
+ false
+ Prebuild.snk
+ 1595
+
+
+
+
+
+
+
+
+
diff --git a/Prebuild/tests/include-001.include b/Prebuild/tests/include-001.include
new file mode 100644
index 0000000..7f75962
--- /dev/null
+++ b/Prebuild/tests/include-001.include
@@ -0,0 +1,33 @@
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+ Prebuild.snk
+ 1595
+
+
+
+
+ TRACE
+ bin/Release
+ true
+ false
+ Prebuild.snk
+ 1595
+
+
+
+
+
+
+
diff --git a/Prebuild/tests/include-001.prebuild b/Prebuild/tests/include-001.prebuild
new file mode 100644
index 0000000..8047008
--- /dev/null
+++ b/Prebuild/tests/include-001.prebuild
@@ -0,0 +1,22 @@
+
+
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+
+
+
+
+ TRACE
+ bin/Release
+ true
+ false
+
+
+
+
+
diff --git a/Prebuild/tests/include-002-2.include b/Prebuild/tests/include-002-2.include
new file mode 100644
index 0000000..661b7f3
--- /dev/null
+++ b/Prebuild/tests/include-002-2.include
@@ -0,0 +1,8 @@
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+
+
diff --git a/Prebuild/tests/include-002.expected b/Prebuild/tests/include-002.expected
new file mode 100644
index 0000000..9849658
--- /dev/null
+++ b/Prebuild/tests/include-002.expected
@@ -0,0 +1,26 @@
+
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+
+
+
+
+
+ DEBUG;TRACE
+ false
+ bin/Debug
+ true
+
+
+
+
+
+
+
+
+
diff --git a/Prebuild/tests/include-002.include b/Prebuild/tests/include-002.include
new file mode 100644
index 0000000..64f4058
--- /dev/null
+++ b/Prebuild/tests/include-002.include
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
diff --git a/Prebuild/tests/include-002.prebuild b/Prebuild/tests/include-002.prebuild
new file mode 100644
index 0000000..9e85f20
--- /dev/null
+++ b/Prebuild/tests/include-002.prebuild
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
--
cgit v1.1