Commit Graph

78 Commits

Author SHA1 Message Date
Ingo Weinhold
2d350d3dba The hack needed to be able to communicate with our registrar though not linking against libopenbeos has been moved to BDiskDeviceRoster. Link against libdiskdevice now, instead of compiling the sources in.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 00:47:25 +00:00
Ingo Weinhold
fdb95f3aeb Added the new classes needed for the DiskDevice API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-22 23:56:52 +00:00
Ingo Weinhold
73574809d0 Added BDiskDeviceList and test it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 00:26:00 +00:00
Ingo Weinhold
295fcc8865 Removed some debug info. Changes due to the removal of the extended_partition_info::partition_code field.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-18 21:33:23 +00:00
Ingo Weinhold
45a89df921 BDiskDevice::Eject() and GetName() are used now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-16 18:09:26 +00:00
Ingo Weinhold
875f291891 Recognizes all notification messages now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 23:16:34 +00:00
Ingo Weinhold
77d6501f22 Added notification tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-10 00:24:51 +00:00
Ingo Weinhold
851a7b6fe7 Added small test program for the Disk Device API. Doesn't do much for now -- only dumps the current list of disk devices. The iteration code seems to work. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 23:40:11 +00:00
beveloper
e3cb015484 modified per Ingo's request
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-16 17:01:01 +00:00
Ingo Weinhold
be4eaeda92 Added virtualdrive driver. Original code by Marcus.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:56:56 +00:00
Ingo Weinhold
d0d716f9c8 Fixed BVolume and added BVolumeRoster tests. Consider this to be complete now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:54:47 +00:00
Ingo Weinhold
9b9ca68883 Added virtualdriver to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:53:43 +00:00
Ingo Weinhold
38ce9b085e Added boolean argument to {create,delete}Volume() specifying whether or not the mount point shall be made/deleted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:52:58 +00:00
Ingo Weinhold
467cfff600 Added BVolume tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 17:07:33 +00:00
Ingo Weinhold
f0261ccddf `resources' subdir containing the test data for BResources and BResourceStrings is now also linked to R5 test dir.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 21:00:28 +00:00
Ingo Weinhold
f788b9354b Reverted to previous version. The tests do compile and link again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 20:23:51 +00:00
Tyler Dauwalder
8e07bd3faf #ifdef'd out R5 versions of tests that tried to use functions not found
in R5 version of the Storage Kit.

This appears to fix the BSymLink linking errors, at least as a temporary
fix.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 02:40:06 +00:00
Tyler Dauwalder
e74030b843 + Added meta mime file test to sniffing test
+ Added commented out update_meta_mime(NULL) and
  create_app_meta_mime(NULL) calls for the adventurous
  tester.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:38:53 +00:00
Tyler Dauwalder
682cd7e59c Made some minor adjustments to help figuring out how mime update
calls work (still in progress).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:19:00 +00:00
Tyler Dauwalder
789d7cbe2d Fixed parse(NULL,...) test descrepancy
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 09:36:43 +00:00
Tyler Dauwalder
1bd963b6c2 + Added file-extension based mime type guessing
+ Added sniffer rule based mime type guessing
+ Added get_device_icon()
+ Added complete (synchronous, asynchronous; recursive,
  non-recursive; forcing, non-forcing; you name it we got it :-)
  update_mime_info() implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:36:03 +00:00
Ingo Weinhold
344a28b86f Added debug output to understand why the parser test fails.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:17:41 +00:00
Ingo Weinhold
ce61895f3e We now support MIME strings of maximal length B_MIME_TYPE_LENGTH including the null only. Adjusted the tests accordingly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:08:51 +00:00
Tyler Dauwalder
e3a2f2069e + Added SetSupportedTypes() test
+ Modified BMimeType::SetSupportedTypes functionality so it keeps track of
stranded types (i.e. previously supported types that have not had the now
unsupporting app signature removed from their supporting apps list yet due
to a false fullSync parameter) over consecutive SetSupportedTypes(...,
false) calls and updates all appropriate stranded types on the next
SetSupportedTypes(..., true) call.
+ Added fullSync parameter to BMimeType::DeleteSupportedTypes
+ Made BMimeType::Delete() do a DeleteSupportedTypes(..., true) call to
properly update the supporting apps lists when a mime type is deleted.
+ Added initial BMimeType::Get/SetSnifferRule
+ Updated BMimeType::CheckSnifferRule() to return B_BAD_VALUE when passed
a NULL rule string.
+ Brought CheckSnifferRule() tests up to date
+ Added lots of Mime::Database doxygen
+ Added any missing mime monitor notifications in Mime::Database
+ Possibly made some other changes as well... :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-09 08:12:03 +00:00
Ingo Weinhold
5097cb0445 Documented usage of BBitmap::SetBits().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 16:59:24 +00:00
Ingo Weinhold
77bb876f71 libstorage.so is gone.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:14:11 +00:00
Ingo Weinhold
b2383c7575 Added a test for SetSupportedTypes().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-30 20:07:55 +00:00
Tyler Dauwalder
a6e96214ed Killed a warning dead.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 00:01:17 +00:00
Tyler Dauwalder
74ec200f31 Added a #if clause to exclude the __mime_table code from the
OBOS::GetSupportingApps() tests, as the __mime_table is not
currently used.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 00:00:57 +00:00
Tyler Dauwalder
f7046d7717 + Updated Installed Types test slightly
+ Cleaned up warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 08:29:05 +00:00
Ingo Weinhold
d1bafb18f2 Added BNodeInfo and BAppFileInfo tests to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 22:54:21 +00:00
Ingo Weinhold
1e715a58c4 Added tests for supported types methods and fixed some other tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 22:52:57 +00:00
Ingo Weinhold
e7a0c94298 Added tests for {Get,Set}{Type,Signature,AppFlags,Icon,VersionInfo,IconForType}() and fixed some details of the info location tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 23:26:18 +00:00
Tyler Dauwalder
fde08bf3f4 + Updated InstalledTypesTest() to recheck GetInstalledTypes()
and friends after installing and deleting from the database.
+ Updated database dir constant per the recent mime migration


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 04:52:56 +00:00
Tyler Dauwalder
3155eae222 + Added code/updated tests for
- AttrInfo
  - FileExtensions
+ Updated Delete() code to send monitor updates
+ Tenatively added "be:action" field to monitor messages
+ Added data type constants


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 10:55:20 +00:00
Tyler Dauwalder
dd0ba994cc Updated the following tests to account for new behaviour
of BMimeType::Set*(NULL) calls as well as test new
BMimeType::Delete*() calls:
+ PreferredApp
+ AppHint
+ LongDescription
+ ShortDescription
+ Icon
+ IconForType


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-20 09:38:54 +00:00
Tyler Dauwalder
9c561e6537 + Updated tests:
- PreferredApp
  - AppHint
  - Icon
+ Added reduce_color_depth() helper function

B_GRAY1 to B_CMAP8 color conversions still
need to be tested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:43:47 +00:00
Ingo Weinhold
e11ff37981 Finished the BAppFileInfo::SetInfoLocation() tests. This was hell, but now it's fortunately over. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 21:19:52 +00:00
Ingo Weinhold
216921555f First BAppFileInfo tests. Complete constructor tests and the beginning of SetInfoLocation()/IsUsing{Attributes,Resources}() tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 00:01:26 +00:00
Tyler Dauwalder
75120765af Modified MimeTypeTestSuite slightly so as to not remove the copied
mime database directory if it already existed in the first place.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 23:21:48 +00:00
Tyler Dauwalder
dda17c0010 Updated OBOS tests to use look in the same directory as the MimeDatabase
class does for the mime database. Also, if said directory is different than the
system directory, a copy is first made when necessary, and then removed
when the tests are done.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:10:38 +00:00
Ingo Weinhold
5f514448e1 Adjusted some tests to make the OBOS version of BNodeInfo pass them.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 17:47:54 +00:00
Ingo Weinhold
11f4a13999 Finished the remaining BNodeInfo tests ({Get,Set}AppHint() and GetTrackerIcon()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-15 21:55:03 +00:00
Ingo Weinhold
1b2961a310 Added tests for BNodeInfo::{Set,Get}{Icon,PreferredApp}().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-14 21:04:19 +00:00
Ingo Weinhold
0f57d51474 First BNodeInfo tests for constructors, SetTo() and Set/GetType().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 22:36:54 +00:00
Tyler Dauwalder
09d84e61b6 + Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 08:42:01 +00:00
Tyler Dauwalder
64b563e06b Finally finished off GetSupportingApps() test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 04:20:31 +00:00
Tyler Dauwalder
c5ff4aa6f5 It became apparent that in order to assure obos tests are run
with obos libs and r5 tests are run with r5 libs, two separate
unit testing programs in different directories would be needed.
Thus UnitTester is now just a shell program that calls the
appropriate unittester/UnitTester or unittester_r5/UnitTester_r5
program.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 03:45:17 +00:00
Tyler Dauwalder
1f6ca7567b Removed failing "quotes in unquoted string" tests, as quotes are now allowed in unquoted strings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 03:31:23 +00:00
Tyler Dauwalder
3035279e84 Added case-insensitivity tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36:41 +00:00