{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1756843798,
"reponame":"openssl",
"desc":"OpenSSL",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"17145bd2c13dce4bb5cca19d8fb149b1",
"oid":{ "oid": "da9a22bb579821d0ababac7319c2f2995e66e4d3", "alias": []},"blobname": "test/README", "blob": "How to add recipes\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nFor any test that you want to perform, you write a script located in\ntest/recipes/, named {nn}-test_{name}.t, where {nn} is a two digit number and\n{name} is a unique name of your choice.\n\nPlease note that if a test involves a new testing executable, you will need to\ndo some additions in test/Makefile. More on this later.\n\n\nNaming convetions\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nA test executable is named test/{name}test.c\n\nA test recipe is named test/recipes/{nn}-test_{name}.t, where {nn} is a two\ndigit number and {name} is a unique name of your choice.\n\nThe number {nn} is (somewhat loosely) grouped as follows:\n\n05 individual symmetric cipher algorithms\n10 math (bignum)\n15 individual asymmetric cipher algorithms\n20 openssl enc\n25 certificate forms, generation and verification\n30 engine and evp\n70 PACKET layer\n80 \u0022larger\u0022 protocols (CA, CMS, OCSP, SSL, TSA)\n90 misc\n\n\nA recipe that just runs a test executable\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nA script that just runs a program looks like this:\n\n #! /usr/bin/perl\n \n use OpenSSL::Test::Simple;\n \n simple_test(\u0022test_{name}\u0022, \u0022{name}test\u0022, \u0022{name}\u0022);\n\n{name} is the unique name you have chosen for your test.\n\nThe second argument to `simple_test' is the test executable, and `simple_test'\nexpects it to be located in test/\n\nFor documentation on OpenSSL::Test::Simple, do\n`perldoc test/testlib/OpenSSL/Test/Simple.pm'.\n\n\nA recipe that runs a more complex test\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nFor more complex tests, you will need to read up on Test::More and\nOpenSSL::Test. Test::More is normally preinstalled, do `man Test::More' for\ndocumentation. For OpenSSL::Test, do `perldoc test/testlib/OpenSSL/Test.pm'.\n\nA script to start from could be this:\n\n #! /usr/bin/perl\n \n use strict;\n use warnings;\n use OpenSSL::Test;\n \n setup(\u0022test_{name}\u0022);\n \n plan tests \u003d\u003e 2; # The number of tests being performed\n \n ok(test1, \u0022test1\u0022);\n ok(test2, \u0022test1\u0022);\n \n sub test1\n {\n # test feature 1\n }\n \n sub test2\n {\n # test feature 2\n }\n \n\nChanges to test/Makefile\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nWhenever a new test involves a new test executable you need to do the\nfollowing (at all times, replace {NAME} and {name} with the name of your\ntest):\n\n* among the variables for test executables at the beginning, add a line like\n this:\n\n {NAME}TEST\u003d {name}test\n\n* add `$({NAME}TEST)$(EXE_EXT)' to the assignment of EXE:\n\n* add `$({NAME}TEST).o' to the assignment of OBJ:\n\n* add `$({NAME}TEST).c' to the assignment of SRC:\n\n* add the following lines for building the executable:\n\n $({NAME}TEST)$(EXE_EXT): $({NAME}TEST).o $(DLIBCRYPTO)\n @target\u003d$({NAME}TEST); $(BUILD_CMD)\n","s":{"c":1756843798,"u": 365}}
],"g": 2631,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}