File: FileInput.robot

package info (click to toggle)
geogram 1.9.6-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 15,436 kB
  • sloc: cpp: 143,890; ansic: 10,098; perl: 1,430; sh: 1,199; yacc: 522; lex: 182; python: 157; javascript: 149; makefile: 17
file content (81 lines) | stat: -rw-r--r-- 2,791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
*** Settings ***
Test Setup        Prepare Test
Test Teardown     Cleanup Test
Force Tags        FileInput    smoke    daily    daily_valgrind
Library           OperatingSystem
Library           lib/VorpatestLibrary.py

*** Variables ***
${DATADIR}        %{VORPATEST_ROOT_DIR}${/}data${/}Small

*** Test Cases ***
xfail unknown file extension
    Run Fail Test    ${DATADIR}${/}dummy.x

xfail file not found
    Run Fail Test    ${DATADIR}${/}dummy.obj

xfail corrupted.obj invalid integer value
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_int.obj

xfail corrupted.obj invalid floating point value
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_double.obj

xfail corrupted.obj invalid facet vertex index
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_facet_vertex.obj

xfail corrupted.off invalid integer value
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_int.off

xfail corrupted.off invalid floating point value
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_double.off

xfail corrupted.off invalid facet vertex count
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_facet_vertex_count.off

xfail corrupted.off invalid facet vertex
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_facet_vertex.off

xfail corrupted.off invalid vertex count
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_vertex_count.off

xfail truncated.off
    Run Fail Test    ${DATADIR}${/}truncated.off

xfail corrupted invalid face count.meshb
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_face_count.meshb

xfail corrupted invalid facet vertex.meshb
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_facet_vertex.meshb

xfail truncated.meshb
    Run Fail Test    ${DATADIR}${/}truncated.meshb

xfail corrupted invalid face count.ply
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_face_count.ply

xfail corrupted invalid vertex count.ply
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_vertex_count.ply

xfail truncated.ply
    Run Fail Test    ${DATADIR}${/}truncated.ply

xfail corrupted invalid triangle count.stl
    Run Fail Test    ${DATADIR}${/}corrupted_invalid_triangle_count.stl

xfail truncated.stl
    Run Fail Test    ${DATADIR}${/}truncated.stl

## TODO: Add positive tests to measure load performances

*** Keywords ***
Run Test
    [Arguments]    ${input_name}=${TEST NAME}    @{options}
    [Documentation]    Runs a vorpaline test
    ...    The name of the input file is taken from the test name.
    run vorpaline    ${DATADIR}${/}${input_name}    @{options}    remesh=false

Run Fail Test
    [Arguments]    @{args}
    [Documentation]    Runs a vorpaline test that is expected to fail
    Run Keyword And Expect Error    CalledProcessError: Command*returned non-zero exit status*    run vorpaline    @{args}    remesh=false