Skip to content

Commit

Permalink
bug23011: add targets to test w/explicit hiper switch
Browse files Browse the repository at this point in the history
%Testing: make test-do-hiper,  make test-no-hiper

Add targets to run tests with explicit setting of
*hiper-socket-is-stream-socket* switch.

Change :exit argument value from t to nil in calls to test-aserve-n to
allow time output to show in log file.

Change-Id: Ib182b866a60b09b811609995c3e7a0d61be7a1a3
Reviewed-on: https://gerrit.franz.com:9080/9751
Reviewed-by: Kevin Layer <layer@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
  • Loading branch information
Martin Mikelsons authored and dklayer committed Feb 2, 2018
1 parent 718b6af commit 863973f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions makefile
Expand Up @@ -62,28 +62,34 @@ else
echo '(load "test/t-aserve.cl")' >> test.tmp
endif

# Run tests with default setting of *hiper-socket-is-stream-socket* switch.
test: test.tmp
echo '(time (test-aserve-n :n 1 :exit t))' >> test.tmp
echo '(time (test-aserve-n :n 1 :exit nil))' >> test.tmp
$(mlisp) -L test.tmp -kill

test-do-hiper: test.tmp
echo '(setq excl::*hiper-socket-is-stream-socket* nil)' >> test.tmp
echo '(time (test-aserve-n :n 1 :exit nil))' >> test.tmp
$(mlisp) -L test.tmp -kill

test-no-hiper: test.tmp
echo '(setq excl::*hiper-socket-is-stream-socket* t)' >> test.tmp
echo '(time (test-aserve-n :n 1 :exit t))' >> test.tmp
echo '(time (test-aserve-n :n 1 :exit nil))' >> test.tmp
$(mlisp) -L test.tmp -kill

testsmp: test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit nil))' >> test.tmp
$(mlisp) -L test.tmp -kill

stress: test.tmp
echo '(net.aserve::debug-on :notrap)' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit nil))' >> test.tmp
../bin/repeat.sh 10 $(mlisp) -L test.tmp -kill

stresswp: test.tmp
echo '(net.aserve::debug-on :notrap)' >> test.tmp
echo '(setq excl::*break-on-warnings* :pause)' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit nil))' >> test.tmp
../bin/repeat.sh 10 $(mlisp) -L test.tmp -kill

test-from-asdf: FORCE
Expand Down

0 comments on commit 863973f

Please sign in to comment.