_acs-tcl__util__file_content_check (private)

 _acs-tcl__util__file_content_check

Defined in packages/acs-tcl/tcl/test/utilities-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) ad_tmpnam ad_tmpnam (public) _acs-tcl__util__file_content_check _acs-tcl__util__file_content_check _acs-tcl__util__file_content_check->aa_log _acs-tcl__util__file_content_check->aa_log_result _acs-tcl__util__file_content_check->aa_true _acs-tcl__util__file_content_check->ad_file _acs-tcl__util__file_content_check->ad_tmpnam

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set sourcefile $::acs::rootdir/packages/acs-tcl/tcl/test/utilities-procs.tcl

    set gzip [::util::which gzip]
    if {$gzip ne ""} {
        set file [ad_tmpnam]
        ad_file copy $sourcefile $file
        if {[ad_file exists $file.gz]} {
            ad_file delete $file.gz
        }
        exec $gzip < $file > $file.gz
        aa_true "check detection of gzip file" [util::file_content_check -type gzip -file $file.gz]
        ad_file delete $file.gz
    }
}} {
          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" "util__file_content_check (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: