test-definitions
tiantao2012
这个作者很懒,什么都没留下…
展开
-
/test-definitions/blob/master/auto-test/blktrace/blktrace.sh
#!/bin/sh -eset -x#cd 到utils 路径,然后执行这个路径下的两个脚本文件后,通过cd - 返回到当前目录cd ../../utils . ./sys_info.sh ./sh-test-libcd -#通过whoami 判断是否是root 用户,如果是root用户,则输出rootif [ `whoami` != 'root' ] ; then原创 2018-01-10 15:01:42 · 356 阅读 · 0 评论 -
/test-definitions/blob/master/auto-test/crypto/crypto.sh
#!/bin/shset -x#进入到目录执行脚本,然后通过cd -返回当前目录cd ../../utils. ./sys_info.shcd -#Test user id#检查是否是root 用户if [ `whoami` != 'root' ]; then echo " You must be the superuser to run this script" >原创 2018-01-18 14:14:08 · 375 阅读 · 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 · 331 阅读 · 0 评论 -
test-definitions/tree/master/auto-test/dd-wr-speed
#!/bin/sh -e #-e 表明。若指令传回值不等于0,则立即退出shell# shellcheck disable=SC1091#相对路径执行脚本. ../../utils/sh-test-libOUTPUT="$(pwd)/output"RESULT_FILE="${OUTPUT}/result.txt"export RESULT_FILEITERATION="5"u原创 2018-01-18 14:16:17 · 412 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dhcp/dhcp.sh
#!/bin/sh#-x 会回显命令执行的语句和参数set -x#进入到相对路径执行命令,并通过cd -f返回cd ../../utils. ./sys_info.shcd -#Test user id#检查是否是root用户if [ `whoami` != 'root' ]; then echo " You must be the superuser to run t原创 2018-01-18 14:16:58 · 394 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/disk-partitioning/disk-partitioning.sh
#!/bin/sh# shellcheck disable=SC1091#相对路径执行脚本,并给常量赋值. ../../utils/sh-test-libOUTPUT="$(pwd)/output"RESULT_FILE="${OUTPUT}/result.txt"export RESULT_FILEDISKLABEL="gpt"FILESYSTEM="ext4"#定义一个函数原创 2018-01-18 14:17:51 · 396 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/docker/docker.sh
#!/bin/bash#-x 会回显命令执行的语句和参数set -x#相对路径执行脚本,并通过cd - 返回当前目录cd ../../utils. ./sys_info.sh. ./sh-test-libcd -#要支持docker ,可以看出不同发行版安装的包有所不同case $distro in centos) pkgs="make wget docker"原创 2018-01-18 14:18:48 · 385 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/alisql/alisql.sh
#定义一个函数,在centos下删除这些packagefunction 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 · 400 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/bazel/bazel.sh
#!/bin/bash#执行指令后,会显示该指令及所下的参数,方便debugset -x#cd 到utils 路径,然后执行这个路径下的两个脚本文件后,通过cd - 返回到当前目录cd ../../utils. ./sys_info.sh. ./sh-test-libcd -#判断当前发行版的版本,看这里目前只支持centos和fedoracase "${distro}" in原创 2018-01-10 15:00:00 · 472 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/bigdata/bigdata.sh
#!/bin/bashfunction install_bigdata(){ #定义一个函数,在这个函数中安装bigdata 这个package yum install -y bigdata #判断安装结果是否成功 print_info $? "install bigdata" #export 环境变量 export LANG=en_US.UTF8 #原创 2018-01-10 15:00:45 · 457 阅读 · 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 · 407 阅读 · 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 · 362 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/dstat/dstat.sh
#!/bin/sh#回显执行的命令和参数set -x#cd到目录执行脚本,然后通过cd -返回到当前目录cd ../../utils . ./sys_info.shcd -#检查是否是root用户# Test user idif [ `whoami` != 'root' ] ; then echo "You must be the superuser to run原创 2018-01-19 08:57:30 · 389 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/etcd/etcd.sh
#!/bin/bash#回显执行的命令和参数set -x#cd到目录执行脚本,然后通过cd - 返回到当前目录cd ../../utils. ./sys_info.sh. ./sh-test-libcd -#根据不同的发行版安装repocase "${distro}" in centos|fedora) sudo wget -O /etc/yum.repos.d/est原创 2018-01-19 08:57:37 · 398 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/ftp/ftp.sh
#! /bin/bashvsftpd_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 · 376 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/go-bindata/go-bindata.sh
#!/bin/bash#回显执行的命令和参数set -xcd ../../utils. ./sys_info.sh. ./sh-test-libcd -#检查是否安装go,没有安装的话,就安装gogo versionif [ $? -ne 0 ];then print_info 1 golang-installelse yum install go print_info原创 2018-01-19 08:58:08 · 449 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/gprof/gprof.sh
#!/bin/shset -xcd ../../utils . ./sys_info.shcd -# 检查是否root 用户if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1fi安装gcc包case $distro原创 2018-01-19 08:58:15 · 348 阅读 · 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 · 394 阅读 · 0 评论 -
/test-definitions/blob/master/auto-test/linpack/linpack.sh
#!/bin/sh -eset -xcd ../../utils . ./sh-test-lib . ./sys_info.shcd -ARRAY_SIZE="200"# Run Test.#detect_abiwget http://www.netlib.org/benchmark/linpackc.newprint_info $? wget-linpackc#将原创 2018-01-23 08:23:01 · 459 阅读 · 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 · 369 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/boost/boost.sh
#!/bin/sh#回显命令执行及其参数set -x#cd 到utils执行sys_info.sh 后,然后通过cd -到当前目录cd ../../utils. ./sys_info.shcd -#Test user id#判断用户是否root 用户#linux-t916:~ # whoami#rootif [ `whoami` != 'root' ]; then原创 2018-01-10 15:03:12 · 377 阅读 · 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-libcd -#Test user id#检查是否是root 用户if [原创 2018-01-10 15:04:00 · 393 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/cassandra/cassandra.sh
#!/bin/bashfunction cassandra20_install(){ #安装包,并通过检查返回值$? 来检查包是否安装成功 yum install -y cassandra20 print_info $? "install cassandra20" #用过yum info 将包的信息输出到文件中,总共grep和cut 截断字符串得到的相关值原创 2018-01-10 15:04:49 · 348 阅读 · 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 · 368 阅读 · 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 · 479 阅读 · 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 · 565 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/golang/golang.sh
#!/bin/bash#回显执行的命令和参数set -xcd ../../utils. ./sys_info.sh. ./sh-test-libcd -#安装go和net-tools 这两个包case "${distro}" in centos|fedora) pkgs="go net-tools" install_deps "${pkgs}" print_info原创 2018-01-22 08:37:08 · 440 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/httperf-client/httperf.sh
#!/bin/sh#回显执行的命令和参数set -xcd ../../utils . ./sys_info.shcd -#检查是否是root用户if [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1fi#distro=`ca原创 2018-01-22 08:37:21 · 392 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/iostat/iostat.sh
#!/bin/sh#命令和参数回显set -xcd ../../utils . ./sys_info.shcd -#检查是否是root用户# Test user idif [ `whoami` != 'root' ] ; then echo "You must be the superuser to run this script" >&2 exit 1f原创 2018-01-22 08:37:39 · 377 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/iperf/iperf.sh
#!/bin/sh -eset -xcd ../../utils . ./sys_info.shcd -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 · 520 阅读 · 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 · 399 阅读 · 0 评论 -
test-definitions/blob/estuary-dev/ubuntu/scripts/acpi-check.sh
#! /bin/shDSDTPASS=#通过echo输出log 并换行echo -n "Testing presence of /sys/firmware/acpi: "#检查是否存在/sys/firmware/acpi 这个目录if [ -d /sys/firmware/acpi ]; then echo PASSelse echo FAILfiecho -n "Test原创 2018-01-04 20:45:43 · 374 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/kernel-compilation/kernel-compilation.sh
#!/bin/sh -e# shellcheck disable=SC1091. ../../lib/sh-test-libOUTPUT="$(pwd)/output"RESULT_FILE="${OUTPUT}/result.txt"export RESULT_FILELOGFILE="${OUTPUT}/kernel-compilation.txt"VERSION='4.4.3原创 2018-01-23 08:22:48 · 377 阅读 · 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 · 624 阅读 · 0 评论 -
test-definitions/blob/master/auto-test/hhvm/hhvm.sh
#!/bin/bashset -xcd ../../utils. ./sys_info.sh. ./sh-test-libcd -#得到$1的绝对地址INSTALLDIR=$(cd $1; pwd)HOST=$distroPKG_NAME="hhvm"PKG_VER="3.17.3"#发行版是centos的话,需要一次性安装这么多包case $HOST in原创 2018-01-19 08:58:23 · 416 阅读 · 0 评论