def get_args(): parser = argparse.ArgumentParser() parser.add_argument("iotjs", action="store", help="path to the iotjs binary file") parser.add_argument('--platform', default=Platform().os(), help='Specify the platform (default: %(default)s)') parser.add_argument("--quiet", action="store_true", default=False, help="show or hide the output of the tests") parser.add_argument("--skip-modules", action="store", metavar='list', help="module list to skip test of specific modules") parser.add_argument("--timeout", action="store", default=300, type=int, help="default timeout for the tests in seconds") parser.add_argument("--valgrind", action="store_true", default=False, help="check tests with Valgrind") parser.add_argument("--coverage", action="store_true", default=False, help="measure JavaScript coverage") return parser.parse_args()
# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os from common_py.system.filesystem import FileSystem as fs from common_py.system.executor import Executor as ex from common_py.system.sys_platform import Platform from check_tidy import check_tidy platform = Platform() DOCKER_ROOT_PATH = fs.join('/root') # IoT.js path in travis TRAVIS_BUILD_PATH = fs.join(os.environ['TRAVIS_BUILD_DIR']) # IoT.js path in docker DOCKER_IOTJS_PATH = fs.join(DOCKER_ROOT_PATH, 'work_space/iotjs') # Node server path in docker DOCKER_NODE_SERVER_PATH = fs.join(DOCKER_ROOT_PATH, 'work_space/node_server') DOCKER_TIZENRT_PATH = fs.join(DOCKER_ROOT_PATH, 'TizenRT') DOCKER_TIZENRT_OS_PATH = fs.join(DOCKER_TIZENRT_PATH, 'os') DOCKER_TIZENRT_OS_TOOLS_PATH = fs.join(DOCKER_TIZENRT_OS_PATH, 'tools')