summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2018-11-08 19:00:04 +0000
committerEric Engestrom <eric@engestrom.ch>2018-11-08 20:17:27 +0000
commit1cdfa43c5cb7b18f2f384c7867e99737f7351f3d (patch)
tree7e937e87482062545dcde95cd1eb416b4e5871a0 /tests
parent5b3566f78490026b38ff03d602655ce3afb5ecb1 (diff)
python: add explicit utf-8 encoding
I went with `# coding=utf-8` as it was the most common format in the existing code: 24 # coding=utf-8 21 ## coding=utf-8 19 # encoding=utf-8 9 ## encoding=utf-8 6 # -*- coding: utf-8 -*- I added it as the first line after the shebang, if any. Suggested-by: Dylan Baker <dylan@pnwbakers.com> Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/apitrace/test-trace.py1
-rw-r--r--tests/crucible.py1
-rw-r--r--tests/cts_gl.py1
-rw-r--r--tests/cts_gl45.py1
-rw-r--r--tests/cts_gles.py1
-rw-r--r--tests/deqp_gles2.py1
-rw-r--r--tests/deqp_gles3.py1
-rw-r--r--tests/deqp_gles31.py1
-rw-r--r--tests/deqp_vk.py1
-rw-r--r--tests/es3conform.py1
-rw-r--r--tests/glslparser.py1
-rwxr-xr-xtests/glslparsertest/glsl2/gen_builtin_test.py1
-rw-r--r--tests/gtf_gl.py1
-rw-r--r--tests/gtf_gles.py1
-rw-r--r--tests/igt.py1
-rw-r--r--tests/khr_gl.py1
-rw-r--r--tests/khr_gl45.py1
-rw-r--r--tests/khr_gles.py1
-rw-r--r--tests/khr_noctx.py1
-rw-r--r--tests/oglconform.py1
-rw-r--r--tests/py_modules/constants.py1
-rw-r--r--tests/shader.py1
-rw-r--r--tests/util/gen_dispatch.py1
-rw-r--r--tests/xts-render.py1
-rw-r--r--tests/xts.py1
25 files changed, 25 insertions, 0 deletions
diff --git a/tests/apitrace/test-trace.py b/tests/apitrace/test-trace.py
index 123024326..cdcdfc841 100755
--- a/tests/apitrace/test-trace.py
+++ b/tests/apitrace/test-trace.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# coding=utf-8
# Copyright (c) 2016 Broadcom
#
diff --git a/tests/crucible.py b/tests/crucible.py
index 635033a74..99d6f8408 100644
--- a/tests/crucible.py
+++ b/tests/crucible.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2014-2016 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/cts_gl.py b/tests/cts_gl.py
index d650ffd4b..935df7a7c 100644
--- a/tests/cts_gl.py
+++ b/tests/cts_gl.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/cts_gl45.py b/tests/cts_gl45.py
index 2782e18f4..d033c3efc 100644
--- a/tests/cts_gl45.py
+++ b/tests/cts_gl45.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/cts_gles.py b/tests/cts_gles.py
index 64de79d7f..4ee28a89e 100644
--- a/tests/cts_gles.py
+++ b/tests/cts_gles.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2015 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/deqp_gles2.py b/tests/deqp_gles2.py
index 518a4e04c..8f9bee706 100644
--- a/tests/deqp_gles2.py
+++ b/tests/deqp_gles2.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2015 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/deqp_gles3.py b/tests/deqp_gles3.py
index 6441a9600..0fed6b3fa 100644
--- a/tests/deqp_gles3.py
+++ b/tests/deqp_gles3.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2014, 2015 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/deqp_gles31.py b/tests/deqp_gles31.py
index 7021e8966..e9ca0f346 100644
--- a/tests/deqp_gles31.py
+++ b/tests/deqp_gles31.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2015 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/deqp_vk.py b/tests/deqp_vk.py
index 1f3d58d38..8c1a2bd59 100644
--- a/tests/deqp_vk.py
+++ b/tests/deqp_vk.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2014-2016 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/es3conform.py b/tests/es3conform.py
index 6bdcf2ba9..660db7cd9 100644
--- a/tests/es3conform.py
+++ b/tests/es3conform.py
@@ -1,3 +1,4 @@
+# coding=utf-8
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
diff --git a/tests/glslparser.py b/tests/glslparser.py
index fe2b3c5ea..8f2a13663 100644
--- a/tests/glslparser.py
+++ b/tests/glslparser.py
@@ -1,3 +1,4 @@
+# coding=utf-8
"""A profile that runs only GLSLParserTest instances."""
from __future__ import (
diff --git a/tests/glslparsertest/glsl2/gen_builtin_test.py b/tests/glslparsertest/glsl2/gen_builtin_test.py
index 2f4b90133..9b152ae07 100755
--- a/tests/glslparsertest/glsl2/gen_builtin_test.py
+++ b/tests/glslparsertest/glsl2/gen_builtin_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# coding=utf-8
one_parameter_110 = [
"radians",
diff --git a/tests/gtf_gl.py b/tests/gtf_gl.py
index d219bd73f..a82f091d5 100644
--- a/tests/gtf_gl.py
+++ b/tests/gtf_gl.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/gtf_gles.py b/tests/gtf_gles.py
index 0e0495d08..ca91f14b6 100644
--- a/tests/gtf_gles.py
+++ b/tests/gtf_gles.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/igt.py b/tests/igt.py
index 5842810de..c3ec2e647 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -1,3 +1,4 @@
+# coding=utf-8
#
# Copyright (c) 2012 Intel Corporation
#
diff --git a/tests/khr_gl.py b/tests/khr_gl.py
index 30e28b045..235ca7c8c 100644
--- a/tests/khr_gl.py
+++ b/tests/khr_gl.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/khr_gl45.py b/tests/khr_gl45.py
index 39341f390..cdb46833c 100644
--- a/tests/khr_gl45.py
+++ b/tests/khr_gl45.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/khr_gles.py b/tests/khr_gles.py
index 59a0fe089..13cae08a2 100644
--- a/tests/khr_gles.py
+++ b/tests/khr_gles.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/khr_noctx.py b/tests/khr_noctx.py
index 4cba8130d..04f0d3073 100644
--- a/tests/khr_noctx.py
+++ b/tests/khr_noctx.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2017 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/oglconform.py b/tests/oglconform.py
index 5104f442b..2d81b6b2b 100644
--- a/tests/oglconform.py
+++ b/tests/oglconform.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# coding=utf-8
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
diff --git a/tests/py_modules/constants.py b/tests/py_modules/constants.py
index c9a7a41a0..40828ff1f 100644
--- a/tests/py_modules/constants.py
+++ b/tests/py_modules/constants.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2015, 2016 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/tests/shader.py b/tests/shader.py
index 3a43bcf93..14f21eef9 100644
--- a/tests/shader.py
+++ b/tests/shader.py
@@ -1,3 +1,4 @@
+# coding=utf-8
"""A profile that runs only ShaderTest instances."""
from __future__ import (
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index fbedca40d..44b04fd38 100644
--- a/tests/util/gen_dispatch.py
+++ b/tests/util/gen_dispatch.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright 2014 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/tests/xts-render.py b/tests/xts-render.py
index d2cd843f2..025412327 100644
--- a/tests/xts-render.py
+++ b/tests/xts-render.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2015 Broadcom
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/tests/xts.py b/tests/xts.py
index 715ecfa47..8e9a685dc 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -1,3 +1,4 @@
+# coding=utf-8
# Copyright (c) 2013-2014 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person