XCSoar / xcsoar-data-repository

XCSoar File Manager Data Repository
https://download.xcsoar.org/repository
8 stars 23 forks source link

Test: check for valid filename and extension #222

Closed elgandoz closed 2 years ago

elgandoz commented 2 years ago

Added 2 extra checks in the test script: 1) Check for a valid Unix/Windows filename (source) 2) Check is the extension matches the type (skips if type is not set)

NB: it requires #220 to be merged first in order to pass the test.

Example of output:

Screen Shot 2021-12-11 at 12 48 56 pm
elgandoz commented 2 years ago

The filename can contain spaces, since it's technically correct (tested within XCS) although not conform to the pattern. EG: Czech Wave Airspace.txt would pass.