Issue 1252 - sal workben not useful test suite
sal workben not useful test suite
Status: CLOSED NOT_AN_ISSUE
Product: udk
Classification: Code
Component: documentation
633
All All
: P3 trivial (vote)
: OOo 2.0
Assigned To: hennes.rohling
issues@udk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2001-07-17 01:58 UTC by issues@www
Modified: 2005-02-25 09:45 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation on: ---
Developer Difficulty: ---


Attachments
sal/workben/tgetpwnam.cxx : Patch to compile on IRIX, and use gethostbyname_r correctly (2.92 KB, patch)
2003-12-06 14:52 UTC, issues@www
no flags Details | Diff
sal/test : Patch to compile in 632 (3.75 KB, patch)
2003-12-06 14:52 UTC, issues@www
no flags Details | Diff
sal/tests : Patch to compile in 632 (2.64 KB, patch)
2003-12-06 14:52 UTC, issues@www
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description issues@www 2001-07-17 01:58:09 UTC
While I am building later modules, I am trying to verify earlier modules are 
working properly.  The test programs in workben in the sal module require 
editing of makefile.mk to build, rarely build (at least on IRIX), have fixed 
string's for usernames and hostnames which therefore end up with failed tests, 
and have gross logic errors.

If this was another module, I would be less concerned, however I believe it is 
very important to verify that 'sal' is working correctly.
Comment 1 issues@www 2001-07-17 02:07:19 UTC
Or am I under the wrong impression that 'workben' = 'test suite' ?  
Comment 2 issues@www 2001-07-17 02:08:27 UTC
Created attachment 392 [details]
sal/workben/tgetpwnam.cxx : Patch to compile on IRIX, and use gethostbyname_r correctly
Comment 3 issues@www 2001-07-19 00:31:16 UTC
Created attachment 403 [details]
sal/test : Patch to compile in 632
Comment 4 issues@www 2001-07-19 00:31:46 UTC
Created attachment 404 [details]
sal/tests : Patch to compile in 632
Comment 5 issues@www 2001-07-19 00:46:09 UTC
sal/test produced sal/unxirxm3.pro/bin/test

% sal/unxirxm3.pro/bin/test
test_OString OK !!!
test_OStringBuffer OK !!!
test_OWStringBuffer OK !!!
Warning: Jumping system clock resolution 70 -> 50 (100 ns Ticks)
Warning: Jumping system clock resolution 50 -> 40 (100 ns Ticks)
System time resolution : 40 [100ns Ticks]
test_uuid OK
test bytesequence OK
test_Uri done

sal/tests produced sal/unxirxm3.pro/lib/libosl_apitest.so , however I can not 
find any binary that exercises this dso.
Comment 6 Martin Hollmichel 2001-07-26 14:26:56 UTC
Hennes, I think you are able to help to determine the right person for this 
issue ?!
Comment 7 hennes.rohling 2001-07-26 15:17:57 UTC
sal/workbench and sal/test where only used for some "quick and dirty test". 
From my point of view they're target for elemination. Actually sal/tests is the 
right directory for api testing code where Patrick Luby is responsible for.

Comment 8 Unknown 2001-07-26 18:28:28 UTC
Please visit the URL at:  http://udk.openoffice.org/common/man/tasks/

apitests.html



This documents the effort to add API testing for sal's osl and rtl sub-

directories.  It explains where the source code is, and how to run the tests.

Comment 9 pluby 2001-07-26 18:31:45 UTC
Reassigning to Gene Anaya.
Comment 10 issues@www 2001-07-30 05:17:10 UTC
Thanks for the info ... however the testsuite doesnt work quite the way the 
documents indicate.  Rather than interate thru a list of symbols in a file 
specified on the command line, it accepts a symbol on the command line/

% testshl sal/unxirxm3.pro/lib/librtl_OString.so sal/tests/sce/rtl_OString.sce
sal/tests/sce/rtl_OString.sce;symbol not found#FAILED#

% testshl sal/unxirxm3.pro/lib/librtl_OString.so `head -1 
sal/tests/sce/rtl_OString.sce`
rtl_OString_ctors_01;PASSED#OK#

Also can I point out that as well as sal/tests being broken in 632 (see attach 
404) it is also broken in 633.

g++ -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxirxm3.pro/inc -I. -
I/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/solver/633/unxirxm3.pro/inc -
I/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/solver/633/unxirxm3.pro/inc/external -
I/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/solenv/unxirxm3/inc -
I/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/solenv/inc -I/projects/sise/openoffice/devel/workpits/633-
irix-gcc-libstdc++/workarea/res -I/projects/sise/openoffice/devel/workpits/633-
irix-gcc-libstdc++/workarea/solenv/inc/Xp31 -
I/usr/local/java_1.2.2/usr/java//include -
I/usr/local/java_1.2.2/usr/java//include/irix -
I/usr/local/java_1.2.2/usr/java//include/native_threads/include     -I. -
I../res -I. -O2   -fno-for-scope -fpermissive    -fpic -DIRIX -DUNX -DVCL -
DGCC -DC295 -DMIPS -DUSE_PSPRINT -DTF_UCB -DENABLEUNICODE -DTF_FILTER -
DTF_FILEURL -DCVER=C295 -D_USE_NAMESPACE -DVCL -D_STD_NO_NAMESPACE -
D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -D__DMAKE -DUNIX -DSUPD=633 -
DBUILD=6901 -DSOLAR_PLUGIN -DVCL -DSO3 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -
DOPTIMIZE -DEXCEPTIONS_OFF -DGUI  -DSRC633  -DTF_ONE51 -DSHAREDLIB -D_DLL_  -
DMULTITHREAD  -
o ../unxirxm3.pro/slo/osl_apitest_file.o /projects/sise/openoffice/devel/workpit
s/633-irix-gcc-libstdc++/workarea/sal/tests/osl_apitest_file.cxx
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_osl_openDirectory(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:92: warning: implicit 
declaration of function `int osl_normalizePath(...)'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_osl_createDirectoryItemFromHandle(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:590: warning: implicit 
declaration of function `int osl_createDirectoryItemFromHandle(...)'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_osl_getAbsolutePath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:738: warning: implicit 
declaration of function `int osl_getAbsolutePath(...)'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_osl_getNormalizedPathFromFileURL(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:782: warning: implicit 
declaration of function `int osl_getFileURLFromNormalizedPath(...)'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:783: warning: implicit 
declaration of function `int osl_getNormalizedPathFromFileURL(...)'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_getCanonicalName(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:895: warning: comparison 
between `enum osl::FileBase::RC' and `enum oslFileError'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_getAbsolutePath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:915: no method 
`osl::FileBase::getAbsolutePath'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_normalizePath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:941: no method 
`osl::FileBase::normalizePath'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_getNormalizedPathFromFileURL(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:975: no method 
`osl::FileBase::getNormalizedPathFromFileURL'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_getFileURLFromNormalizedPath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1006: no method 
`osl::FileBase::getFileURLFromNormalizedPath'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileBase_getSystemPathFromNormalizedPath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1038: no method 
`osl::FileBase::getSystemPathFromNormalizedPath'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_VolumeDevice_automount(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1116: warning: comparison 
between `enum osl::FileBase::RC' and `enum oslFileError'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_VolumeDevice_unmount(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1131: warning: comparison 
between `enum osl::FileBase::RC' and `enum oslFileError'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileStatus_getFileType(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1202: warning: comparison 
between `enum osl::FileStatus::Type' and `enum oslFileType'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileStatus_getFilePath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1320: no matching function 
for call to `osl::FileStatus::getFilePath ()'
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx: In function `void 
test_osl_file_FileStatus_getNativePath(rtl::TestResult *)':
/projects/sise/openoffice/devel/workpits/633-irix-gcc-
libstdc++/workarea/sal/tests/osl_apitest_file.cxx:1337: no matching function 
for call to `osl::FileStatus::getNativePath ()'
dmake:  Error code 1, while making '../unxirxm3.pro/slo/osl_apitest_file.obj'
---* TG_SLO.MK *---
Comment 11 Unknown 2001-09-09 22:51:29 UTC
I have been reassigned off of open office.
Comment 12 sander_traveling 2002-05-14 23:28:28 UTC
is this a udk issue? or where do the api test releated bugs belong?
Comment 13 kay.ramme 2002-06-03 17:14:08 UTC
Hennes, this one is for you, please delete the unneccessary
directories and schedule when we want to make/fix the tests
Comment 14 hennes.rohling 2002-06-10 14:59:14 UTC
Unless there's a clear definition how a testing environment has to 
be set up P1 is somewhat overstated.
Comment 15 hennes.rohling 2002-12-10 14:21:33 UTC
Change of test framework isn't scheduled for OOo 1.1 Beta -> Target 
MileStone = "OOo 2.0"
Comment 16 hennes.rohling 2005-02-25 09:45:26 UTC
.