 fs = require 'fs'
 exec = require('child_process').exec
 path = require 'path'
+{assert} = require('chai')
 
 supportDir = path.join __dirname, 'support'
 

			execGruntTask 'configure', (err) ->
				return done(err) if err

				configGypi = fs.readFileSync path.join(supportDir, 'build', 'config.gypi'), 'utf8'
				if configGypi.indexOf('"default_configuration": "Release"') < 0
					return done(new Error 'expected config.gypi to be configured for release build')

				done()


			execGruntTask 'archIa32', (err) ->
				return done(err) if err

				assert.include(
					fs.readFileSync(path.join(supportDir, 'build', 'config.gypi'), 'utf8')
					'"target_arch": "ia32"'
					'expected config.gypi to be configured for 32-bit build'
				)

				done()

