comparison auth_basic.t @ 223:f9325406df0b

Tests: skip tests not appropriate for win32. Skip tests which doesn't work on win32, notably ones using crypt(), symlinks and shared memory.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 03 Jun 2012 05:20:39 +0400
parents c0ae29632905
children 9969fcf1f27e
comparison
equal deleted inserted replaced
222:5b7883daaf82 223:f9325406df0b
66 66
67 ############################################################################### 67 ###############################################################################
68 68
69 like(http_get('/'), qr!401 Unauthorized!ms, 'rejects unathorized'); 69 like(http_get('/'), qr!401 Unauthorized!ms, 'rejects unathorized');
70 70
71 SKIP: {
72
73 skip 'no crypt on win32', 4 if $^O eq 'MSWin32';
74
71 like(http_get_auth('/', 'crypt', 'password'), qr!SEETHIS!, 'normal crypt'); 75 like(http_get_auth('/', 'crypt', 'password'), qr!SEETHIS!, 'normal crypt');
72 unlike(http_get_auth('/', 'crypt', '123'), qr!SEETHIS!, 'normal wrong'); 76 unlike(http_get_auth('/', 'crypt', '123'), qr!SEETHIS!, 'normal wrong');
73 77
74 like(http_get_auth('/', 'crypt1', 'password'), qr!SEETHIS!, 'crypt $1$ (md5)'); 78 like(http_get_auth('/', 'crypt1', 'password'), qr!SEETHIS!, 'crypt $1$ (md5)');
75 unlike(http_get_auth('/', 'crypt1', '123'), qr!SEETHIS!, 'crypt $1$ wrong'); 79 unlike(http_get_auth('/', 'crypt1', '123'), qr!SEETHIS!, 'crypt $1$ wrong');
80
81 }
76 82
77 like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5'); 83 like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5');
78 like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password'); 84 like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password');
79 85
80 SKIP: { 86 SKIP: {