Artifact bf33c0c9be606bdb2c7a27f7413d15648171b51e:
- File tests/alice-test.fs — part of check-in [ad3b70a512] at 2016-05-01 21:41:59 on branch trunk — Move tests (need to make them run again) (user: bernd size: 415)
0000: 5c 20 6e 65 74 32 6f 20 74 65 73 74 73 20 2d 20 \ net2o tests - 0010: 63 6c 69 65 6e 74 20 73 69 64 65 0a 0a 72 65 71 client side..req 0020: 75 69 72 65 20 63 6c 69 65 6e 74 2d 74 65 73 74 uire client-test 0030: 73 2e 66 73 0a 72 65 71 75 69 72 65 20 74 65 73 s.fs.require tes 0040: 74 2d 6b 65 79 73 2e 66 73 20 5c 20 77 65 20 77 t-keys.fs \ we w 0050: 61 6e 74 20 74 68 65 20 74 65 73 74 20 6b 65 79 ant the test key 0060: 73 20 2d 20 6e 65 76 65 72 20 75 73 65 20 74 68 s - never use th 0070: 69 73 20 69 6e 20 70 72 6f 64 75 63 74 69 6f 6e is in production 0080: 21 0a 0a 2b 64 62 20 73 74 61 74 28 0a 2b 64 65 !..+db stat(.+de 0090: 62 75 67 0a 25 64 72 6f 70 72 61 74 65 0a 73 63 bug.%droprate.sc 00a0: 72 69 70 74 3f 20 5b 49 46 5d 20 64 65 62 75 67 ript? [IF] debug 00b0: 2d 74 61 73 6b 20 5b 54 48 45 4e 5d 0a 0a 69 27 -task [THEN]..i' 00c0: 6d 20 61 6c 69 63 65 0a 0a 69 6e 69 74 2d 63 6c m alice..init-cl 00d0: 69 65 6e 74 0a 0a 21 74 69 6d 65 0a 0a 3f 6e 65 ient..!time..?ne 00e0: 78 74 61 72 67 20 5b 49 46 5d 20 6e 65 74 32 6f xtarg [IF] net2o 00f0: 2d 68 6f 73 74 20 24 21 20 5b 54 48 45 4e 5d 0a -host $! [THEN]. 0100: 3f 6e 65 78 74 61 72 67 20 5b 49 46 5d 20 73 3e ?nextarg [IF] s> 0110: 6e 75 6d 62 65 72 20 64 72 6f 70 20 74 6f 20 6e number drop to n 0120: 65 74 32 6f 2d 70 6f 72 74 20 5b 54 48 45 4e 5d et2o-port [THEN] 0130: 0a 0a 5c 20 3f 6e 65 78 74 61 72 67 20 5b 49 46 ..\ ?nextarg [IF 0140: 5d 20 73 3e 6e 75 6d 62 65 72 20 64 72 6f 70 20 ] s>number drop 0150: 5b 45 4c 53 45 5d 20 31 20 5b 54 48 45 4e 5d 20 [ELSE] 1 [THEN] 0160: 63 3a 74 65 73 74 73 0a 0a 73 63 72 69 70 74 3f c:tests..script? 0170: 20 5b 49 46 5d 20 22 62 6f 62 22 20 6e 61 74 3a [IF] "bob" nat: 0180: 63 6f 6e 6e 65 63 74 20 63 3a 74 65 73 74 2d 72 connect c:test-r 0190: 65 73 74 20 62 79 65 20 5b 54 48 45 4e 5d 0a est bye [THEN].