[Mobies-commit] [commit] r3601 - in UDM/trunk: . tests tests/test_refports

endre at redhat1.isis.vanderbilt.edu endre at redhat1.isis.vanderbilt.edu
Wed Jan 5 01:21:36 CST 2011


Author: endre
Date: Wed Jan  5 01:21:35 2011
New Revision: 3601

Log:
Run reference ports test on Linux.

Added:
   UDM/trunk/tests/test_refports/Makefile.am
Modified:
   UDM/trunk/configure.ac
   UDM/trunk/tests/Makefile.am

Modified: UDM/trunk/configure.ac
==============================================================================
--- UDM/trunk/configure.ac	Wed Jan  5 01:17:34 2011	(r3600)
+++ UDM/trunk/configure.ac	Wed Jan  5 01:21:35 2011	(r3601)
@@ -144,6 +144,7 @@
 	tests/test_libs/Makefile
 	tests/test_ns/Makefile
 	tests/testOCL/Makefile
+	tests/test_refports/Makefile
 	tests/test_simpleudmops/Makefile
 	tests/testUdmCint/Makefile
 ])

Modified: UDM/trunk/tests/Makefile.am
==============================================================================
--- UDM/trunk/tests/Makefile.am	Wed Jan  5 01:17:34 2011	(r3600)
+++ UDM/trunk/tests/Makefile.am	Wed Jan  5 01:21:35 2011	(r3601)
@@ -2,5 +2,5 @@
 
 SUBDIRS = test_childrenorder test_cintstring test_domstringdn \
 	  test_generic test_generic2 test_libs test_ns test_crosslinks \
-	  testGetAdjacentObjects testOCL test_simpleudmops \
+	  testGetAdjacentObjects testOCL test_refports test_simpleudmops \
 	  testUdmCint

Added: UDM/trunk/tests/test_refports/Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ UDM/trunk/tests/test_refports/Makefile.am	Wed Jan  5 01:21:35 2011	(r3601)
@@ -0,0 +1,38 @@
+## Makefile.am -- Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS		= -I$(top_srcdir)/include $(CPPUNITINC)
+
+noinst_PROGRAMS		= test_refports
+TESTS			= $(noinst_PROGRAMS)
+
+BUILT_SOURCES		= RefPort.cpp RefPort.h RefPort.xsd
+test_refports_SOURCES	= main.cpp RefPortsTest.cpp RefPortsTest.h
+nodist_test_refports_SOURCES	= $(BUILT_SOURCES)
+test_refports_LDADD	= ../../lib/libudm.la $(CPPUNITLIBS)
+
+CLEANFILES		= $(BUILT_SOURCES) sources-stamp
+
+
+sources-stamp: RefPort_udm.xml ../../bin/Udm Makefile
+	@rm -f sources-temp
+	@touch sources-temp
+	../../bin/Udm $< -d ../../etc -T
+	@mv -f sources-temp $@
+
+$(BUILT_SOURCES): sources-stamp
+## Recover from the removal of $@
+	@if test -f $@; then :; else \
+		trap 'rm -rf sources-lock sources-stamp' 1 2 13 15; \
+		if mkdir sources-lock 2>/dev/null; then \
+## This code is being executed by the first process.
+			rm -f sources-stamp; \
+			$(MAKE) $(AM_MAKEFLAGS) sources-stamp; \
+			rmdir sources-lock; \
+		else \
+## This code is being executed by the follower processes.
+## Wait until the first process is done.
+			while test -d sources-lock; do sleep 1; done; \
+## Succeed if and only if the first process succeeded.
+			test -f sources-stamp; exit $$?; \
+		fi; \
+	fi


More information about the Mobies-commit mailing list