summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2009-12-17 13:34:55 +0000
committerdeva <deva>2009-12-17 13:34:55 +0000
commit822b054ab20791370fc857e74fc81e4c05031285 (patch)
treed5e4f6d163777dcb38ff0a56b15847dda60e8835
parentf74d220ba0723b38faeef5aeca39cd627dc3340d (diff)
Script rearrangement + autogen hack (very ugly) to fix test bootstrap problem.
-rwxr-xr-xserver/autogen.sh2
-rw-r--r--server/src/Makefile.am16
-rw-r--r--tools/Makefile.am.test14
3 files changed, 17 insertions, 15 deletions
diff --git a/server/autogen.sh b/server/autogen.sh
index 45ef969..8294559 100755
--- a/server/autogen.sh
+++ b/server/autogen.sh
@@ -62,7 +62,7 @@ aclocalinclude="$ACLOCAL_FLAGS"; \
autoheader; \
echo "done.") && \
(echo $_echo_n " + Running automake: $_echo_c"; \
- automake --gnu --add-missing --copy; \
+ touch src/tests.make; automake --gnu --add-missing --copy; rm src/tests.make;\
echo "done.") && \
(echo $_echo_n " + Running autoconf: $_echo_c"; \
autoconf; \
diff --git a/server/src/Makefile.am b/server/src/Makefile.am
index d3745f7..8f24e07 100644
--- a/server/src/Makefile.am
+++ b/server/src/Makefile.am
@@ -117,18 +117,6 @@ EXTRA_DIST = \
# Test Section #
################
-tests.make: ${pracrod_SOURCES} ${EXTRA_DIST}
- ../../tools/testlist > tests.make
- @touch Makefile.am
+include $(top_srcdir)/../tools/Makefile.am.test
-include tests.make
-
-test: tests.make $(TESTFILES)
- @echo "All tests done."
-
-test_clean:
- rm -f $(TESTFILES) $(TESTLOGS)
-
-TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done`
-
-CLEANFILES = $(TESTFILES) $(TESTLOGS) tests.make *~
+include Makefile.am.test \ No newline at end of file
diff --git a/tools/Makefile.am.test b/tools/Makefile.am.test
new file mode 100644
index 0000000..f38f561
--- /dev/null
+++ b/tools/Makefile.am.test
@@ -0,0 +1,14 @@
+tests.make: ${pracrod_SOURCES} ${EXTRA_DIST}
+ $(top_srcdir)/../tools/testlist > Makefile.am.test
+ @touch Makefile.am
+
+test: tests.make $(TESTFILES)
+ @echo "All tests done."
+
+test_clean:
+ rm -f $(TESTFILES) $(TESTLOGS)
+
+TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done`
+
+CLEANFILES = $(TESTFILES) $(TESTLOGS) tests.make *~
+