aPiecek | b5cda5e | 2023-06-29 11:26:28 +0200 | [diff] [blame^] | 1 | # @brief The main source of functions and variables for testing yangre. |
| 2 | |
| 3 | package require tcltest |
| 4 | namespace import ::tcltest::test ::tcltest::cleanupTests |
| 5 | |
| 6 | if { ![info exists ::env(TESTS_DIR)] } { |
| 7 | # the script is not run via 'ctest' so paths must be set |
| 8 | set ::env(TESTS_DIR) "./" |
| 9 | set TUT_PATH "../../build" |
| 10 | } else { |
| 11 | # cmake (ctest) already sets ::env variables |
| 12 | set TUT_PATH $::env(YANGRE) |
| 13 | } |
| 14 | set TUT_NAME "yangre" |
| 15 | source "$::env(TESTS_DIR)/../tool_ni.tcl" |
| 16 | |
| 17 | # The script continues by defining variables and functions specific to the yangre tool. |