From: Hyoun Jiil Date: Mon, 5 Aug 2013 01:45:22 +0000 (+0900) Subject: [Title] remove executer and change test dir X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=147a2f960ac258e48dab3c23d6a53197727c0777;p=sdk%2Ftools%2Fsdk-build.git [Title] remove executer and change test dir [Type] Enhancement [Module] Toolchain / [Priority] Major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I04cb094dbc14ab9fc02b74dd4e9b088c3c78fd60 --- diff --git a/package/build.linux b/package/build.linux index b71d09e..5d4e3f4 100755 --- a/package/build.linux +++ b/package/build.linux @@ -28,10 +28,8 @@ install() cp -f $SRCDIR/web-svr $BIN_DIR/ echo $VERSION > $BIN_DIR/VERSION - TEST_DIR=$SRCDIR/package/dibs-test.package.${TARGET_OS}/data/tools/dibs/test + TEST_DIR=$SRCDIR/package/dibs-test.package.${TARGET_OS}/data/test/dibs mkdir -p $TEST_DIR/performance_log cp -f $SRCDIR/test/performance_analyzer $TEST_DIR/ cp -f $SRCDIR/test/statistics $TEST_DIR/ - cp -f $SRCDIR/test/performance_run.sh $TEST_DIR/ - cp -f $SRCDIR/test/analyze.sh $TEST_DIR/ } diff --git a/test/analyze.sh b/test/analyze.sh deleted file mode 100755 index 3d38e6c..0000000 --- a/test/analyze.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -x -dir=`dirname $0` -$dir/performance_analyzer -d "Mysql:database=rsa;host=172.21.17.46;port=3306" -u "root" -p "qmscore" -w "start_time >= '`date '+%Y-%m-%d'`' AND distribution_id = 9 AND status = 'FINISHED'" -n common-eplugin -c performance_log/`date '+%Y-%m-%d'`.sample.csv diff --git a/test/performance_analyzer b/test/performance_analyzer index 34b3542..a4b75cd 100755 --- a/test/performance_analyzer +++ b/test/performance_analyzer @@ -142,14 +142,14 @@ def option_parse opts.on('-n', '--name ', 'project name for print seperate by \",\"') do |name| options[:name] = name.strip.split(",") end - opts.on('-w', '--where ', 'ex) jobs.id >= 79000') do |where| + opts.on('-w', '--where ', 'ex) id >= 79000') do |where| options[:where] = "WHERE " + where end opts.on('-c', '--csv ', 'save csv file') do |cvs| options[:cvs] = cvs end opts.on('-h', '--help', 'print this message') do |help| - puts "useage: performance_analizer -d \"Mysql:database=rsa;host=172.21.17.46;port=3306\" -u \"root\" -p \"password\" -w \"start_time >= '2013-07-21'\" -c result.cvs" + puts "useage: performance_analizer -d \"Mysql:database=;host=;port=\" -u \"\" -p \"\" -w \"start_time >= '2013-07-21'\" -c result.cvs" puts opts.help exit end diff --git a/test/performance_run.sh b/test/performance_run.sh deleted file mode 100755 index 1e86bd2..0000000 --- a/test/performance_run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -#full build -#../build-cli build -N "assignmenttracing-eplugin,certificate-generator,cli,codecoverage-eplugin,common-eplugin,dynamic-analysis-ide-eplugin,dynamic-analyzer,emulator-kernel,emulator-manager,emulator-storages,event-injector,eventinjector-eplugin,gcc-4.5,gdb-7.5,image-creator,js-assignmenttracing-eplugin,jsdt-extension-eplugin,meta-emulator-tools,meta-sdk-dev-tools,meta-tizen-components,meta-tizen-documents,meta-tizen-ide,meta-tizen-installtype,native-eplugin,native-ext-eplugin,native-ui-builder,native-ui-effect-builder,nativeappcommon-eplugin,nativecommon-eplugin,nativeplatform-eplugin,nativeplatform-sample,pde-build,product,profiler-eplugin,qemu,rpm-tools,sbi-plugins,sdb,sdk-build,smart-build-interface,ui-customizer,unittest-eplugin,unittest-framework,version-manager,vgabios,web-sample,web-simulator,web-ui-builder-eplugin,web-ui-fw,webapp-eplugin,websimulator-eplugin" -d 172.21.17.46:3336 -u "admin@user" -w 1 -D test --rebuild -o "ubuntu-32,ubuntu-64,windows-32,windows-64,macos-64" -# reverse build -../build-cli build -N "common-eplugin" -d 172.21.17.46:3336 -u "admin@user" -w 1 -D test --rebuild -o "ubuntu-32,ubuntu-64,windows-32,windows-64,macos-64" diff --git a/test/statistics b/test/statistics index 8d763d5..c5193f8 100755 --- a/test/statistics +++ b/test/statistics @@ -121,14 +121,14 @@ def option_parse opts.on('-p', '--password ', 'user password') do |pass| options[:pass] = pass end - opts.on('-w', '--where ', 'ex) jobs.id >= 79000') do |where| + opts.on('-w', '--where ', 'ex) id >= 79000') do |where| options[:where] = "WHERE " + where end opts.on('-c', '--csv ', 'save csv file') do |csv| options[:csv] = csv end opts.on('-h', '--help', 'print this message') do |help| - puts "useage: performance_analizer -d \"Mysql:database=rsa;host=172.21.17.46;port=3306\" -u \"root\" -p \"password\" -w \"start_time >= '2013-07-21'\" -c result.csv" + puts "useage: performance_analizer -d \"Mysql:database=;host=;port=\" -u \"\" -p \"\" -w \"start_time >= '2013-07-21'\" -c result.csv" puts opts.help exit end