
test-definitions
tiantao2012
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
/test-definitions/blob/master/auto-test/blktrace/blktrace.sh
#!/bin/sh -e set -x #cd 到utils 路径,然后执行这个路径下的两个脚本文件后,通过cd - 返回到当前目录 cd ../../utils . ./sys_info.sh ./sh-test-lib cd - #通过whoami 判断是否是root 用户,如果是root用户,则输出root if [ `whoami` != 'root' ] ; then原创 2018-01-10 15:01:42 · 384 阅读 · 0 评论 -
/test-definitions/blob/master/auto-test/crypto/crypto.sh
#!/bin/sh set -x #进入到目录执行脚本,然后通过cd -返回当前目录 cd ../../utils . ./sys_info.sh cd - #Test user id #检查是否是root 用户 if [ `whoami` != 'root' ]; then echo " You must be the superuser to run this script" >原创 2018-01-18 14:14:08 · 401 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/cyclictest/cyclictest.sh
#!/bin/sh -e # cyclictest measures event latency in Linux kernel by measuring the amount of # time that passes between when a timer expires and when the thread which set # the timer actually runs. #原创 2018-01-18 14:15:15 · 362 阅读 · 0 评论 -
test-definitions/tree/master/auto-test/dd-wr-speed
#!/bin/sh -e #-e 表明。若指令传回值不等于0,则立即退出shell # shellcheck disable=SC1091 #相对路径执行脚本 . ../../utils/sh-test-lib OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE ITERATION="5" u原创 2018-01-18 14:16:17 · 442 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dhcp/dhcp.sh
#!/bin/sh #-x 会回显命令执行的语句和参数 set -x #进入到相对路径执行命令,并通过cd -f返回 cd ../../utils . ./sys_info.sh cd - #Test user id #检查是否是root用户 if [ `whoami` != 'root' ]; then echo " You must be the superuser to run t原创 2018-01-18 14:16:58 · 426 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/disk-partitioning/disk-partitioning.sh
#!/bin/sh # shellcheck disable=SC1091 #相对路径执行脚本,并给常量赋值 . ../../utils/sh-test-lib OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE DISKLABEL="gpt" FILESYSTEM="ext4" #定义一个函数原创 2018-01-18 14:17:51 · 474 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/docker/docker.sh
#!/bin/bash #-x 会回显命令执行的语句和参数 set -x #相对路径执行脚本,并通过cd - 返回当前目录 cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #要支持docker ,可以看出不同发行版安装的包有所不同 case $distro in centos) pkgs="make wget docker"原创 2018-01-18 14:18:48 · 419 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/alisql/alisql.sh
#定义一个函数,在centos下删除这些package function alisql_uninstall(){ yum remove -y mariadb* yum remove -y mysql* yum remove -y percona* yum remove -y AliSQL* } function alisql_install(){ #安装原创 2018-01-10 14:58:47 · 437 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/bazel/bazel.sh
#!/bin/bash #执行指令后,会显示该指令及所下的参数,方便debug set -x #cd 到utils 路径,然后执行这个路径下的两个脚本文件后,通过cd - 返回到当前目录 cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #判断当前发行版的版本,看这里目前只支持centos和fedora case "${distro}" in原创 2018-01-10 15:00:00 · 511 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/bigdata/bigdata.sh
#!/bin/bash function install_bigdata(){ #定义一个函数,在这个函数中安装bigdata 这个package yum install -y bigdata #判断安装结果是否成功 print_info $? "install bigdata" #export 环境变量 export LANG=en_US.UTF8 #原创 2018-01-10 15:00:45 · 493 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dsdbench/dsdbench.sh
#!/bin/sh -e # This test script run docker storage driver benchmarks and tests. # Test suite source https://github.com/dmcgowan/dsdbench # shellcheck disable=SC1091 #cd到相对路径下执行脚本 . ../../lib/sh-test原创 2018-01-19 08:57:11 · 439 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dsdbench/dsdbench.sh
#!/bin/sh -e # This test script run docker storage driver benchmarks and tests. # Test suite source https://github.com/dmcgowan/dsdbench # shellcheck disable=SC1091 #cd到相对路径下执行脚本 . ../../lib/sh-test原创 2018-01-19 08:57:21 · 397 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dstat/dstat.sh
#!/bin/sh #回显执行的命令和参数 set -x #cd到目录执行脚本,然后通过cd -返回到当前目录 cd ../../utils . ./sys_info.sh cd - #检查是否是root用户 # Test user id if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run原创 2018-01-19 08:57:30 · 427 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/etcd/etcd.sh
#!/bin/bash #回显执行的命令和参数 set -x #cd到目录执行脚本,然后通过cd - 返回到当前目录 cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #根据不同的发行版安装repo case "${distro}" in centos|fedora) sudo wget -O /etc/yum.repos.d/est原创 2018-01-19 08:57:37 · 431 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/ftp/ftp.sh
#! /bin/bash vsftpd_op() { local cmd="" local operation=$1 local log_file="vsftpd.log" #根据不同发行版起不同的service。以ubuntu为例,这里可能是service vsftpd start case $distro in "ubuntu" | "debi原创 2018-01-19 08:57:47 · 412 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/go-bindata/go-bindata.sh
#!/bin/bash #回显执行的命令和参数 set -x cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #检查是否安装go,没有安装的话,就安装go go version if [ $? -ne 0 ];then print_info 1 golang-install else yum install go print_info原创 2018-01-19 08:58:08 · 488 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/gprof/gprof.sh
#!/bin/sh set -x cd ../../utils . ./sys_info.sh cd - # 检查是否root 用户 if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1 fi 安装gcc包 case $distro原创 2018-01-19 08:58:15 · 374 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/cockroach/cockroachInsecureTest.sh
#! /bin/bash set -x #获得脚本文件所在的路径 basedir=$(cd `dirname $0` ;pwd) cd $basedir #用相对路径执行脚本文件 . ../../lib/sh-test-lib #安装包以及依赖的包 install_deps cockroach #查看这个包是否安装成功 if [ `which cockroach` ] ;then原创 2018-01-18 14:12:11 · 426 阅读 · 0 评论 -
/test-definitions/blob/master/auto-test/linpack/linpack.sh
#!/bin/sh -e set -x cd ../../utils . ./sh-test-lib . ./sys_info.sh cd - ARRAY_SIZE="200" # Run Test. #detect_abi wget http://www.netlib.org/benchmark/linpackc.new print_info $? wget-linpackc #将原创 2018-01-23 08:23:01 · 499 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/blogbench/blogbench.sh
#!/bin/sh -e #这里e表示若指令的返回值不等于零则立即退出shell,也可以用set -e代替 #用决定路径执行,并给字符串赋值 . ../../utils/sh-test-lib #得到当前目录下的output这个目录 OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" LOG_FILE="${OUTPUT}/blog原创 2018-01-10 15:02:16 · 415 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/boost/boost.sh
#!/bin/sh #回显命令执行及其参数 set -x #cd 到utils执行sys_info.sh 后,然后通过cd -到当前目录 cd ../../utils . ./sys_info.sh cd - #Test user id #判断用户是否root 用户 #linux-t916:~ # whoami #root if [ `whoami` != 'root' ]; then原创 2018-01-10 15:03:12 · 412 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/busybox/busybox.sh
#!/bin/sh # Busybox smoke tests. # shellcheck disable=SC1091 #回显命令执行及其参数 set -x #进入目录,分先后执行两个脚本文件,再返回到当前目录 cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #Test user id #检查是否是root 用户 if [原创 2018-01-10 15:04:00 · 430 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/cassandra/cassandra.sh
#!/bin/bash function cassandra20_install(){ #安装包,并通过检查返回值$? 来检查包是否安装成功 yum install -y cassandra20 print_info $? "install cassandra20" #用过yum info 将包的信息输出到文件中,总共grep和cut 截断字符串得到的相关值原创 2018-01-10 15:04:49 · 380 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/cassandra/cassandra-cpp-driver.sh
#!/bin/bash #source 一下这个文件,这样就可以用这个文件中定义的函数了 source ./cassandra.sh function ccdriver_server_isRunning(){ #通过which 看有没有安装这个包 which cassandra && true || false if [ $? -ne 0 ];then #如果没有安装原创 2018-01-10 15:05:48 · 402 阅读 · 0 评论 -
test-definitions/blob/master/toolset/util/parallel_cmds.py
test-definitions/blob/master/toolset/util/parallel_cmds.py #!/usr/bin/python #-*-:encodig=utf-8-*- """ To execute shell commands in parallel In addition, each argument stands for one shell com原创 2018-01-03 14:07:47 · 528 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/24h-stress-test/24h-stress-test.sh
#!/bin/sh # shellcheck disable=SC1091 #执行脚本后,就可以调用脚本中定义的函数 . ../../lib/sh-test-lib #定义常量,这里的常量都是用双引号。 OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE # Set default values原创 2018-01-03 14:08:39 · 615 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/golang/golang.sh
#!/bin/bash #回显执行的命令和参数 set -x cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #安装go和net-tools 这两个包 case "${distro}" in centos|fedora) pkgs="go net-tools" install_deps "${pkgs}" print_info原创 2018-01-22 08:37:08 · 474 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/httperf-client/httperf.sh
#!/bin/sh #回显执行的命令和参数 set -x cd ../../utils . ./sys_info.sh cd - #检查是否是root用户 if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1 fi #distro=`ca原创 2018-01-22 08:37:21 · 413 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/iostat/iostat.sh
#!/bin/sh #命令和参数回显 set -x cd ../../utils . ./sys_info.sh cd - #检查是否是root用户 # Test user id if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1 f原创 2018-01-22 08:37:39 · 408 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/iperf/iperf.sh
#!/bin/sh -e set -x cd ../../utils . ./sys_info.sh cd - SERVER="127.0.0.1" TIME="10" THREADS="1" VERSION="3.1.4" if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this s原创 2018-01-22 08:37:59 · 599 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/isolate-task/isolate-task-verify.sh
#!/bin/sh -e #-e表示遇到错误就退出 #定义函数说明这个脚本的用法 usage() { echo "Usage: $0 " 1>&2 echo " -c CPU's to isolate and verify" echo " -s Skip dependenciy installs" echo " -t Git tag to use" ech原创 2018-01-22 08:38:28 · 452 阅读 · 0 评论 -
test-definitions/blob/estuary-dev/ubuntu/scripts/acpi-check.sh
#! /bin/sh DSDTPASS= #通过echo输出log 并换行 echo -n "Testing presence of /sys/firmware/acpi: " #检查是否存在/sys/firmware/acpi 这个目录 if [ -d /sys/firmware/acpi ]; then echo PASS else echo FAIL fi echo -n "Test原创 2018-01-04 20:45:43 · 400 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/kernel-compilation/kernel-compilation.sh
#!/bin/sh -e # shellcheck disable=SC1091 . ../../lib/sh-test-lib OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE LOGFILE="${OUTPUT}/kernel-compilation.txt" VERSION='4.4.3原创 2018-01-23 08:22:48 · 414 阅读 · 0 评论 -
test-definitions/tree/master/auto-test/libhugetlbfs
#!/bin/sh # shellcheck disable=SC1091 . ../../lib/sh-test-lib #给变量赋初值 OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" RESULT_LOG="${OUTPUT}/result_log.txt" TMP_LOG="${OUTPUT}/tmp_log.txt" T原创 2018-01-23 08:22:55 · 714 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/hhvm/hhvm.sh
#!/bin/bash set -x cd ../../utils . ./sys_info.sh . ./sh-test-lib cd - #得到$1的绝对地址 INSTALLDIR=$(cd $1; pwd) HOST=$distro PKG_NAME="hhvm" PKG_VER="3.17.3" #发行版是centos的话,需要一次性安装这么多包 case $HOST in原创 2018-01-19 08:58:23 · 466 阅读 · 0 评论