Skip to content

Commit c8c22e4

Browse files
committed
Add: Functional Test
1 parent ffea6a3 commit c8c22e4

31 files changed

+512
-20
lines changed

.circleci/config.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ workflows:
44
version: 2.1
55
build:
66
jobs:
7+
- functional-test-plugin:
8+
context:
9+
- unreal-engine-ci
10+
matrix:
11+
parameters:
12+
unreal-engine-version: ["5.3.0"]
13+
version: ["full"]
714
- build-plugin:
815
context:
916
- unreal-engine-ci
@@ -23,6 +30,65 @@ workflows:
2330

2431
version: 2.1
2532
jobs:
33+
functional-test-plugin:
34+
parameters:
35+
unreal-engine-version:
36+
type: string
37+
version:
38+
type: string
39+
docker:
40+
- image: ghcr.io/epicgames/unreal-engine:dev-slim-<< parameters.unreal-engine-version >>
41+
auth:
42+
username: $GHCR_USERNAME
43+
password: $GHCR_PASSWORD
44+
steps:
45+
- checkout
46+
- run:
47+
name: Run scripts for the license removing
48+
command: bash tools/remove_license.sh Kdtree << parameters.version >>
49+
- run:
50+
name: Run scripts for the code removing
51+
command: bash tools/remove_code.sh Kdtree << parameters.unreal-engine-version >> << parameters.version >> .
52+
- run:
53+
name: "Run scripts for the release"
54+
command: bash tools/replace_engine_version.sh Kdtree << parameters.unreal-engine-version >>
55+
- run:
56+
name: "Copy plugin"
57+
command: |
58+
mkdir ${PWD}/tests/functional_test/FunctionalTest/Plugins
59+
cp -r Kdtree ${PWD}/tests/functional_test/FunctionalTest/Plugins
60+
- run:
61+
name: "Build project"
62+
command: |
63+
/home/ue4/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun \
64+
-utf8output \
65+
-platform=Linux \
66+
-clientconfig=Shipping \
67+
-serverconfig=Shipping \
68+
-project=${PWD}/tests/functional_test/FunctionalTest/FunctionalTest.uproject \
69+
-noP4 \
70+
-nodebuginfo \
71+
-allmaps \
72+
-cook \
73+
-build \
74+
-stage \
75+
-prereqs \
76+
-pak \
77+
-archive \
78+
-archivedirectory=/tmp/Packaged
79+
- run:
80+
name: "Functional test against Plugin"
81+
command: |
82+
/home/ue4/UnrealEngine/Engine/Binaries/Linux/UnrealEditor \
83+
${PWD}/tests/functional_test/FunctionalTest/FunctionalTest.uproject \
84+
-unattended \
85+
-nopause \
86+
-NullRHI \
87+
-ExecCmds="Automation RunTests Kdtree; Quit" \
88+
-testexit="Automation Test Queue Empty" \
89+
-log=RunTests.log \
90+
-ReportOutputPath="/tmp/FunctionalTestsReport"
91+
2692
build-plugin:
2793
parameters:
2894
unreal-engine-version:

.github/workflows/lint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ jobs:
4747
run: |
4848
bash tests/lint/clang-format/run.sh samples/SampleProject
4949
50+
functional-test-clang-format:
51+
name: functional-test-clang-format
52+
runs-on: ubuntu-latest
53+
container:
54+
image: ubuntu:20.04
55+
steps:
56+
- name: Checkout repo
57+
uses: actions/checkout@v2
58+
59+
- name: Install clang-format
60+
run: |
61+
apt update
62+
apt install -y clang-format
63+
- name: clang-format
64+
run: |
65+
bash tests/lint/clang-format/run.sh tests/functional_test/FunctionalTest
66+
5067
markdownlint:
5168
name: markdownlint
5269
runs-on: ubuntu-latest

Kdtree/Source/Kdtree/Kdtree.Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Private/AsyncKdtreeBPLibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Private/Kdtree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Private/KdtreeBPLibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Private/KdtreeInternal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Private/KdtreeInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Public/AsyncKdtreeBPLibrary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Public/Kdtree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Public/KdtreeBPLibrary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

Kdtree/Source/Kdtree/Public/KdtreeCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Kdtree
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

samples/SampleProject/Source/SampleProject.Target.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* Kdtree
2+
* SampleProject
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

samples/SampleProject/Source/SampleProject/SampleProject.Build.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* Kdtree
2+
* SampleProject
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

samples/SampleProject/Source/SampleProject/SampleProject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* Kdtree
2+
* SampleProject
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

samples/SampleProject/Source/SampleProject/SampleProject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* Kdtree
2+
* SampleProject
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT

samples/SampleProject/Source/SampleProjectEditor.Target.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* Kdtree
2+
* SampleProject
33
*
4-
* Copyright (c) 2019-2023 Colory Games
4+
* Copyright (c) 2019-2023 nutti
55
*
66
* This software is released under the MIT License.
77
* https://opensource.org/licenses/MIT
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Original: https://github.com/github/gitignore/blob/main/UnrealEngine.gitignore
2+
3+
Plugins/Kdtree
4+
5+
# Visual Studio 2015 user specific files
6+
.vs/
7+
8+
# Compiled Object files
9+
*.slo
10+
*.lo
11+
*.o
12+
*.obj
13+
14+
# Precompiled Headers
15+
*.gch
16+
*.pch
17+
18+
# Compiled Dynamic libraries
19+
*.so
20+
*.dylib
21+
*.dll
22+
23+
# Fortran module files
24+
*.mod
25+
26+
# Compiled Static libraries
27+
*.lai
28+
*.la
29+
*.a
30+
*.lib
31+
32+
# Executables
33+
*.exe
34+
*.out
35+
*.app
36+
*.ipa
37+
38+
# These project files can be generated by the engine
39+
*.xcodeproj
40+
*.xcworkspace
41+
*.sln
42+
*.suo
43+
*.opensdf
44+
*.sdf
45+
*.VC.db
46+
*.VC.opendb
47+
48+
# Precompiled Assets
49+
SourceArt/**/*.png
50+
SourceArt/**/*.tga
51+
52+
# Binary Files
53+
Binaries/*
54+
Plugins/*/Binaries/*
55+
56+
# Builds
57+
Build/*
58+
59+
# Whitelist PakBlacklist-<BuildConfiguration>.txt files
60+
!Build/*/
61+
Build/*/**
62+
!Build/*/PakBlacklist*.txt
63+
64+
# Don't ignore icon files in Build
65+
!Build/**/*.ico
66+
67+
# Built data for maps
68+
*_BuiltData.uasset
69+
70+
# Configuration files generated by the Editor
71+
Saved/*
72+
73+
# Compiled source files for the engine to use
74+
Intermediate/*
75+
Plugins/*/Intermediate/*
76+
77+
# Cache files for the editor to use
78+
DerivedDataCache/*

tests/functional_test/FunctionalTest/Config/DefaultEditor.ini

Whitespace-only changes.

0 commit comments

Comments
 (0)