Skip to content

Commit

Permalink
test: auto install xcaddy
Browse files Browse the repository at this point in the history
  • Loading branch information
htfy96 committed Jun 1, 2020
1 parent e938254 commit 3daafa3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/run-test
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@ cleanup() {

trap cleanup EXIT

xcaddy list-modules
readonly XCADDY="go run github.com/caddyserver/xcaddy/cmd/xcaddy"

xcaddy run -config test/Caddyfile.1&
$XCADDY list-modules

$XCADDY run -config test/Caddyfile.1&
pid="$!"
sleep 7
curl -v http://localhost:2015/ > output1
diff output1 test/test-1.ref
cleanup

xcaddy run -config test/Caddyfile.2&
$XCADDY run -config test/Caddyfile.2&
pid="$!"
sleep 7
curl -v http://localhost:2015/ > output2
diff output2 test/test-2.ref
cleanup

xcaddy run -config test/Caddyfile.3&
$XCADDY run -config test/Caddyfile.3&
pid="$!"
sleep 7
curl -v http://localhost:2015/ > output3_1
Expand Down

0 comments on commit 3daafa3

Please sign in to comment.