Skip to content

Commit 7b432cb

Browse files
committed
some updates for the test suite
1 parent 9801372 commit 7b432cb

File tree

8 files changed

+33
-3662
lines changed

8 files changed

+33
-3662
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.cvsignore
22
CVS/
3+
compile
4+
archives
35
FerrisStreams/.cvsignore
46
FerrisStreams/CVS/
57
FerrisStreams/Makefile
@@ -64,3 +66,16 @@ debian/prerm.ex
6466
debian/shlibs.local.ex
6567
debian/tmp/
6668
debian/watch.ex
69+
70+
ferrisstreams.log
71+
ferrisstreams.sum
72+
73+
testsuite/ut_close_signal
74+
testsuite/ut_fd_streams
75+
testsuite/ut_limiting_istream
76+
testsuite/ut_nullstream
77+
testsuite/ut_proxy_streams
78+
testsuite/ut_radix_dump
79+
testsuite/ut_stringstream
80+
testsuite/ut_tee_stream
81+

FerrisStreams/Streams.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
#include <sigc++/sigc++.h>
7676
#include <sigc++/signal.h>
7777
#include <sigc++/slot.h>
78-
#include <sigc++/object.h>
7978
#include <sigc++/connection.h>
8079

8180
#include <stdio.h>

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT(ferrisstreams, 0.6.6)
1+
AC_INIT(ferrisstreams, 0.7.0)
22

33
PACKAGE=$PACKAGE_NAME
44
VERSION=$PACKAGE_VERSION

runtest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
rm -rf /tmp/sampledata
4+
/usr/bin/cp -avf testsuite/sampledata /tmp
5+
runtest -v -v --tool ferrisstreams EXBASE=`pwd`/ SDATA=`pwd`/testsuite/sampledata --srcdir `pwd`/testsuite
6+

testsuite/sampledata/alice13a.txt

Lines changed: 0 additions & 3649 deletions
This file was deleted.

testsuite/ut_limiting_istream.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ fh_ostream& E()
7474

7575
void runtest()
7676
{
77-
fh_ifstream base_iss("/tmp/alice13a.txt" );
77+
fh_ifstream base_iss("/tmp/sampledata/file.txt" );
7878

7979
std::streampos be = 200;
8080
std::streampos en = 200 + 20;
81-
string expected = "esearch Electronic L";
82-
// dd if=/tmp/alice13a.txt of=/tmp/chunk bs=20 count=1 skip=10
81+
string expected = "/lZaKDh/8ANZ7owpNGkf";
82+
// dd if=/tmp/sampledata/file.txt of=/tmp/chunk bs=20 count=1 skip=10
8383

8484
fh_istream ss = Factory::MakeLimitingIStream( base_iss, be, en );
8585
string s;

testsuite/ut_proxy_streams.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ fh_ostream& E()
7474

7575
void runtest()
7676
{
77-
fh_ifstream* base_iss = new fh_ifstream("/tmp/alice13a.txt" );
77+
fh_ifstream* base_iss = new fh_ifstream("/tmp/sampledata/file.txt" );
7878
fh_istream ss = Factory::MakeProxyStream( base_iss, true );
7979
base_iss = 0;
8080

81-
ss.seekg( 200 );
81+
ss.seekg( 999 * 77 );
8282
string s;
83-
string expected = "esearch";
83+
string expected = "u0";
8484
ss >> s;
8585
if( s != expected )
8686
{
@@ -89,7 +89,7 @@ void runtest()
8989
<< " got:" << s << endl;
9090
}
9191

92-
expected = "Electronic";
92+
expected = "KljEoLUKJ";
9393
ss >> s;
9494
if( s != expected )
9595
{

testsuite/ut_tee_stream.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ void runtest()
101101

102102
{
103103
fh_stringstream ss1;
104-
fh_ofstream ss2("/tmp/alice13a.txt.out",ios::trunc|ios::out);
104+
fh_ofstream ss2("/tmp/sampledata/file.txt.out",ios::trunc|ios::out);
105105

106106
fh_ostream oss = Factory::MakeTeeStream( ss1, ss2 );
107-
fh_ifstream iss("/tmp/alice13a.txt" );
107+
fh_ifstream iss("/tmp/sampledata/file.txt" );
108108

109109
copy( iss, oss );
110110
cout << "ss1.size:" << ss1.str().size() << endl;
111-
if( 153477 != ss1.str().size() )
111+
if( 100002 != ss1.str().size() )
112112
{
113113
E() << "ss1 in memory copy of alice13a is incorrect size"
114-
<< " expected:" << 153477
114+
<< " expected:" << 100002
115115
<< " got:" << ss1.str().size()
116116
<< endl;
117117
}

0 commit comments

Comments
 (0)