Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/test_project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.dblite

# Ignore the submodule so we don't add it to version control.
# We clone it on CI when needed instead.
addons/test_extension/src/godot-cpp
13 changes: 13 additions & 0 deletions tests/test_project/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# License for third-party files

## `polyhaven/*`

Copyright (c) Poly Haven

- Upstream: https://polyhaven.com
- License: CC0-1.0

## `fonts/librequake_conchars.webp`

- Upstream: https://github.com/lavenderdotpet/LibreQuake
- License: BSD-3-Clause
6 changes: 6 additions & 0 deletions tests/test_project/SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python

# ruff: noqa: F821

# This file is for building as a Godot GDExtension.
SConscript("addons/test_extension/SConstruct")
14 changes: 14 additions & 0 deletions tests/test_project/custom_shader.gdshader
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
shader_type spatial;

global uniform vec3 offset;
instance uniform vec3 emission : source_color = vec3(1.0, 0.0, 0.0);
uniform vec3 color : source_color = vec3(1.0, 0.0, 0.0);

void vertex() {
VERTEX.xyz += offset;
}

void fragment() {
ALBEDO = color.rgb;
EMISSION = emission.rgb;
}
1 change: 1 addition & 0 deletions tests/test_project/custom_shader.gdshader.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cqkjq1u1jfe1c
12 changes: 12 additions & 0 deletions tests/test_project/custom_visual_shader.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_resource type="VisualShader" load_steps=2 format=3 uid="uid://barg7ns55yag2"]

[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_bwiop"]
output_port_for_preview = 0
parameter_name = "ColorParameter"
default_value_enabled = true
default_value = Color(1, 0, 0, 1)

[resource]
nodes/fragment/2/node = SubResource("VisualShaderNodeColorParameter_bwiop")
nodes/fragment/2/position = Vector2(20, 260)
nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0)
86 changes: 86 additions & 0 deletions tests/test_project/export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[preset.0]

name="Linux"
platform="Linux"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patches=PackedStringArray()
encryption_include_filters=""
encryption_exclude_filters=""
seed=0
encrypt_pck=false
encrypt_directory=false
script_export_mode=2

[preset.0.options]

custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=true
shader_baker/enabled=true
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""

[preset.1]

name="Linux Server"
platform="Linux"
runnable=false
dedicated_server=true
custom_features=""
export_filter="customized"
customized_files={
"res://": "strip"
}
include_filter=""
exclude_filter=""
export_path=""
patches=PackedStringArray()
encryption_include_filters=""
encryption_exclude_filters=""
seed=0
encrypt_pck=false
encrypt_directory=false
script_export_mode=2

[preset.1.options]

custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=true
shader_baker/enabled=true
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
Binary file added tests/test_project/fonts/librequake_conchars.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions tests/test_project/fonts/librequake_conchars.webp.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[remap]

importer="font_data_image"
type="FontFile"
uid="uid://xqvnherns475"
path="res://.godot/imported/librequake_conchars.webp-b49c596b50ab310e0a6edef9d4972538.fontdata"

[deps]

source_file="res://fonts/librequake_conchars.webp"
dest_files=["res://.godot/imported/librequake_conchars.webp-b49c596b50ab310e0a6edef9d4972538.fontdata"]

[params]

character_ranges=PackedStringArray("0-127")
kerning_pairs=PackedStringArray()
columns=16
rows=8
image_margin=Rect2i(0, 0, 0, 0)
character_margin=Rect2i(1, 0, 1, 0)
ascent=0
descent=0
fallbacks=[]
compress=true
scaling_mode=1
Binary file not shown.
36 changes: 36 additions & 0 deletions tests/test_project/fonts/open_sans_semi_bold.woff2.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://csxech2okyjwy"
path="res://.godot/imported/open_sans_semi_bold.woff2-d5a7473a52e86ca3bc41d89167e800a7.fontdata"

[deps]

source_file="res://fonts/open_sans_semi_bold.woff2"
dest_files=["res://.godot/imported/open_sans_semi_bold.woff2-d5a7473a52e86ca3bc41d89167e800a7.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
modulate_color_glyphs=false
hinting=1
subpixel_positioning=4
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file not shown.
36 changes: 36 additions & 0 deletions tests/test_project/fonts/open_sans_semi_bold_lcd.woff2.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://bk8vlq27gqm5w"
path="res://.godot/imported/open_sans_semi_bold_lcd.woff2-24a71b549f3a1278fc44ee881e980d0a.fontdata"

[deps]

source_file="res://fonts/open_sans_semi_bold_lcd.woff2"
dest_files=["res://.godot/imported/open_sans_semi_bold_lcd.woff2-24a71b549f3a1278fc44ee881e980d0a.fontdata"]

[params]

Rendering=null
antialiasing=2
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
modulate_color_glyphs=false
hinting=1
subpixel_positioning=4
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file not shown.
36 changes: 36 additions & 0 deletions tests/test_project/fonts/open_sans_semi_bold_msdf.woff2.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://tknjgv031ofo"
path="res://.godot/imported/open_sans_semi_bold_msdf.woff2-9059d25061259fb486b8142b6cc39d7d.fontdata"

[deps]

source_file="res://fonts/open_sans_semi_bold_msdf.woff2"
dest_files=["res://.godot/imported/open_sans_semi_bold_msdf.woff2-9059d25061259fb486b8142b6cc39d7d.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=true
msdf_pixel_range=10
msdf_size=48
allow_system_fallback=true
force_autohinter=false
modulate_color_glyphs=false
hinting=1
subpixel_positioning=4
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
13 changes: 13 additions & 0 deletions tests/test_project/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

msgid "Text"
msgstr "Texte (i18n is working)"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions tests/test_project/icons/mipmaps/basis_universal.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cfsfo1hd47p4e"
path="res://.godot/imported/basis_universal.png-2fe654f1274c9a49194696216efe5ab8.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/mipmaps/basis_universal.png"
dest_files=["res://.godot/imported/basis_universal.png-2fe654f1274c9a49194696216efe5ab8.ctex"]

[params]

compress/mode=4
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=33
detect_3d/compress_to=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions tests/test_project/icons/mipmaps/basis_universal_normal.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://0uyoailtdgnl"
path="res://.godot/imported/basis_universal_normal.png-f5fb66e3a4512e1a1be7ee2a3a2ede25.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/mipmaps/basis_universal_normal.png"
dest_files=["res://.godot/imported/basis_universal_normal.png-f5fb66e3a4512e1a1be7ee2a3a2ede25.ctex"]

[params]

compress/mode=4
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=33
detect_3d/compress_to=1
Binary file added tests/test_project/icons/mipmaps/lossless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading