You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Tools/AssetProcessor/native/unittests
lumberyard-employee-dm cd65d8a5ac
Pass relative path IsFileExcluded so that only paths relative to the root scan folder are matched against the exclude filters (#4504) (#6234)
* Pass relative path IsFileExcluded so that only paths relative to the root scan folder are matched against the exclude filters.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Revert previous change. Remove the exclude filter for the Install directory.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Pass in relative path to the exclude filter as before. Fix the AssetScanner tests.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Prepend a ./ to the relative path in order to match the exclude patterns

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Remove hack to prepend ./. Update the exclude patterns so that the hack is no longer required.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Add missing ? and remove whitespace

Signed-off-by: amzn-sj <srikkant@amazon.com>

* 1. IsFileExcluded() now converts the input path to a path that's relative to its corresponding scan folder.
2. Update regex patterns in gems and AutomatedTesting as well.
3. Remove unnecessary escaping for '/'.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Use ConvertToRelativePath() function to compute path relative to a scan folder.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* More fixes to regex patterns

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Remove test case which tests a hypothetical scenario that cannot occur. Fix another test case by adding scan folder.

Signed-off-by: amzn-sj <srikkant@amazon.com>

* Remove assert that's not needed since it's a valid scenario

Signed-off-by: amzn-sj <srikkant@amazon.com>

Co-authored-by: amzn-sj <srikkant@amazon.com>
4 years ago
..
AssetProcessingStateDataUnitTests.cpp XCode doesnt support files per configuration, using the old method (#3789) 4 years ago
AssetProcessingStateDataUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetProcessorManagerUnitTests.cpp Pass relative path IsFileExcluded so that only paths relative to the root scan folder are matched against the exclude filters (#4504) (#6234) 4 years ago
AssetProcessorManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetProcessorServerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetProcessorServerUnitTests.h Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
AssetRequestHandlerUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
AssetRequestHandlerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetScannerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetScannerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
BuilderSDKUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ConnectionManagerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ConnectionManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ConnectionUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ConnectionUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
FileWatcherUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
FileWatcherUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MockApplicationManager.cpp Final fixes for MSVC 4 years ago
MockApplicationManager.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MockConnectionHandler.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
PlatformConfigurationUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
PlatformConfigurationUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
RCcontrollerUnitTests.cpp Update the FileIO Aliases (#4186) 4 years ago
RCcontrollerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ShaderCompilerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ShaderCompilerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
UnitTestRunner.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
UnitTestRunner.h Update the FileIO Aliases (#4186) 4 years ago
UtilitiesUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
UtilitiesUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago