Check file extensions for tests
This commit is contained in:
parent
6029c4ea67
commit
99d469de9c
1 changed files with 12 additions and 4 deletions
|
@ -16,16 +16,24 @@ pub fn main() -> Nil {
|
|||
io.println("\nTesting Footprints")
|
||||
let assert Ok(footprint_files) =
|
||||
simplifile.get_files("/usr/share/kicad/footprints")
|
||||
// let footprint_files = footprint_files |> list.drop(0) |> list.take(5000)
|
||||
// let footprint_files = footprint_files |> list.sample(1000)
|
||||
let footprint_files =
|
||||
footprint_files
|
||||
|> list.filter(string.ends_with(_, ".kicad_mod"))
|
||||
// |> list.drop(0)
|
||||
// |> list.take(1000)
|
||||
// |> list.sample(1000)
|
||||
// let footprint_files = ["test_files/test3.kicad_mod"]
|
||||
test_read_parse_decode(footprint_files, token.footprint_file, True)
|
||||
|
||||
io.println("\nTesting Symbol Libraries")
|
||||
let assert Ok(symbol_libraries) =
|
||||
simplifile.get_files("/usr/share/kicad/symbols")
|
||||
// let symbol_libraries = symbol_libraries |> list.drop(0) |> list.take(20)
|
||||
// let symbol_libraries = symbol_libraries |> list.sample(1000)
|
||||
let symbol_libraries =
|
||||
symbol_libraries
|
||||
|> list.filter(string.ends_with(_, ".kicad_sym"))
|
||||
// |> list.drop(0)
|
||||
// |> list.take(20)
|
||||
// |> list.sample(1000)
|
||||
// let symbol_libraries = ["test_files/test3.kicad_mod"]
|
||||
test_read_parse_decode(symbol_libraries, token.symbol_library, True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue