458 ant: antProperties() |
458 ant: antProperties() |
459 raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,component,phase,recipe,file,line]}) |
459 raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,component,phase,recipe,file,line]}) |
460 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
460 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
461 </data> |
461 </data> |
462 </fmpp> |
462 </fmpp> |
463 </target> |
463 </target> |
464 |
|
465 <target name="sf-build-smoketestpkg" depends="sf-getenv-tools"> |
|
466 <delete dir ="${build.drive}/smoketest"/> |
|
467 <delete file ="${build.log.dir}/ATS_${build.id}_smoketest.log"/> |
|
468 |
|
469 <echo message="INFO Copy smoketest source to EPOCROOT"/> |
|
470 |
|
471 <copy todir="${build.drive}/smoketest"> |
|
472 <fileset dir="${sf.common.config.dir}/tools/ats/smoketest"/> |
|
473 </copy> |
|
474 |
|
475 <echo message="INFO Building smoketest"/> |
|
476 <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
477 <arg value="/c"/> |
|
478 <arg value="sbs -b bld.inf -c winscw_udeb.test"/> |
|
479 </exec> |
|
480 |
|
481 <echo message="INFO Creating smoketest testpackage"/> |
|
482 <exec executable="perl" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
483 <arg value="smoketest.pl"/> |
|
484 </exec> |
|
485 <copy file="${build.drive}/smoketest/group/smoketest.zip" todir="${sf.spec.test.package.location}"/> |
|
486 |
|
487 <echo message="INFO Updating smoketest package with test info"/> |
|
488 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
489 <arg value="ats_specialise_test_drop.pl"/> |
|
490 <arg value="--test-drop-name=Smoketest-${build.id}"/> |
|
491 <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/> |
|
492 <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/> |
|
493 <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/> |
|
494 <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/> |
|
495 </exec> |
|
496 <!-- Now ready to send to ATS3 --> |
|
497 </target> |
|
498 |
|
499 <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction"> |
|
500 <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/> |
|
501 <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/> |
|
502 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log"> |
|
503 <arg value="ats3_testdrop.pl"/> |
|
504 <arg value="--host=${sf.spec.test.host.name}"/> |
|
505 <arg value="--username=${sf.spec.test.host.username}"/> |
|
506 <arg value="--password=${sf.spec.test.host.password}"/> |
|
507 <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/> |
|
508 <arg value="--local-drop-path=${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/> |
|
509 <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/> |
|
510 </exec> |
|
511 </target> |
|
512 |
464 |
513 <!-- package all logs into zipfile before publish --> |
465 <!-- package all logs into zipfile before publish --> |
514 <target name="sf-zip-logs"> |
466 <target name="sf-zip-logs"> |
515 <if> |
467 <if> |
516 <istrue value="${sf.spec.logs.zip.enable}"/> |
468 <istrue value="${sf.spec.logs.zip.enable}"/> |
531 <move todir="${build.log.dir}"> |
483 <move todir="${build.log.dir}"> |
532 <fileset dir="${temp.log.dir}"/> |
484 <fileset dir="${temp.log.dir}"/> |
533 </move> |
485 </move> |
534 </then> |
486 </then> |
535 </if> |
487 </if> |
536 </target> |
488 </target> |
537 |
|
538 <target name="sf-bc-check"> |
|
539 |
|
540 <if><isset property="env.PDT_HOME"/> |
|
541 <then> |
|
542 <!-- create BC dir --> |
|
543 <mkdir dir="${build.log.dir}/BC"/> |
|
544 |
|
545 <delete file="${build.log.dir}/BC/bc.config" quiet="true"/> |
|
546 <delete file="${build.log.dir}/BC/BBCResults.xsl" quiet="true"/> |
|
547 <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/> |
|
548 <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/> |
|
549 <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/> |
|
550 <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/> |
|
551 |
|
552 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
553 <arg value="/c"/> |
|
554 <arg value="echo"/> |
|
555 <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/> |
|
556 </exec> |
|
557 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
558 <arg value="/c"/> |
|
559 <arg value="echo"/> |
|
560 <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/> |
|
561 </exec> |
|
562 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
563 <arg value="/c"/> |
|
564 <arg value="echo"/> |
|
565 <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/> |
|
566 </exec> |
|
567 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
568 <arg value="/c"/> |
|
569 <arg value="echo"/> |
|
570 <arg value="CURRENT_NAME=${build.id}"/> |
|
571 </exec> |
|
572 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
573 <arg value="/c"/> |
|
574 <arg value="echo"/> |
|
575 <arg value="CURRENT_SDK_DIR=${build.drive}"/> |
|
576 </exec> |
|
577 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
578 <arg value="/c"/> |
|
579 <arg value="echo"/> |
|
580 <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/> |
|
581 </exec> |
|
582 |
|
583 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/BBCResults.xsl" tofile="${build.log.dir}/BC/BBCResults.xsl" failonerror="false" verbose="true"/> |
|
584 |
|
585 <if><istrue value="${sf.spec.bccheck.enable.la}"/> |
|
586 <then> |
|
587 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt"> |
|
588 <arg value="CheckBC.py"/> |
|
589 <arg value="${build.log.dir}/BC/bc.config"/> |
|
590 <arg value="-la"/> |
|
591 <arg value="-f"/> |
|
592 <arg value="${sf.spec.bccheck.reportid}"/> |
|
593 </exec> |
|
594 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Libraries_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/libraries_report.xml" failonerror="false" verbose="true"/> |
|
595 </then> |
|
596 </if> |
|
597 |
|
598 <if><istrue value="${sf.spec.bccheck.enable.ha}"/> |
|
599 <then> |
|
600 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt"> |
|
601 <arg value="CheckBC.py"/> |
|
602 <arg value="${build.log.dir}/BC/bc.config"/> |
|
603 <arg value="-ha"/> |
|
604 <arg value="-f"/> |
|
605 <arg value="${sf.spec.bccheck.reportid}"/> |
|
606 </exec> |
|
607 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Headers_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/headers_report.xml" failonerror="false" verbose="true"/> |
|
608 </then> |
|
609 </if> |
|
610 |
|
611 <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/> |
|
612 <then> |
|
613 <echo message="INFO Updating bctest package with test info"/> |
|
614 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_dynamicbc.log"> |
|
615 <arg value="ats_specialise_test_drop.pl"/> |
|
616 <arg value="--test-drop-name=bctest-${build.id}"/> |
|
617 <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/> |
|
618 <arg value="--src=${sf.spec.test.package.location}\..\bctest\bctest.zip"/> |
|
619 <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.bccheck.package.name}"/> |
|
620 </exec> |
|
621 <!-- Now ready to send to ATS3 --> |
|
622 |
|
623 <antcall target="sf-send-testpkg" inheritAll="false"> |
|
624 <param name="sf.spec.test.package.name" value="${sf.spec.bccheck.package.name}"/> |
|
625 </antcall> |
|
626 </then> |
|
627 </if> |
|
628 </then> |
|
629 <else> |
|
630 <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/> |
|
631 </else> |
|
632 </if> |
|
633 </target> |
|
634 |
489 |
635 <target name="sf-publish" depends="prep-publish"> |
490 <target name="sf-publish" depends="prep-publish"> |
636 <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false"> |
491 <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false"> |
637 <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset> |
492 <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset> |
638 </copy> |
493 </copy> |