Skip to content

Commit

Permalink
Upgraded to version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
landro committed Aug 11, 2013
1 parent 66d40b2 commit 7d0586d
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Let's say you want to test the following simple iRule found in *simple_irule.tcl

Now, create a file called *test_simple_irule.tcl* containing the following lines:

package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

# Comment in to enable logging
Expand Down Expand Up @@ -155,7 +155,7 @@ NB! Be carefull with using _on_ commands in _before_. If there will be another d

Using the _before_ command, *test_simple_irule.tcl* can be rewritten as:

package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

# Comment in to enable logging
Expand Down Expand Up @@ -232,7 +232,7 @@ Let's have a look at a more advanced iRule (advanced_irule.tcl):

The specs for this iRule would look like this:

package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

# Comment out to suppress logging
Expand Down Expand Up @@ -334,7 +334,7 @@ Let's have a look at a another iRule (headers_irule.tcl):

The example specs for this iRule would look like this:

package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

# Comment out to suppress logging
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This folder contains examples demonstrating how to write your TesTcl tests

The examples used are identical to the ones found on [testcl.com](http://testcl.com)
The examples used are identical to the ones found on [testcl.com](http://testcl.com)
4 changes: 2 additions & 2 deletions examples/example_irule_advanced.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

##
Expand Down Expand Up @@ -75,4 +75,4 @@ it "should give 404 when request cannot be handled" {
run irules/advanced_irule.tcl advanced
}

stats
stats
2 changes: 1 addition & 1 deletion examples/example_irule_headers.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

##
Expand Down
4 changes: 2 additions & 2 deletions examples/example_irule_simple.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package require -exact testcl 1.0
package require -exact testcl 1.0.1
namespace import ::testcl::*

##
Expand Down Expand Up @@ -51,4 +51,4 @@ it "should replace existing Vary http response headers with Accept-Encoding valu
run irules/simple_irule.tcl simple
}

stats
stats
2 changes: 1 addition & 1 deletion irules/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This folder contains some sample iRules used for testing

The examples used are identical to the ones found on [testcl.com](http://testcl.com)
The examples used are identical to the ones found on [testcl.com](http://testcl.com)
2 changes: 1 addition & 1 deletion irules/simple_irule.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ rule simple {
HTTP::header insert Vary "Accept-Encoding"
}

}
}
2 changes: 1 addition & 1 deletion pkgIndex.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# script is sourced, the variable $dir must contain the
# full path name of this file's directory.

package ifneeded testcl 1.0 [list source [file join $dir src/assert.tcl]]\n[list source [file join $dir src/it.tcl]]\n[list source [file join $dir src/on.tcl]]\n[list source [file join $dir src/onirule.tcl]]\n[list source [file join $dir src/irulehttp.tcl]]
package ifneeded testcl 1.0.1 [list source [file join $dir src/assert.tcl]]\n[list source [file join $dir src/it.tcl]]\n[list source [file join $dir src/on.tcl]]\n[list source [file join $dir src/onirule.tcl]]\n[list source [file join $dir src/irulehttp.tcl]]

# Disable certain Tcl commands from iRules
source [file join $dir src/disabled_commands.tcl]
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This folder contains the actual source code for the TesTcl package
This folder contains the actual source code for the TesTcl package
4 changes: 2 additions & 2 deletions src/assert.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package provide testcl 1.0
package provide testcl 1.0.1
package require log

namespace eval ::testcl {
Expand Down Expand Up @@ -44,4 +44,4 @@ proc ::testcl::assertNumberEquals {expected actual} {
if {$expected != $actual} {
error "Expected '$expected', got '$actual'"
}
}
}
2 changes: 1 addition & 1 deletion src/disabled_commands.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ rename time ::tcl::time
rename update ::tcl::update
rename uplevel ::tcl::uplevel
rename upvar ::tcl::upvar
rename vwait ::tcl::vwait
rename vwait ::tcl::vwait
2 changes: 1 addition & 1 deletion src/irulehttp.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package provide testcl 1.0
package provide testcl 1.0.1
package require log

namespace eval ::testcl::HTTP {
Expand Down
2 changes: 1 addition & 1 deletion src/it.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package provide testcl 1.0
package provide testcl 1.0.1
package require log

namespace eval ::testcl {
Expand Down
2 changes: 1 addition & 1 deletion src/on.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package provide testcl 1.0
package provide testcl 1.0.1
package require log

namespace eval ::testcl {
Expand Down
4 changes: 2 additions & 2 deletions src/onirule.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package provide testcl 1.0
package provide testcl 1.0.1
package require log

namespace eval ::testcl {
Expand Down Expand Up @@ -139,4 +139,4 @@ proc ::testcl::run {irule rulename} {
set rc [catch {source $irule} result]
testcl::assertNumberEquals 0 $rc
testcl::assertStringEquals "rule $rulename" $result
}
}
2 changes: 1 addition & 1 deletion test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ This folder contains tests used when developing TesTcl

To run *test_on.tcl*, run the following command from the TesTcl root folder

jtcl test/test_on.tcl
jtcl test/test_on.tcl
2 changes: 1 addition & 1 deletion test/test_advanced_irule_it.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ it "should give 404 when request cannot be handled" {
run irules/advanced_irule.tcl advanced
}

stats
stats
2 changes: 1 addition & 1 deletion test/test_on.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ assertNumberEquals 4 [add 2 2]
assertNumberEquals 5 [add 2 3]
assertNumberEquals 7 [add {2 3 2}]
assertNumberEquals 1 [substract 2 1]
assertNumberEquals 3 [add [split "item 1.item 2.item 3" "."]]
assertNumberEquals 3 [add [split "item 1.item 2.item 3" "."]]
2 changes: 1 addition & 1 deletion test/test_simple_irule_bar.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ on HTTP::uri return "/bar"

endstate pool bar

run irules/simple_irule.tcl simple
run irules/simple_irule.tcl simple
2 changes: 1 addition & 1 deletion test/test_simple_irule_foo.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ on HTTP::uri return "/foo/admin"

endstate pool foo

run irules/simple_irule.tcl simple
run irules/simple_irule.tcl simple
2 changes: 1 addition & 1 deletion test/test_simple_irule_http_response.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ log::lvSuppressLE info 0

event HTTP_RESPONSE

run irules/simple_irule.tcl simple
run irules/simple_irule.tcl simple
2 changes: 1 addition & 1 deletion test/test_simple_irule_http_response_it.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ it "should modify response" {
run irules/simple_irule.tcl simple
}

stats
stats
2 changes: 1 addition & 1 deletion test/test_simple_irule_it.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ it "should handle request using pool foo" {
run irules/simple_irule.tcl simple
}

stats
stats
2 changes: 1 addition & 1 deletion verification/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Folder contains script that can be used to verify your patched jtcl installation
Folder contains script that can be used to verify your patched jtcl installation

0 comments on commit 7d0586d

Please sign in to comment.