test: alternative test scripts

One script which can serve all tests
Other tests are symlinks
This commit is contained in:
Michael Davidsaver
2011-02-08 13:28:03 -05:00
parent 72b5354cb5
commit 48cf333e29
15 changed files with 69 additions and 0 deletions

10
test/plate.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Make things golden...
for ff in *Diff
do
[ -s "$ff" ] || continue
cp "${ff%Diff}" "${ff%Diff}Gold"
done

14
test/testAll.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
./testPVType.sh || exit $?
./testThread.sh || exit $?
./testLinkedList.sh || exit $?
./testIntrospect.sh || exit $?
./testPVData.sh || exit $?
./testPVStructureArray.sh || exit $?
./testPVAppend.sh || exit $?
./testPVAuxInfo.sh || exit $?
./testTimeStamp.sh || exit $?
./testTimer.sh || exit $?
./testQueue.sh || exit $?
./testMessageQueue.sh || exit $?

1
test/testIntrospect.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testLinkedList.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testMessageQueue.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testPVAppend.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testPVAuxInfo.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testPVData.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

View File

@@ -0,0 +1 @@
testPVType.sh

33
test/testPVType.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/sh
SELF="`basename "$0"`"
TEST="${SELF%.sh}"
if [ -z "$EPICS_HOST_ARCH" ]; then
echo "Please set EPICS_HOST_ARCH and run again"
exit 1
fi
rm -f $TEST ${TEST}Diff ${TEST}Aux
if ../bin/${EPICS_HOST_ARCH}/$TEST $TEST ${TEST}Aux 2>&1 >/dev/null
then
printf "" # OK
else
printf "$TEST Failed to complete\n"
fi
if [ -e $TEST -a -e ${TEST}Gold ]
then
diff -u ${TEST}Gold $TEST >> ${TEST}Diff
if [ -s "${TEST}Diff" ]
then
printf "$TEST Does not match expectations\n"
cat ${TEST}Diff
printf "\n\n"
else
printf "$TEST OK\n"
fi
else
printf "$TEST OK\n"
fi

1
test/testProperty.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testQueue.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testThread.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testTimeStamp.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh

1
test/testTimer.sh Symbolic link
View File

@@ -0,0 +1 @@
testPVType.sh