Fix Bash tests.

This commit is contained in:
Daniel Nichter
2012-02-02 10:03:48 -07:00
parent e67020addb
commit 4d462bbbdd
31 changed files with 43 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/in
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=2
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Specs | Adaptec 3405, SAS/SATA, 128 MB cache, Optimal

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=5
TMPDIR=$TEST_TMPDIR
TEST_NAME="dmidecode-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Controller | Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
Controller | Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Device Type Start End Size
============ ==== ========== ========== ==================

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=4
TMPDIR=$TEST_TMPDIR
TEST_NAME="df-mount-003.txt Linux"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Total | 3.89G

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=3
TMPDIR=$TEST_TMPDIR
TEST_NAME="lsiutil-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
logicaldrive 1 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=2
TMPDIR=$TEST_TMPDIR
TEST_NAME="ip-s-link-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=6
TMPDIR=$TEST_TMPDIR
# ############################################################################
cat <<EOF > $TMPDIR/expected

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=2
TMPDIR=$TEST_TMPDIR
TEST_NAME="netstat-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Processors | physical = 1, cores = 2, virtual = 2, hyperthreading = no
Speeds | 2x1300.000

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=4
TMPDIR=$TEST_TMPDIR
TEST_NAME="dmesg-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TESTS=5
TMPDIR=$TEST_TMPDIR
TEST_NAME="lspci-001.txt"
cat <<EOF > $TMPDIR/expected

View File

@@ -1,5 +1,8 @@
#!/bin/bash
TESTS=1
TMPDIR=$TEST_TMPDIR
cat <<EOF > $TMPDIR/expected
Xen
EOF