test: alternative test scripts
One script which can serve all tests Other tests are symlinks
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Make things golden...
|
||||
|
||||
for ff in *Diff
|
||||
do
|
||||
[ -s "$ff" ] || continue
|
||||
|
||||
cp "${ff%Diff}" "${ff%Diff}Gold"
|
||||
done
|
||||
Executable
+14
@@ -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 $?
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Executable
+33
@@ -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
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
testPVType.sh
|
||||
Reference in New Issue
Block a user