• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- coding: utf-8 -*-
2
3#-------------------------------------------------------------------------
4# Khronos OpenGL CTS
5# ------------------
6#
7# Copyright (c) 2016 The Khronos Group Inc.
8#
9# Licensed under the Apache License, Version 2.0 (the "License");
10# you may not use this file except in compliance with the License.
11# You may obtain a copy of the License at
12#
13#      http://www.apache.org/licenses/LICENSE-2.0
14#
15# Unless required by applicable law or agreed to in writing, software
16# distributed under the License is distributed on an "AS IS" BASIS,
17# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18# See the License for the specific language governing permissions and
19# limitations under the License.
20#
21#-------------------------------------------------------------------------
22
23import os
24import sys
25import shutil
26import argparse
27import subprocess
28
29from fetch_sources import *
30scriptPath = os.path.join(os.path.dirname(__file__), "..", "scripts")
31sys.path.insert(0, scriptPath)
32
33from ctsbuild.common import *
34
35EXTERNAL_DIR	= os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
36SHA1 = "a83863a61ecaa72a38361c6f0ca6291970d1d240"
37
38PACKAGES = [
39	GitRepo(
40		"https://gitlab.khronos.org/opengl/kc-cts.git",
41		"git@gitlab.khronos.org:opengl/kc-cts.git",
42		SHA1,
43		"kc-cts"),
44]
45
46if __name__ == "__main__":
47	args = parseArgs()
48
49	for pkg in PACKAGES:
50		if args.clean:
51			pkg.clean()
52		else:
53			pkg.update(args.protocol)
54