Changeset 107835


Ignore:
Timestamp:
Jul 6, 2013, 6:58:29 PM (7 years ago)
Author:
marius@…
Message:

Cleanup dependencies tests (initial_setup, cleanup, description, files).

Location:
branches/gsoc13-tests/tests/test
Files:
5 added
4 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc13-tests/tests/test/dependencies-a/test.tcl

    r107493 r107835  
    44source [file dirname $argv0]/../library.tcl
    55
    6 set file "output"
    7 set dir "work"
     6makeFile "" $output_file
     7makeDirectory $work_dir
    88set path [file dirname [file normalize $argv0]]
    99
    1010proc dep-a {} {
    11     global file
    1211    global path
     12    global output_file
    1313
    14     load_variables $path
    15     set_dir
    16     port_index
    17     port_clean $path
    18     port_run $path
     14    initial_setup
    1915
    2016    set err "error*"
    21     set line [get_line $file $err]
     17    set line [get_line $output_file $err]
    2218    return $line
    2319}
     
    2521test dependencies-a {
    2622    Regression test for dependencies-a.
    27 } -constraints {
    28     root
    2923} -body {
    3024    dep-a
     
    3226
    3327cleanup
    34 removeFile $file
    35 removeDirectory $dir
    36 
    3728cleanupTests
  • branches/gsoc13-tests/tests/test/dependencies-b/test.tcl

    r107493 r107835  
    44source [file dirname $argv0]/../library.tcl
    55
    6 set file "output"
    7 set dir "work"
     6makeFile "" $output_file
     7makeDirectory $work_dir
    88set path [file dirname [file normalize $argv0]]
    99
    1010proc dep-b {} {
    11     global file
    1211    global path
     12    global output_file
    1313
    14     load_variables $path
    15     set_dir
    16     port_index
    17     port_clean $path
    18     port_run $path
     14    initial_setup
    1915
    2016    set err "error*"
    21     set line [get_line $file $err]
     17    set line [get_line $output_file $err]
    2218    return $line
    2319}
     
    2521test dependencies-b {
    2622    Regression test for dependencies-b.
    27 } -constraints {
    28     root
    2923} -body {
    3024    dep-b
    3125} -result -1
    3226
     27
    3328cleanup
    34 removeFile $file
    35 removeDirectory $dir
    36 
    3729cleanupTests
  • branches/gsoc13-tests/tests/test/dependencies-c/test.tcl

    r107493 r107835  
    44source [file dirname $argv0]/../library.tcl
    55
    6 set file "output"
    7 set dir "work"
     6makeFile "" $output_file
     7makeDirectory $work_dir
    88set path [file dirname [file normalize $argv0]]
    99
    1010proc dep-c {} {
    11     global file
    1211    global path
     12    global output_file
    1313
    14     load_variables $path
    15     set_dir
    16     port_index
    17     port_clean $path
    18     port_run $path
     14    initial_setup
    1915
    2016    set err "error*"
    21     set line [get_line $file $err]
     17    set line [get_line $output_file $err]
    2218    return $line
    2319}
     
    2521test dependencies-c {
    2622    Regression test for dependencies-c.
    27 } -constraints {
    28     root
    2923} -body {
    3024    dep-c
    3125} -result -1
    3226
     27
    3328cleanup
    34 removeFile $file
    35 removeDirectory $dir
    36 
    3729cleanupTests
  • branches/gsoc13-tests/tests/test/dependencies-d/test.tcl

    r107493 r107835  
    44source [file dirname $argv0]/../library.tcl
    55
    6 set file "output"
    7 set dir "work"
     6makeFile "" $output_file
     7makeDirectory $work_dir
    88set path [file dirname [file normalize $argv0]]
    99
    1010proc dep-d {} {
    11     global file
    1211    global path
     12    global output_file
    1313
    14     load_variables $path
    15     set_dir
    16     port_index
    17     port_clean $path
    18     port_run $path
     14    initial_setup
    1915
    2016    set err "error*"
    21     set line [get_line $file $err]
     17    set line [get_line $output_file $err]
    2218    return $line
    2319}
     
    2521test dependencies-d {
    2622    Regression test for dependencies-d.
    27 } -constraints {
    28     root
    2923} -body {
    3024    dep-d
    3125} -result -1
    3226
     27
    3328cleanup
    34 removeFile $file
    35 removeDirectory $dir
    36 
    3729cleanupTests
  • branches/gsoc13-tests/tests/test/dependencies-e/test.tcl

    r107493 r107835  
    44source [file dirname $argv0]/../library.tcl
    55
    6 set file "output"
    7 set dir "work"
     6makeFile "" $output_file
     7makeDirectory $work_dir
    88set path [file dirname [file normalize $argv0]]
    99
    1010proc dep-e {} {
    11     global file
    1211    global path
     12    global output_file
    1313
    14     load_variables $path
    15     set_dir
    16     port_index
    17     port_clean $path
    18     port_run $path
     14    initial_setup
    1915
    2016    set err "error: dependency 'docbook-xml-4.1.2' not found*"
    21     set line [get_line $file $err]
     17    set line [get_line $output_file $err]
    2218    return $line
    2319}
     
    2521test dependencies-e {
    2622    Regression test for dependencies-e.
    27 } -constraints {
    28     root
    2923} -body {
    3024    dep-e
    3125} -result "error: dependency 'docbook-xml-4.1.2' not found."
    3226
     27
    3328cleanup
    34 removeFile $file
    35 removeDirectory $dir
    36 
    3729cleanupTests
Note: See TracChangeset for help on using the changeset viewer.