
itest = require 'iced-test'
config = require('./lib/config')
{users} = require './lib/user'

#=========================

argv = require('optimist').
   alias('c','config').
   alias('d', 'debug').
   alias('p', 'preserve-keys').
   boolean('d').
   boolean('p').
   describe('d', 'debug mode').
   describe('c', 'the config file to use (default: ~/.node_client_test.conf').
   argv

#=========================

await config.init { file : argv.c, debug : argv.d, preserve : argv.p }, defer err
process.exit(-2) if err?
wl = if argv._.length > 0 then argv._ else null
require('iced-test').run { mainfile : __filename, whitelist : wl, files_dir : "files" }

#=========================
