test: alternative test scripts
One script which can serve all tests Other tests are symlinks
This commit is contained in:
10
test/plate.sh
Executable file
10
test/plate.sh
Executable 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
14
test/testAll.sh
Executable 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
1
test/testIntrospect.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testLinkedList.sh
Symbolic link
1
test/testLinkedList.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testMessageQueue.sh
Symbolic link
1
test/testMessageQueue.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testPVAppend.sh
Symbolic link
1
test/testPVAppend.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testPVAuxInfo.sh
Symbolic link
1
test/testPVAuxInfo.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testPVData.sh
Symbolic link
1
test/testPVData.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testPVStructureArray.sh
Symbolic link
1
test/testPVStructureArray.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
33
test/testPVType.sh
Executable file
33
test/testPVType.sh
Executable 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
1
test/testProperty.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testQueue.sh
Symbolic link
1
test/testQueue.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testThread.sh
Symbolic link
1
test/testThread.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testTimeStamp.sh
Symbolic link
1
test/testTimeStamp.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
1
test/testTimer.sh
Symbolic link
1
test/testTimer.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Reference in New Issue
Block a user