code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # find out the directory where this script is DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.." REALDIR=$(readlink -f $DIR) LIBDIR="$REALDIR/visualvalgrind/libs" rm -f *.dot 2>&1 > /dev/null PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -depth 2 build valtest.xml for file in $(ls *.dot) do ...
Shell
#!/bin/bash # find out the directory where this script is DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.." REALDIR=$(readlink -f $DIR) LIBDIR="$REALDIR/visualvalgrind/libs" rm -f *.dot 2>&1 > /dev/null rm -rf output_dir/ mkdir output_dir PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -o output_dir buil...
Shell
#!/bin/sh #clean up rm *.dot 2> /dev/null rm *.svg 2> /dev/null # build graph dot file for rep in `find . -type d | grep "./" | sed "s/\.\///" | grep -v "/" | sort` do ../src/visualvalgrind.py build $rep/valtest.xml # create svg file for dotfile in `ls *.dot` do base=`basename $dotfile .dot...
Shell
#!/bin/sh ################################################################################ ## ## photivo ## ## Copyright (C) 2011 Bernd Schoeler <brother.john@photivo.org> ## Copyright (C) 2011 Michael Munzert <mail@mm-log.com> ## ## This file is part of photivo. ## ## photivo is free software: you can redist...
Shell
#!/bin/bash # Download ufRaw whitebalance settings from # http://ufraw.cvs.sourceforge.net/viewvc/ufraw/ufraw/wb_presets.c # and process them to the corresponding file for Photivo MYDATE=$(date +%Y%m%d) rm wb_presets_reference_ufraw* wget http://ufraw.cvs.sourceforge.net/viewvc/ufraw/ufraw/wb_presets.c -O "wb_pres...
Shell
#!/bin/bash # Download dcraw.c # and process it to simplify Photivo update. # To check against former versions of dcraw, get the dcraw.c,v file # and use 'co -r1.439 dcraw.c,v'. # The Adobe coefficients go into ptAdobeTable.h. # Static variables go into class DcRaw, this is currently not fully done. wget http://www.c...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh # Copyright (c) 2013, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condi...
Shell
#!/bin/sh # Copyright (c) 2007, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of con...
Shell
#!/bin/sh # Copyright (c) 2005, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of con...
Shell
#!/bin/sh # Copyright (c) 2005, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of con...
Shell
#!/bin/sh # Copyright (c) 2005, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of cond...
Shell
#!/bin/sh # Copyright (c) 2005, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of con...
Shell
#!/bin/sh # Copyright (c) 2008, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condi...
Shell
#!/bin/sh # Copyright (c) 2009, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condi...
Shell
#!/bin/sh autoreconf -i
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/bin/sh # # Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # # Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://w...
Shell
#!/bin/sh export JETTY_HOST=127.0.0.1 export JETTY_PORT=8081 export JETTY_USER=gerrit2 export JETTY_PID=/var/run/jetty$JETTY_PORT.pid export JETTY_HOME=/home/$JETTY_USER/jetty export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre JAVA_OPTIONS="" JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST" export JAVA_OPTION...
Shell
#!/bin/bash # Copyright (c) 2012, Code Aurora Forum. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # notice, this list...
Shell
#!/bin/sh include_docs=-Dgerrit.include-documentation=1 while [ $# -gt 0 ] do case "$1" in --no-documentation|--without-documentation) include_docs= shift ;; *) echo >&2 "usage: $0 [--without-documentation]" exit 1 esac done git update-index -q --refresh if test -n "$(git diff-index --name-only HEAD -...
Shell
#!/bin/sh # Update all pom.xml with new build number # # TODO(sop) This should be converted to some sort of # Java based Maven plugin so its fully portable. # POM_FILES=$(git ls-files | grep pom.xml) case "$1" in --snapshot=*) V=$(echo "$1" | perl -pe 's/^--snapshot=//') if [ -z "$V" ] then echo >&2 "usage: $0 ...
Shell
#!/bin/sh set -e SRC=$(ls gerrit-plugin-api/target/gerrit-plugin-api-*-sources.jar) VER=${SRC#gerrit-plugin-api/target/gerrit-plugin-api-} VER=${VER%-sources.jar} type=release case $VER in *-SNAPSHOT) echo >&2 "fatal: Cannot deploy $VER" echo >&2 " Use ./tools/version.sh --release && mvn clean package" e...
Shell
#!/bin/sh # # Launch Gerrit Code Review as a daemon process. # To get the service to restart correctly on reboot, uncomment below (3 lines): # ======================== # chkconfig: 3 99 99 # description: Gerrit Code Review # processname: gerrit # ======================== # Configuration files: # # /etc/default/gerrit...
Shell
#!/bin/sh V=$(git describe HEAD) case "$V" in '') echo >&2 "fatal: no annotated tags, cannot determine version" exit 1 ;; *-g*) echo >&2 "fatal: snapshot $V, cannot determine version" exit 1 ;; v*) echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/' ;; esac
Shell
#!/bin/bash # Define a few commands. ECHO=/usr/bin/echo CAT=/usr/bin/cat LOFIADM=/usr/sbin/lofiadm MKISOFS=/usr/bin/mkisofs TIME=/usr/bin/time PKG_IMG_PATH=$2 if [ ! -d $PKG_IMG_PATH ] ; then print -u2 -f "%s: Image package area %s is not valid\n" \ "$0" "$PKG_IMG_PATH" exit 1 fi $CAT motd > $PKG_IMG_PATH/e...
Shell
#!/bin/bash # Define a few commands. ECHO=/usr/bin/echo CAT=/usr/bin/cat LOFIADM=/usr/sbin/lofiadm MKISOFS=/usr/bin/mkisofs TIME=/usr/bin/time PKG_IMG_PATH=$2 if [ ! -d $PKG_IMG_PATH ] ; then print -u2 -f "%s: Image package area %s is not valid\n" \ "$0" "$PKG_IMG_PATH" exit 1 fi SPLASH=splash_sve.xpm.gz ##M...
Shell
#!/bin/bash # Define a few commands. ECHO=/usr/bin/echo CAT=/usr/bin/cat LOFIADM=/usr/sbin/lofiadm MKISOFS=/usr/bin/mkisofs TIME=/usr/bin/time PKG_IMG_PATH=$2 if [ ! -d $PKG_IMG_PATH ] ; then print -u2 -f "%s: Image package area %s is not valid\n" \ "$0" "$PKG_IMG_PATH" exit 1 fi /usr/gnu/bin/cp help/C/* $PK...
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#!/bin/bash # # This script is similar to minion but will do a few additional things: # - PHP process is run in the background # - PHP process is monitored and restarted if it exits for any reason # - Added handlers for SUGHUP, SIGINT, and SIGTERM # # This is meant for long running minion tasks (like background workers...
Shell
#!/bin/bash # # This script is similar to minion but will do a few additional things: # - PHP process is run in the background # - PHP process is monitored and restarted if it exits for any reason # - Added handlers for SUGHUP, SIGINT, and SIGTERM # # This is meant for long running minion tasks (like background workers...
Shell
#!/bin/sh include_docs=-Dgerrit.include-documentation=1 while [ $# -gt 0 ] do case "$1" in --no-documentation|--without-documentation) include_docs= shift ;; *) echo >&2 "usage: $0 [--without-documentation]" exit 1 esac done git update-index -q --refresh if test -n "$(git diff-index --name-only HEAD -...
Shell
#!/bin/sh set -e SRC=$(ls gerrit-plugin-api/target/gerrit-plugin-api-*-sources.jar) VER=${SRC#gerrit-plugin-api/target/gerrit-plugin-api-} VER=${VER%-sources.jar} type=release case $VER in *-SNAPSHOT) echo >&2 "fatal: Cannot deploy $VER" echo >&2 " Use ./tools/version.sh --release && mvn clean package" e...
Shell
#!/bin/sh # Update all pom.xml with new build number # # TODO(sop) This should be converted to some sort of # Java based Maven plugin so its fully portable. # POM_FILES=$(git ls-files | grep pom.xml) case "$1" in --snapshot=*) V=$(echo "$1" | perl -pe 's/^--snapshot=//') if [ -z "$V" ] then echo >&2 "usage: $0 ...
Shell
#!/bin/sh export JETTY_HOST=127.0.0.1 export JETTY_PORT=8081 export JETTY_USER=gerrit2 export JETTY_PID=/var/run/jetty$JETTY_PORT.pid export JETTY_HOME=/home/$JETTY_USER/jetty export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre JAVA_OPTIONS="" JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST" export JAVA_OPTION...
Shell
#!/bin/sh # # Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # # Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://w...
Shell
#!/bin/sh V=$(git describe HEAD) case "$V" in '') echo >&2 "fatal: no annotated tags, cannot determine version" exit 1 ;; *-g*) echo >&2 "fatal: snapshot $V, cannot determine version" exit 1 ;; v*) echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/' ;; esac
Shell
#!/bin/sh # # Launch Gerrit Code Review as a daemon process. # To get the service to restart correctly on reboot, uncomment below (3 lines): # ======================== # chkconfig: 3 99 99 # description: Gerrit Code Review # processname: gerrit # ======================== # Configuration files: # # /etc/default/gerrit...
Shell
#!/bin/bash # Copyright (c) 2012, Code Aurora Forum. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # notice, this list...
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#!/bin/sh # ### $Id: run.sh abhayani@redhat.com $ ### # # Mobicents Media Server Control Script # # To use this script run it as root - it will switch to the specified user # # Here is a little (and extremely primitive) startup/shutdown script # for RedHat systems. It assumes that Mobicents Media Server lives in /usr/l...
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents SS7 CLI Bootstrap Script ## ## ##...
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents SMSC Test Server Bootstrap Script ## ## ...
Shell
#!/bin/sh # # An example hook script to check the commit log message taken by # applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. The hook is # allowed to edit the commit message file. # # To enable this hook, rename ...
Shell
#!/bin/sh # # An example hook script to prepare a packed repository for use over # dumb transports. # # To enable this hook, rename this file to "post-update". exec git update-server-info
Shell
#!/bin/sh # # An example hook script to prepare the commit log message. # Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, # t...
Shell
#!/bin/sh # # An example hook script to verify what is about to be committed. # Called by "git commit" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message if # it wants to stop the commit. # # To enable this hook, rename this file to "pre-commit". if git rev-parse --ver...
Shell
#!/bin/sh # # An example hook script to blocks unannotated tags from entering. # Called by "git receive-pack" with arguments: refname sha1-old sha1-new # # To enable this hook, rename this file to "update". # # Config # ------ # hooks.allowunannotated # This boolean sets whether unannotated tags will be allowed into ...
Shell
#!/bin/sh # # An example hook script to check the commit log message. # Called by "git commit" with one argument, the name of the file # that has the commit message. The hook should exit with non-zero # status after issuing an appropriate message if it wants to stop the # commit. The hook is allowed to edit the commi...
Shell
#!/bin/sh # # An example hook script to verify what is about to be committed # by applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. # # To enable this hook, rename this file to "pre-applypatch". . git-sh-setup test -x...
Shell
#!/bin/sh # # Copyright (c) 2006, 2008 Junio C Hamano # # The "pre-rebase" hook is run just before "git rebase" starts doing # its job, and can prevent the command from running by exiting with # non-zero status. # # The hook is called with the following parameters: # # $1 -- the upstream the series was forked from. # $...
Shell
#!/usr/bin/env bash cd `dirname $0` # logtype:0 portal2 files='cube-bbs-clean.py' script='cube-bbs-clean.py' if [ $1 ]; then dt=${1:0:4}"-"${1:4:2}"-"${1:6:2} hour=${1:8:2} echo $dt else exit 1 fi dt2=`date -d "${dt}" +"%Y%m%d"` echo $dt2 INPUT="/rawlog/ucgc_bbs/${dt2}/*.${dt}-${hour}*" echo $INPUT ...
Shell
#!/usr/bin/env bash cd `dirname $0` # logtype:0 portal2 files='cube-portal2-clean.py,data/game.data,data/ads.data' script='cube-portal2-clean.py' if [ $1 ]; then dt=${1:0:4}"-"${1:4:2}"-"${1:6:2} hour=${1:8:2} echo $dt else exit 1 fi dt2=`date -d "${dt}" +"%Y%m%d"` echo $dt2 INPUT="/rawlog/unistat_po...
Shell
#!/usr/bin/env bash cd `dirname $0` # logtype:0 portal2 files='cube-bbs-clean.py' script='cube-bbs-clean.py' if [ $1 ]; then dt=${1:0:4}"-"${1:4:2}"-"${1:6:2} hour=${1:8:2} echo $dt else exit 1 fi dt2=`date -d "${dt}" +"%Y%m%d"` echo $dt2 INPUT="/rawlog/ucgc_bbs/${dt2}/*.${dt}-${hour}*" echo $INPUT ...
Shell
#!/usr/bin/env bash cd `dirname $0` # logtype:0 portal2 files='cube-portal2-clean.py,data/game.data,data/ads.data' script='cube-portal2-clean.py' if [ $1 ]; then dt=${1:0:4}"-"${1:4:2}"-"${1:6:2} hour=${1:8:2} echo $dt else exit 1 fi dt2=`date -d "${dt}" +"%Y%m%d"` echo $dt2 INPUT="/rawlog/unistat_po...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
source ../testsupport.sh run test.txt grep -q "Stage hello" test.out || err "Failed to find expected stage hello" grep -q "Stage world" test.out || err "Failed to find expected stage world" [ ! -f test.txt.hello ] && err "Failed to find expected output test.txt" [ ! -f test.txt.hello.world ] && err "Failed to find e...
Shell
rm -f test.txt.* null
Shell
source ../testsupport.sh rm -f test.txt.* run test.txt grep -q "Stage hello" test.out || err "Failed to find expected stage hello" grep -q "Stage world" test.out || err "Failed to find expected stage world" [ ! -f test.txt.hello ] && err "Failed to find expected output test.txt" [ ! -f test.txt.hello.world ] && err...
Shell
source ../testsupport.sh run test*.txt [ `grep -c "Stage hello" test.out` == 3 ] || err "Failed to find expected stage hello 3 times" [ ! -f test.chr1.hello.csv ] && err "Failed to find expected output test.chr1.hello.csv" [ ! -f test.chr2.hello.csv ] && err "Failed to find expected output test.chr2.hello.csv" [ ! ...
Shell
rm -rf *.csv
Shell
source ../testsupport.sh . ./cleanup.sh run childdir/s_*.txt grep -q "Stage dedupe" test.out || err "Failed to find expected stage dedupe" grep -q "Stage align" test.out || err "Failed to find expected stage align" [ ! -f s_1_1.align.csv ] && err "Failed to find expected output s_1_1.align.csv" [ ! -f s_2_1.align....
Shell
rm -f *align* *.csv
Shell
source ../testsupport.sh run *.bam [ `grep -c "Using bam file test.chr1.bam" test.out` == 2 ] || err "Incorrect number of references to test.chr1.bam" true
Shell
rm -f *.vcf *.txt
Shell
source ../testsupport.sh rm -f test.txt.* *.xml hello.* # Without an input should get a good message back run grep -q "Input expected but not provided" test.out || err "Expected error message asking for input" # Now run with multiple inputs run test.csv test.txt grep -q "Stage hello" test.out || err "Failed to fin...
Shell
source ../testsupport.sh rm -f test.world.txt test.txt run grep -q "Stage hello" test.out || err "Failed to find expected stage hello" grep -q "Stage world" test.out || err "Failed to find expected stage world" grep -q "1 2 3 4" test.out || err "Failed to find expeced output '1 1 cow'" true
Shell
source ../testsupport.sh run test.txt exists test.txt.hello true
Shell
rm -f test.txt.*
Shell
source ../testsupport.sh run test.fastq exists test.align.bai exists test.align.bam exists test.align.filter_bam.bam bpipe cleanup -y >> test.out exists test.align.filter_bam.bam # Should be cleaned up because it is an internal node notexists test.align.bam # Should be cleaned up because it accompanies an interna...
Shell
rm -f .bpipe *.bai *.bam
Shell
source ../testsupport.sh run grep -q "Stage hello" test.out || err "Failed to find expected stage hello" true
Shell
source ../testsupport.sh rm foo.txt bar.txt foo.csv foo.txt.world run test.txt grep -q "Stage hello" test.out || err "Failed to find expected stage hello" grep -q "Stage world" test.out || err "Failed to find expected stage world" [ ! -f foo.txt.world ] && err "Failed to find expected output foo.txt.world" sort ...
Shell
rm -f foo.txt bar.txt foo.csv foo.txt.world null
Shell
source ../testsupport.sh run test1.txt test2.txt exists test1.merge.csv true
Shell
rm -f *.merge.*
Shell
#!/bin/bash # A very minimal test script if [ "$1" == "start" ]; then #echo "Starting $*" echo "$COMMAND" >> dummy2.log.txt bash -c "if $COMMAND ; then echo 0 > $$.txt ; else echo 1 > $$.txt; fi" & PROCID=$! echo $PROCID echo $$ > $PROCID.id.txt elif [ "$1" == "status" ]; then SHELL_PROC_ID=`cat $2.id.tx...
Shell
#!/bin/bash # A very minimal test script if [ "$1" == "start" ]; then #echo "Starting $*" echo "$COMMAND" >> dummy1.log.txt bash -c "if $COMMAND ; then echo 0 > $$.txt ; else echo 1 > $$.txt; fi" & PROCID=$! echo $PROCID echo $$ > $PROCID.id.txt elif [ "$1" == "status" ]; then SHELL_PROC_ID=`cat $2.id.tx...
Shell