# Path: grace/error.py
# class FileNotFoundError(Error):
#     pass
# 
# class CreateFolderError(Error):
#     pass
# 
# class RemoveFolderError(Error):
#     pass
# 
# class FileNotWritableError(Error):
#     pass
# 
# class RemoveFileError(Error):
#     pass


from builtins import object
from .error import FileNotFoundError, CreateFolderError, RemoveFolderError, FileNotWritableError, RemoveFileError
from shutil import rmtree, copy2, copytree
import os
import re
import sys
from __future__ import print_function
from __future__ import absolute_import


class Test(object):
    def __init__(self, config):
        self._cwd = os.getcwd()
        self._config = config

    def run(self, testname):
        if testname is None:
            print('No tests to build.')
            return

        build_path = os.path.join(self._cwd, 'build', self._config['name'] + '_' + testname)

# Path: grace/error.py
# class FileNotFoundError(Error):
#     pass
# 
# class CreateFolderError(Error):
#     pass
# 
# class RemoveFolderError(Error):
#     pass
# 
# class FileNotWritableError(Error):
#     pass
# 
# class RemoveFileError(Error):
#     pass


# Path: grace/testit.py
from builtins import object
from .error import FileNotFoundError, CreateFolderError, RemoveFolderError, FileNotWritableError, RemoveFileError
from shutil import rmtree, copy2, copytree
import os
import re
import sys

from __future__ import print_function
from __future__ import absolute_import


class Test(object):
    def __init__(self, config):
        self._cwd = os.getcwd()
        self._config = config

    def run(self, testname):
        if testname is None:
            print('No tests to build.')
            return

        build_path = os.path.join(self._cwd, 'build', self._config['name'] + '_' + testname)

        js_source_path = os.path.join(self._cwd, 'test', 'tests', 'test_' + testname + '.js')