2007-03-02 08:58:22 +03:00
/*
UNIX Extensions test registration .
2007-03-06 01:26:38 +03:00
Copyright ( C ) 2007 James Peach
2007-03-02 08:58:22 +03:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2007-03-02 08:58:22 +03:00
( at your option ) any later version .
This program 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
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2007-03-02 08:58:22 +03:00
*/
# include "includes.h"
2008-04-27 17:02:46 +04:00
# include "torture/smbtorture.h"
2007-03-02 08:58:22 +03:00
# include "torture/unix/proto.h"
NTSTATUS torture_unix_init ( void )
{
struct torture_suite * suite =
2010-12-11 05:26:31 +03:00
torture_suite_create ( talloc_autofree_context ( ) , " unix " ) ;
2007-03-02 08:58:22 +03:00
suite - > description =
talloc_strdup ( suite , " CIFS UNIX extensions tests " ) ;
torture_suite_add_simple_test ( suite ,
2010-12-11 05:26:31 +03:00
" whoami " , torture_unix_whoami ) ;
2007-03-06 01:26:38 +03:00
torture_suite_add_simple_test ( suite ,
2010-12-11 05:26:31 +03:00
" info2 " , unix_torture_unix_info2 ) ;
2007-03-02 08:58:22 +03:00
return ( torture_register_suite ( suite ) ) ? NT_STATUS_OK
: NT_STATUS_UNSUCCESSFUL ;
}