_acs-tcl__files__tcl_file_syntax_errors (private)

 _acs-tcl__files__tcl_file_syntax_errors

Defined in packages/acs-tcl/tcl/test/file-test-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_file ad_file (public) apm_get_installed_versions apm_get_installed_versions (public) _acs-tcl__files__tcl_file_syntax_errors _acs-tcl__files__tcl_file_syntax_errors _acs-tcl__files__tcl_file_syntax_errors->aa_log _acs-tcl__files__tcl_file_syntax_errors->aa_log_result _acs-tcl__files__tcl_file_syntax_errors->aa_true _acs-tcl__files__tcl_file_syntax_errors->ad_file _acs-tcl__files__tcl_file_syntax_errors->apm_get_installed_versions

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    # if startdir is not $::acs::rootdir/packages, then somebody checked in the wrong thing by accident
    set startdir $::acs::rootdir/packages

    aa_log "Checks starting from $startdir"

    # get tcl files from installed packages
    set files [list]
    apm_get_installed_versions -array installed_versions
    foreach {package_key version} [array get installed_versions] {
        lappend files {*}[lmap f [apm_get_package_files  -package_key $package_key] {
            if {[ad_file extension $f] ne ".tcl"} continue
            set f $startdir/$package_key/$f
        }]
    }

    #inspect every Tcl file in the directory tree starting with $startdir
    foreach file $files {
        set fp [open $file "r"]
        set data [read $fp]
        close $fp

        # Check that the file parses
        aa_true "$file parses successfully" [info complete $data]
    }
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "files__tcl_file_syntax_errors (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: