Hi,

I was investigating and found that: ltp/testcases/kernel/module/* test
cases are not built/installed and run. However the ltp/runtest/
directory tells that ltp/runtest/modules have the provision to run the
following tests:

delete_module01,
delete_module02,
delete_module03,

But no clue why ltp/testcases/kernel/Makefile does not build the module
directory. And no mention of why:

create_module01,
query_module01,
query_module02, &
query_module03

does not run.

On trying to build them, i got the first error:

cc -Wall -O -g -I../../../../include    create_module01.c
-L../../../../lib -lltp   -o create_module01
create_module01.c:68:24: error: asm/atomic.h: No such file or directory
create_module01.c:69:26: error: linux/module.h: No such file or
directory
create_module01.c: In function ‘main’:
create_module01.c:108: warning: implicit declaration of function
‘create_module’
create_module01.c:117: warning: implicit declaration of function
‘delete_module’

On removing the inclusion of "asm/atomic.h" & "linux/module.h", i was
able to build just "create_module01". And the remaining gave me the
following error:

cc -Wall -O -g -I../../../../include    create_module02.c
-L../../../../lib -lltp   -o create_module02
create_module02.c:124: error: variably modified ‘longmodname’ at file
scope
create_module02.c:155: warning: integer constant is too large for ‘long’
type
create_module02.c:155: warning: large integer implicitly truncated to
unsigned type
create_module02.c: In function ‘main’:
create_module02.c:186: warning: implicit declaration of function
‘create_module’
create_module02.c: In function ‘cleanup2’:
create_module02.c:250: warning: implicit declaration of function
‘delete_module’
make: *** [create_module02] Error 1



cc -I../../../../include -Wall delete_module01.c -L../../../../lib -lltp
-o delete_module01
delete_module01.c: In function ‘main’:
delete_module01.c:117: warning: implicit declaration of function
‘delete_module’
cc -I../../../../include -Wall delete_module02.c -L../../../../lib -lltp
-o delete_module02
delete_module02.c:116: error: variably modified ‘longmodname’ at file
scope
delete_module02.c: In function ‘main’:
delete_module02.c:168: warning: implicit declaration of function
‘delete_module’
delete_module02.c:170: warning: format ‘%d’ expects type ‘int’, but
argument 2 has type ‘long int’
delete_module02.c:170: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘long int’
make: *** [delete_module02] Error 1



cc -I../../../../include -Wall query_module01.c -L../../../../lib -lltp
-o query_module01
query_module01.c:93:24: error: asm/atomic.h: No such file or directory
query_module01.c:94:26: error: linux/module.h: No such file or directory
query_module01.c:123: error: variably modified ‘longmodname’ at file
scope
query_module01.c:125: error: variably modified ‘out_buf’ at file scope
query_module01.c:139: error: ‘QM_MODULES’ undeclared here (not in a
function)
query_module01.c:142: error: ‘QM_DEPS’ undeclared here (not in a
function)
query_module01.c:145: error: ‘QM_REFS’ undeclared here (not in a
function)
query_module01.c:148: error: ‘QM_INFO’ undeclared here (not in a
function)
query_module01.c:151: error: ‘QM_SYMBOLS’ undeclared here (not in a
function)
query_module01.c: In function ‘main’:
query_module01.c:191: warning: implicit declaration of function
‘query_module’
query_module01.c: In function ‘test_functionality’:
query_module01.c:254: error: dereferencing pointer to incomplete type
query_module01.c:254: error: request for member ‘flags’ in something not
a structure or union
query_module01.c:255: error: ‘MOD_RUNNING’ undeclared (first use in this
function)
query_module01.c:255: error: (Each undeclared identifier is reported
only once
query_module01.c:255: error: for each function it appears in.)
query_module01.c:255: error: invalid operands to binary &


And when i ran the successfully compiled "create_module01", i got the
following output:

# ./create_module01 
create_module01    1  CONF  :  This test will not work on kernels after
2.5.48


Now i have the following questions:

1) Has anybody tried to compile them before,
2) Is there any necessity to execute these tests now ?

If yes, how do we solve this and integrate them ?

Regards--
Subrata



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to