added linkedList and test for linkedList

This commit is contained in:
Marty Kraimer
2010-11-09 14:23:30 -05:00
parent 2502b381d3
commit 5a7438e028
14 changed files with 933 additions and 18 deletions
+1
View File
@@ -6,3 +6,4 @@ system ("./testIntrospect.pl");
system ("./testPVData.pl");
system ("./testPVStructureArray.pl");
system ("./testPVAuxInfo.pl");
system ("./testLinkedList.pl");
+20
View File
@@ -0,0 +1,20 @@
basic addTail 0 1 2 3 4 4 3 2 1 0
basic addHead 0 1 2 3 4
basic addTail insertAfter 0 1 2 3 4
basic addTail insertBefore 0 1 2 3 4
Queue test
queue 0 1 2 3 4
Stack test
stack 4 3 2 1 0
testList
list 0 1 2 3 4
Random insert/remove test
stack 4 3 2 1 0
Ordered Queue test
list 0 1 2 3 4
totalConstructList 8 totalDestructList 8 totalConstructListNode 4038 totalDestructListNode 4038
+12
View File
@@ -0,0 +1,12 @@
eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
if $running_under_some_shell; # testLinkedList.pl
$EPICS_HOST_ARCH = "linux-x86";
system ("rm testLinkedList");
system ("rm testLinkedListDiff");
system ("../bin/${EPICS_HOST_ARCH}/testLinkedList testLinkedList");
system ("diff testLinkedList testLinkedListGold >> testLinkedListDiff");
if(-z "testLinkedListDiff") {
print "testLinkedList OK\n";
} else {
print "testLinkedList Failed\n";
}
View File
+20
View File
@@ -0,0 +1,20 @@
basic addTail 0 1 2 3 4 4 3 2 1 0
basic addHead 0 1 2 3 4
basic addTail insertAfter 0 1 2 3 4
basic addTail insertBefore 0 1 2 3 4
Queue test
queue 0 1 2 3 4
Stack test
stack 4 3 2 1 0
testList
list 0 1 2 3 4
Random insert/remove test
stack 4 3 2 1 0
Ordered Queue test
list 0 1 2 3 4
totalConstructList 8 totalDestructList 8 totalConstructListNode 4038 totalDestructListNode 4038