(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / test / TestProviders / LoadMOFs

File: [Pegasus] / pegasus / test / TestProviders / LoadMOFs / Makefile (download)
Revision: 1.1, Tue Feb 17 15:12:49 2004 UTC (20 years, 4 months ago) by s.soni
Branch: MAIN
CVS Tags: pegasus25BeforeLicenseUpdate, SLPPERFINST-root, SLPPERFINST-branch, RELEASE_2_4_FC_CANDIDATE_1, RELEASE_2_4_3, RELEASE_2_4_2, RELEASE_2_4_1-BETA3, RELEASE_2_4_1-BETA2, RELEASE_2_4_1-BETA1, RELEASE_2_4_1, RELEASE_2_4_0-RC3, RELEASE_2_4_0-RC2, RELEASE_2_4_0, RELEASE_2_4-root, RELEASE_2_4-branch, RELEASE_2_3_2-branch-freeze, PEP217_PRE_BRANCH, PEP217_POST_BRANCH, PEP217_BRANCH, PEP214ROOT, PEP214BRANCH, PEP214-root, PEP214-branch, PEP213_SIZE_OPTIMIZATIONS, PEP-214B-root, MONITOR_CONSOLIDATION_2_5_BRANCH, IBM_241_April1405, CQL_2_5_BRANCH, CHUNKTESTDONE_PEP140
MOF Files for all the test providers as explained in PEP#121

# Copyright (c) 2004 IBM Corporation.
# 
# Author: Subodh Soni (ssubodh@in.ibm.com)
#
# Makefile for loading for all the MOF files for the test enhancement providers
# present in this directory. It creates a new namespace called SampleProvider/
# inside $PEGASUS_HOME/repository.
# The implementation of sample providers and classes registered by this 
# Makefile are present in the following directories:
#
# 1. ExceptionsTest/
# 2. CIMOMSample/
# 3. LargeDataProvider/
# 4. MultithreadingTests/
# 5. TimingTests/
# 6. XMLParserGen/
#

ROOT = $(PEGASUS_ROOT)

include $(ROOT)/mak/config.mak
include $(ROOT)/mak/configschema.mak

# Loads the sample MOF into a separate namespace.
# The following variable determine the version of the Schema to be loaded into 
# the Sample Provider namespace. Update this to change the Schema version
#CIM_SCHEMA_DIR=///

SAMPLEPROVIDERNS=root/SampleProvider
SAMPLEPROVIDERNSDIRECTORY=$(REPOSITORY_ROOT)/root\#SampleProvider

# Load the sample MOF with the local compiler. Cleans the existing repository
# before reloading.

repository:
	@ echo +++++ Removing existing repository named $(SAMPLEPROVIDERNS)
	@$(RMREPOSITORY) $(SAMPLEPROVIDERNSDIRECTORY)
	@ echo +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmofl -R$(REPOSITORY_DIR) -I$(CIM_SCHEMA_DIR) -n$(SAMPLEPROVIDERNS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
	@ echo +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmofl -R$(REPOSITORY_DIR) -I$(CIM_SCHEMA_DIR) -n$(SAMPLEPROVIDERNS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof

	@ echo +++++ Loading All Sample Providers class definitions into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmofl -R$(REPOSITORY_DIR) -n$(SAMPLEPROVIDERNS)	CIMOMSampleProvider.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(SAMPLEPROVIDERNS) LargeDataProvider.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(SAMPLEPROVIDERNS) MultithreadingSampleProvider.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(SAMPLEPROVIDERNS) ExceptionsTest.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(SAMPLEPROVIDERNS) TimingProvider.mof

	@ echo +++++ Registering All Sample Providers ....
	@ cimmofl -R$(REPOSITORY_DIR) -n$(INTEROPNS) CIMOMSampleProviderR.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(INTEROPNS) LargeDataProviderR.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(INTEROPNS) MultithreadingSampleProviderR.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(INTEROPNS) ExceptionsTestR.mof
	@ cimmofl -R$(REPOSITORY_DIR) -n$(INTEROPNS) TimingProviderR.mof

# Load the sample mofe through the Client interface compiler but do not
# clean out the existing version.
repositoryServer:
	@ echo +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmof -I$(CIM_SCHEMA_DIR) -n$(SAMPLEPROVIDERNS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
	@ echo +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmof -I$(CIM_SCHEMA_DIR) -n$(SAMPLEPROVIDERNS) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
	@ echo +++++ Loading All the Sample Providers class definitions into $(SAMPLEPROVIDERNS) namespace ...
	@ cimmof -n$(SAMPLEPROVIDERNS) CIMOMSampleProvider.mof
	@ cimmof -n$(SAMPLEPROVIDERNS) LargeDataProvider.mof
	@ cimmof -n$(SAMPLEPROVIDERNS) MultithreadingSampleProvider.mof
	@ cimmof -n$(SAMPLEPROVIDERNS) ExceptionsTest.mof
	@ cimmof -n$(SAMPLEPROVIDERNS) TimingProvider.mof

	@ echo +++++ Registering All Sample Providers Schema Providers  ...
	@ cimmof -n$(INTEROPNS)	CIMOMSampleProviderR.mof
	@ cimmof -n$(INTEROPNS) LargeDataProviderR.mof
	@ cimmof -n$(INTEROPNS) MultithreadingSampleProviderR.mof
	@ cimmof -n$(INTEROPNS) ExceptionsTestR.mof
	@ cimmof -n$(INTEROPNS) TimingProviderR.mof

removerepository:
	@ echo +++++ Removing existing repository named $(SAMPLEPROVIDERNS)
	@ $(RMREPOSITORY) $(SAMPLEPROVIDERNSDIRECTORY)

unregister:
	$(MAKE) -i unregisterproviders

unregisterproviders:
	cimprovider -r -m ExceptionsTestModule
	cimprovider -r -m LargeDataProviderModule
	cimprovider -r -m CIMOMSampleProviderModule
	cimprovider -r -m MultithreadingSampleProviderModule
	cimprovider -r -m TimingProviderModule

depend:

sub:

misc:

tests:

messages:

poststarttests:

general:

clean:

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2