test/glite-wms-jdl-common.h

Go to the documentation of this file.
00001 /*
00002 Copyright (c) Members of the EGEE Collaboration. 2004.
00003 See http://www.eu-egee.org/partners/ for details on the
00004 copyright holders.
00005 
00006 Licensed under the Apache License, Version 2.0 (the "License");
00007 you may not use this file except in compliance with the License.
00008 You may obtain a copy of the License at
00009 
00010     http://www.apache.org/licenses/LICENSE-2.0
00011 
00012 Unless required by applicable law or agreed to in writing, software
00013 distributed under the License is distributed on an "AS IS" BASIS,
00014 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
00015 either express or implied.
00016 See the License for the specific language governing permissions and
00017 limitations under the License.
00018 */
00019 
00020 // JDL:
00021 #include "glite/jdl/ExpDagAd.h"
00022 #include "glite/jdl/JobAd.h"
00023 #include "glite/jdl/NodeAd.h"
00024 #include "glite/jdl/collectionad.h"
00025 #include "glite/jdl/extractfiles.h"
00026 
00027 // CPP UNIT:
00028 #include "cppunit/TestRunner.h"
00029 #include "cppunit/TestResult.h"
00030 #include "cppunit/TestResultCollector.h"
00031 #include "cppunit/TextOutputter.h"
00032 #include "cppunit/extensions/HelperMacros.h"
00033 #include "cppunit/extensions/HelperMacros.h"
00034 //BOOST
00035 #include <boost/lexical_cast.hpp>
00036 
00037 #define DEF_REQUIREMENTS "other.GlueCEPolicyMaxCPUTime >= 6"
00038 #define DEF_RANK "other.GlueCEStateFreeCPUs"
00039 #define DEF_EXECUTABLE "/bin/date"
00040 #define DEF_VO "egee"
00041 #define DEF_ARGUMENTS "--some-arg"
00042 
00043 #define DEF_NODES_NUMBER 3
00044 
00045 
00046 
00047 void setJdlFile(const std::string& jdlFile);
00048 std::string getJdlFile();
00049 
00050 void setArg(const std::string& arg);
00051 std::string getArg();
00052 
00053 
00054 // debug mode
00055 void setWCDM(bool value);
00056 std::string sep();
00057 void title(const std::string &title);
00058 void toBCopiedFileList(const std::string &wmp_uri, const std::string &isb_uri,
00059         const std::vector <std::string> &paths, std::vector <std::pair<std::string, std::string> > to_bcopied);
00060 std::string printExtracted(glite::jdl::ExtractedAd* extractedAd, unsigned int offs=0);
00061 std::string printWarnings(std::vector<std::string>);
00062 // void inherit( Ad &jab)
00063 /********
00064 DAGAD
00065 ********/
00066 void dagClientSide(glite::jdl::ExpDagAd &dagad);
00067 void dagServerSide(glite::jdl::ExpDagAd &dagad);
00068 std::vector< std::string> insertJobIds (glite::jdl::ExpDagAd &dagad);
00069 
00070 
00071 /********
00072 JOBAd
00073 ********/
00074 glite::jdl::Ad createAd();
00075 glite::jdl::JobAd createJobAd();
00076 glite::jdl::ExpDagAd createDagAd();
00077 glite::jdl::CollectionAd createCollectionAd();
00078 
00079 void jobClientSide(glite::jdl::JobAd &dagad);
00080 void jobServerSide(glite::jdl::JobAd &dagad);
00081 
00082 
00083 
00084 
00085 
00086 // endline
00087 

Generated on Wed May 16 15:17:09 2012 for glite-jdl-api-cpp-3.2.5 by  doxygen 1.4.7