File: FileConvert.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 (54 lines) | stat: -rw-r--r-- 1,304 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
*** Settings ***
Test Setup        Prepare Test
Test Teardown     Cleanup Test
Force Tags        FileConvert    smoke    daily    daily_valgrind
Library           OperatingSystem
Library           String
Library           lib/VorpatestLibrary.py

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

*** Test Cases ***
icosa.obj.mesh
    Run Test

icosa.obj.meshb
    Run Test

icosa.obj.eobj
    Run Test

icosa.obj.ply
    Run Test

icosa.obj.off
    Run Test

icosa.obj.geogram
    Run Test

icosa.obj.geogram_ascii
    Run Test

# Note:
# STL format does not save the connections between facets
# It cannot work here
# icosa.obj.stl
#    Run Test

# Note:
# we don't yet save to XYZ format
# icosa.obj.xyz
#    Run Test


*** Keywords ***
Run Test
    [Arguments]    ${input_name}=${TEST NAME}    @{options}
    [Documentation]    Converts a file to another format
    ...    The name of the input file is taken from the test name.
    ${base_name}     ${ext_from}    ${ext_to} =    Split String From Right    ${input_name}    .
    run command    vorpalite    profile=convert    remesh=false    @{options}    ${DATADIR}${/}${base_name}.${ext_from}    out.${ext_to}
    run command    vorpacomp    tolerance=0.000001    ${DATADIR}${/}${base_name}.${ext_from}    out.${ext_to}