*** simpletest.module	2008-11-13 11:04:46.000000000 -0800
--- /Users/dave/eclipse_projects/imbee2/sites/all/modules/contrib/simpletest/simpletest.module	2008-11-25 15:44:51.000000000 -0800
***************
*** 1,5 ****
  <?php
! // $Id: simpletest.module,v 1.33.2.4.2.9 2008/10/22 23:14:51 boombatower Exp $
  
  //require_once drupal_get_path('module', 'simpletest') . '/drupal_test_case.php';
  
--- 1,5 ----
  <?php
! // $Id: simpletest.module,v 1.1 2008/11/25 23:44:51 dmenefee Exp $
  
  //require_once drupal_get_path('module', 'simpletest') . '/drupal_test_case.php';
  
***************
*** 29,34 ****
--- 29,41 ----
      'description' => 'Run tests against Drupal core and your active modules. These tests help assure that your site code is working as designed.',
      'access arguments' => array('administer unit tests'),
    );
+   $items['admin/settings/simpletest'] = array(
+     'title' => 'Simpletest settings',
+     'description' => 'Configure unit testing framework.',
+     'page callback' => 'drupal_get_form',
+     'page arguments' => array('simpletest_settings'),
+     'access arguments' => array('access administration pages'),
+   );
    return $items;
  }
  
***************
*** 591,593 ****
--- 598,640 ----
      drupal_set_message(t('Removed @count test results.', array('@count' => $count)));
    }
  }
+ 
+ function simpletest_settings() {
+   $form = array();
+ 
+   $form['http_auth'] = array(
+     '#type' => 'fieldset',
+     '#title' => t('HTTP authentication'),
+     '#description' => t('If needed, enter a username and password for reaching your web site. This is not a drupal username/password.') .
+                       t('This is a login presented by your web server. Most sites may leave this section empty.'),
+   );
+   $form['http_auth']['simpletest_httpauth'] = array(
+     '#type' => 'checkbox',
+     '#title' => t('Use http authentication'),
+     '#default_value' => variable_get('simpletest_httpauth', false),
+   );
+   $form['http_auth']['simpletest_httpauth_username'] = array(
+     '#type' => 'textfield',
+     '#title' => t('Username'),
+     '#default_value' => variable_get('simpletest_httpauth_username', ''),
+   );
+   $form['http_auth']['simpletest_httpauth_pass'] = array(
+     '#title' => t('Password'),
+     '#type' => 'password',
+     '#default_value' => variable_get('simpletest_httpauth_pass', ''),
+   );
+   $form['debug'] = array(
+     '#type' => 'fieldset',
+     '#title' => t('Debugging Connectivity'),
+     '#description' => t('These settings allow you to turn on logging options for this module. WARNING: the log can become quite large.'),
+   );
+   $form['debug']['simpletest_debug'] = array(
+     '#type' => 'checkbox',
+     '#title' => t('Turn on verbose logging in the server log'),
+     '#default_value' => variable_get('simpletest_debug', false),
+   );
+   
+   return system_settings_form($form);
+ 
+ }
+ 
