[Kst] kdeextragear-2/kst/tests
George Staikos
staikos at kde.org
Wed Nov 5 23:33:18 CET 2003
CVS commit by staikos:
more regression tests
M +42 -0 test1.sh 1.5
--- kdeextragear-2/kst/tests/test1.sh #1.4:1.5
@@ -26,4 +26,5 @@
$QUIT
rm $TMPFILE
+ rm $TESTFILE
exit $1;
}
@@ -370,4 +371,45 @@
checkStringResponse 516 "true"
+TESTFILE=`mktemp /tmp/Kst_TestData.XXXXXX` || exit 3
+declare -i ln=0
+while [ $ln -lt 1000 ]; do
+ echo $ln | awk "{print $ln, sin($ln/10), ($ln/100)^2, cos($ln/10)}" >>$TESTFILE
+ declare -i ln=1+$ln;
+done
+
+# Read in the vectors
+$DCOP loadVector $TESTFILE INDEX >$TMPFILE
+VINDEX=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 600
+
+$DCOP loadVector $TESTFILE 2 >$TMPFILE
+V2=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 601
+
+$DCOP loadVector $TESTFILE 3 >$TMPFILE
+V3=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 602
+
+$DCOP loadVector $TESTFILE 4 >$TMPFILE
+V4=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 603
+
+$DCOP createCurve "firstCurve" $VINDEX $V2 "" "" >$TMPFILE
+CURVE1=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 604
+
+$DCOP createPlot "firstPlot" >$TMPFILE
+PLOT1=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 605
+
+$DCOP addCurveToPlot $PLOT1 $CURVE1 >$TMPFILE
+checkStringResponse 606 "true"
+
+$DCOP createCurve "firstCurve" $VINDEX $V3 "" "" >$TMPFILE
+CURVE2=`cat $TMPFILE | tr -d '\n'`
+checkEmptyResponse 607
+
+$DCOP addCurveToPlot $PLOT1 $CURVE2 >$TMPFILE
+checkStringResponse 608 "true"
More information about the Kst
mailing list