OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [tests/] [cat.test] - Rev 1765

Compare with Previous | Blame | View Log

# Commands covered:  cat (UNIX)
#
# This file contains a collection of tests for one or more of the Tcl
# built-in commands.  Sourcing this file into Tcl runs the tests and
# generates output for errors.  No output means no errors were found.

if {[string compare test [info procs test]] == 1} then {source defs}

#exp_internal -f /dev/ttyp5 0

catch {unset x}

log_user 0

test cat-1.1 {basic cat operation} {
        exp_spawn cat -u
        exp_send "\r"
        set timeout 10
        expect \r {set x 1} timeout {set x 0}
        exp_close
        exp_wait
        set x
} {1}

#exp_internal 0

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.