mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[FLTLIB_APITEST]
- Create a skeleton test project for fltlib.dll - Not yet part of the build svn path=/trunk/; revision=72173
This commit is contained in:
parent
e5d5259ab7
commit
705846cb25
10 changed files with 399 additions and 0 deletions
16
rostests/apitests/fltlib/CMakeLists.txt
Normal file
16
rostests/apitests/fltlib/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
load.c
|
||||
handles.c
|
||||
instance.c
|
||||
instance_find.c
|
||||
filter_find.c
|
||||
volume_find.c
|
||||
info.c
|
||||
comms.c
|
||||
testlist.c)
|
||||
|
||||
add_executable(fltlib_apitest ${SOURCE})
|
||||
set_module_type(fltlib_apitest win32cui)
|
||||
add_importlibs(fltlib_apitest user32 msvcrt kernel32)
|
||||
add_cd_file(TARGET fltlib_apitest DESTINATION reactos/bin FOR all)
|
45
rostests/apitests/fltlib/comms.c
Normal file
45
rostests/apitests/fltlib/comms.c
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterConnectCommunicationPort
|
||||
// FilterSendMessage
|
||||
// FilterGetMessage
|
||||
// FilterReplyMessage
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(comms)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
47
rostests/apitests/fltlib/filter_find.c
Normal file
47
rostests/apitests/fltlib/filter_find.c
Normal file
|
@ -0,0 +1,47 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterFindFirst
|
||||
// FilterFindNext
|
||||
// FilterFindClose
|
||||
// FilterVolumeFindFirst
|
||||
// FilterVolumeFindNext
|
||||
// FilterVolumeFindClose
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(filter_find)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
45
rostests/apitests/fltlib/handles.c
Normal file
45
rostests/apitests/fltlib/handles.c
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterCreate
|
||||
// FilterClose
|
||||
// FilterInstanceCreate
|
||||
// FilterInstanceClose
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(handles)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
44
rostests/apitests/fltlib/info.c
Normal file
44
rostests/apitests/fltlib/info.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterGetInformation
|
||||
// FilterInstanceGetInformation
|
||||
// FilterGetDosName
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(info)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
44
rostests/apitests/fltlib/instance.c
Normal file
44
rostests/apitests/fltlib/instance.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterAttach
|
||||
// FilterAttachAtAltitude
|
||||
// FilterDetach
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(instance)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
44
rostests/apitests/fltlib/instance_find.c
Normal file
44
rostests/apitests/fltlib/instance_find.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterInstanceFindFirst
|
||||
// FilterInstanceFindNext
|
||||
// FilterInstanceFindClose
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(instance_find)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
44
rostests/apitests/fltlib/load.c
Normal file
44
rostests/apitests/fltlib/load.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterLoad
|
||||
// FilterUnload
|
||||
//
|
||||
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(load)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
26
rostests/apitests/fltlib/testlist.c
Normal file
26
rostests/apitests/fltlib/testlist.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
#define __ROS_LONG64__
|
||||
|
||||
#define STANDALONE
|
||||
#include <apitest.h>
|
||||
|
||||
extern void func_load(void);
|
||||
extern void func_handles(void);
|
||||
extern void func_instance(void);
|
||||
extern void func_instance_find(void);
|
||||
extern void func_filter_find(void);
|
||||
extern void func_volume_find(void);
|
||||
extern void func_info(void);
|
||||
extern void func_comms(void);
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "load", func_load },
|
||||
{ "handles", func_handles},
|
||||
{ "instance", func_instance },
|
||||
{ "instance_find", func_instance_find },
|
||||
{ "filter_find", func_filter_find },
|
||||
{ "volume_find", func_volume_find },
|
||||
{ "info", func_info },
|
||||
{ "comms", func_comms },
|
||||
{ 0, 0 }
|
||||
};
|
44
rostests/apitests/fltlib/volume_find.c
Normal file
44
rostests/apitests/fltlib/volume_find.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* FltLib related functions tests
|
||||
*
|
||||
* Copyright 2016 Ged Murphy (ged.murphy@reactos.org)
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public Licence as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
|
||||
//
|
||||
// Tests for:
|
||||
// FilterVolumeInstanceFindFirst
|
||||
// FilterVolumeInstanceFindNext
|
||||
// FilterVolumeInstanceFindClose
|
||||
//
|
||||
|
||||
static void test_FIXME(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
START_TEST(volume_find)
|
||||
{
|
||||
test_FIXME();
|
||||
}
|
Loading…
Reference in a new issue