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 *
30sys.path.append(os.path.join(os.path.dirname(__file__), "..", "scripts"))
31
32from build.common import *
33
34EXTERNAL_DIR	= os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
35SHA1 = "5995452bfa07e3eb6d7238eb68279f55056485d5"
36
37PACKAGES = [
38	GitRepo(
39		"https://gitlab.khronos.org/opengl/kc-cts.git",
40		"git@gitlab.khronos.org:opengl/kc-cts.git",
41		SHA1,
42		"kc-cts"),
43]
44
45if __name__ == "__main__":
46	args = parseArgs()
47
48	for pkg in PACKAGES:
49		if args.clean:
50			pkg.clean()
51		else:
52			pkg.update(args.protocol)
53