Changeset 949

Show
Ignore:
Timestamp:
07/24/08 06:57:15 (3 months ago)
Author:
arnoschn
Message:

modifying AkMemcache? test to change cache type to memcache if its not already set to memcache

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/arnoschn/cache/CiTestsTask.php

    r948 r949  
    5353        $this->_execute("chmod 777 ".$this->_testDir.DS.'log'.DS."testing.log", true); 
    5454        $this->_execute("cp -Rf ".$this->_akelosPath.DS.'test'."   ".$this->_testDir.DS, true); 
    55         $this->_execute("cp  ".$this->_akelosPath.DS.'test'.DS.'.nwaccess'."   ".$this->_testDir.DS, true); 
    56         //$this->_execute("find ".$this->_testDir.DS."/ -type d  -name '.svn' -exec sh -c 'exec rm -Rf \"$@\"' find-copy {} +",true); 
    5755    } 
    5856    private function _execute($cmd,$execute=true) 
  • branches/arnoschn/cache/build-test.xml

    r948 r949  
    9090                        </else> 
    9191                </if> 
     92        <phingCall target="generate-caching-config" /> 
     93        <phingCall target="generate-sessions-config" /> 
    9294        </target> 
    9395         
     
    107109                <phingCall target="generate-yaml-config-file" /> 
    108110                <phingCall target="generate-fix-htaccess" /> 
    109         </target> 
     111 
     112        </target> 
     113        <target name="generate-caching-config"> 
     114        <available file="${config.dir}/caching.yml" property="caching.config.exists"/> 
     115                <if> 
     116                <equals arg1="${caching.config.exists}" arg2="true"/> 
     117                        <then> 
     118                                <echo>${config.dir}/caching.yml exists</echo> 
     119                        </then> 
     120                        <else> 
     121                                <copy file="${config.dir}/DEFAULT-caching.yml" tofile="${config.dir}/caching.yml"/> 
     122                        </else> 
     123                </if> 
     124        </target> 
     125        <target name="generate-sessions-config"> 
     126           <available file="${config.dir}/sessions.yml" property="session.config.exists"/> 
     127                <if> 
     128                <equals arg1="${session.config.exists}" arg2="true"/> 
     129                    <then> 
     130                        <echo>${config.dir}/sessions.yml exists</echo> 
     131                    </then> 
     132                    <else> 
     133                        <copy file="${config.dir}/DEFAULT-sessions.yml" tofile="${config.dir}/sessions.yml"/> 
     134                    </else> 
     135                </if> 
     136            </target> 
    110137        <target name="generate-config-mysql"> 
    111138                <phingCall target="generate-config-file"> 
  • branches/arnoschn/cache/script/extras/DEFAULT-caching.yml

    r906 r949  
    11enabled: true 
    22handler: 
    3     type: 3 #1=PEAR,2=AdoDB,3=Memcache 
     3    type: 1 #1=PEAR,2=AdoDB,3=Memcache 
    44    options:  
    55            servers: 
  • branches/arnoschn/cache/script/extras/DEFAULT-sessions.yml

    r933 r949  
    11enabled: true 
    22handler: 
    3     type: 2 #1=File based,2=AdoDB,3=Memcache 
     3    type: 1 #1=File based,2=AdoDB,3=Memcache 
    44    options:  
    55           lifeTime: 3600 
  • branches/arnoschn/cache/test/unit/lib/AkCache/AkMemcache.php

    r948 r949  
    1313    { 
    1414        $cache_settings = Ak::getSettings('caching',false); 
     15        $cache_settings['handler']['type']=3; 
    1516        $this->memcache=AkCache::lookupStore($cache_settings); 
    1617        $this->assertIsA($this->memcache,'AkCache');