1$OpenBSD: README,v 1.1 2005/04/08 17:13:51 cloder Exp $ 2$EOM: README,v 1.1 1999/08/05 15:07:37 niklas Exp $ 3 4XXX The old run.sh test-framework is obsoleted, it will go away anyday. 5 6We wanted to do a regression test environment which was flexible 7enough to be able to easily reproduce anomalies in isakmpd. It 8turns out this is not easy to do, as many problems are timing related. 9 10Currently ticks are milliseconds. An idea is to try to measure 11isakmpd's response time somehow, and use that time as some kind of 12basis for a tick. 13 14Our test environment should be able to parse scripts like this: 15 16#Tick Action Format Data 170 send H* ffffffff 180 recv H* 00000000 191000 send H* deadbeef 20 21Ticks are not absolute but relative to the last event. the format is 22Perl's pack/unpack template formats. Data is in the given format with 23one exception, spaces are ignored, newlines are end-of-data unless 24preceded by a backslash. 25 26Comments are lines with a numbersign as the first non-whitespace 27character. Empty lines are ignored, unless inside a multi-line data 28in which it will be part of the data buffer. 29 30Here is a real world example: 31 32# $RCSId$ 33 34# Initiate a MM 350 send H* ad9de636 f12460bb 00000000 00000000 01100200 00000000 \ 36 00000050 00000034 00000001 00000001 00000028 01010001 \ 37 00000020 00010000 80010005 80020002 80030001 80040002 \ 38 800b0001 800c0258 39 40400 recv H* ad9de636 f12460bb 2aa5a583 ab2f3980 01100200 00000000 \ 41 00000050 00000034 00000001 00000001 00000028 01010001 \ 42 00000020 00010000 80010005 80020002 80030001 80040002 \ 43 800b0001 800c0258 44 45110 send H* ad9de636 f12460bb 2aa5a583 ab2f3980 04100200 00000000 \ 46 000000b4 0a000084 60a8c102 ce97687e 45e3fdd9 6fd586b4 \ 47 f3a91167 559dd214 a78d678e 2772b7b2 83267487 15ec02a9 \ 48 419b77ee 0f2add09 e9e09b7d ad40c883 ef2039c9 c59b67ff \ 49 56e4d6f8 c99d47cb d4a565bc 8d192f76 f695d243 09121df5 \ 50 524884a7 3f702630 7f4fad44 e222c4b1 242fd1cd ca3a161d \ 51 bcdf6706 025cc90d c4b00ef9 bee5ada2 00000014 ff7c493c \ 52 88e68a10 4ab19a6a 7e75c771 53 54800 recv H* ad9de636 f12460bb 2aa5a583 ab2f3980 04100200 00000000 \ 55 000000b4 0a000084 681b9859 7680a3ff 894bb982 ef924bc8 \ 56 4d9c7ebf 3a92db7b bcfe68f7 6e1de327 a975293f f5c550b1 \ 57 9c69d6ed 64f201ec 514f4f44 0e6242b9 df4917e6 4418212d \ 58 66a66eb1 f3b70c2d 4e14e382 d42ebe04 1027957c 5dadcaf1 \ 59 a531c085 6cee739f 433c185c 12a8a946 88622f66 f211783c \ 60 277e134d 22d8e809 f1d38bab 6ca2a35f 00000014 6a917048 \ 61 a406fd47 b3d16554 cd6f0967 62 63140 send H* ad9de636 f12460bb 2aa5a583 ab2f3980 05100201 00000000 \ 64 0000005c d6571dec a8b55acb 1069210c 7d195417 1c2738e9 \ 65 42f1d9a3 8561d0ec 0697cd06 ac1beb19 1dc8acf5 904ec1d5 \ 66 5b2b154e 38b0de90 4f2e1f71 083047ca 10cab3d5 67 68900 recv H* ad9de636 f12460bb 2aa5a583 ab2f3980 05100201 00000000 \ 69 00000044 b46b1db4 9ecfbfa6 a5e9baa2 8eb3cb68 be3a857c \ 70 b039fa72 d595e69f 03669dbd 350781e2 56c36dce 71 72run with: 73 74perl run.pl filename 75 76You need to have an isakmpd listening on the address which is given in 77run.pl. Of course you need to run it in deterministic mode (-r). 78There will be a better explanation soon. 79