aboutsummaryrefslogtreecommitdiffstats
path: root/test/Scripts
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-24 06:23:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-24 06:23:57 +0000
commit48f7ce88a6040c12d4c7d0a5bd208cf1e0bda9d1 (patch)
tree75a27db368fdd75ef3cc3eab7d85501843d70018 /test/Scripts
parentb55e068e53fccc609b7d9cd198ed9818c188a196 (diff)
downloadexternal_llvm-48f7ce88a6040c12d4c7d0a5bd208cf1e0bda9d1.zip
external_llvm-48f7ce88a6040c12d4c7d0a5bd208cf1e0bda9d1.tar.gz
external_llvm-48f7ce88a6040c12d4c7d0a5bd208cf1e0bda9d1.tar.bz2
Add count/not tools as executables.
- Apparently, I'm willing to do incredibly stupid things in the name of portability. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/count17
-rwxr-xr-xtest/Scripts/not12
2 files changed, 0 insertions, 29 deletions
diff --git a/test/Scripts/count b/test/Scripts/count
deleted file mode 100755
index 1c3d7e0..0000000
--- a/test/Scripts/count
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-#
-# Program: count
-#
-# Synopsis: Count the number of lines of input on stdin and test that it
-# matches the specified number.
-#
-# Syntax: count <number>
-
-set -e
-set -u
-input_lines=`wc -l`
-if [ "$input_lines" -ne "$1" ]; then
- echo "count: expected $1 lines and got ${input_lines}."
- exit 1
-fi
-exit 0
diff --git a/test/Scripts/not b/test/Scripts/not
deleted file mode 100755
index e3b1efe..0000000
--- a/test/Scripts/not
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-#
-# Program: not
-#
-# Synopsis: Inverse the output of the program specified on the command line
-#
-# Syntax: not command <arguments>
-
-if "$@"
-then exit 1
-else exit 0
-fi