Adding Testcases to modules

shivu prasad shivaprasad2452 at gmail.com
Fri Oct 5 09:25:50 CEST 2018


Hi All,

I am implementing the custom module, module implementation is completed
able to test It. I need to add the test cases for the modules
I gone through src/tests/modules tried to run the exiting commands
make tests
make tests modules/always   ---> testing always module

Keep on getting
(0) No reply from server for ID 206 socket 3
test.example.com_1 : FAILED
Sent Access-Request Id 206 from 0.0.0.0:37541 to 127.0.0.1:12340 length 96
    User-Name = "bob at test.example.com"
    User-Password = "bob"
    Test-Name = "test.example.com"
    Test-Number = 1
    Cleartext-Password = "bob"
Sent Access-Request Id 206 from 0.0.0.0:37541 to 127.0.0.1:12340 length 96
    User-Name = "bob at test.example.com"
    User-Password = "bob"
    Test-Name = "test.example.com"
    Test-Number = 1
    Cleartext-Password = "bob"
Sent Access-Request Id 206 from 0.0.0.0:37541 to 127.0.0.1:12340 length 96
    User-Name = "bob at test.example.com"
    User-Password = "bob"
    Test-Name = "test.example.com"
    Test-Number = 1
    Cleartext-Password = "bob"
See radclient.log for more details
*make: *** [tests] Error 1*

Even the radclient.log has not much info.

Can anyone help me on how to run the perticular module testcases and what
are the configuration to me made to set up the test module.

Regards,
Shivaprasad


More information about the Freeradius-Devel mailing list