Megatest

Check-in [6e708371ee]
Login
Overview
Comment:Clean up fdktestqa
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: 6e708371ee16d3cc1e8b568c4094e6b25ecf90e8
User & Date: matt on 2014-02-22 14:20:18
Other Links: branch diff | manifest | tags
Context
2014-02-23
21:52
Add pid to messages to help debug server stuff. Added 'available' to queries to improve reliablity of server starts. Added more parallel runs to test5 as it seems able to handle it now. check-in: 4a4a69860a user: matt tags: v1.60
2014-02-22
14:20
Clean up fdktestqa check-in: 6e708371ee user: matt tags: v1.60
2014-02-20
16:33
Bugs in new server/client code all fixed check-in: 2a59248c14 user: mrwellan tags: v1.60
Changes

Modified tests/fdktestqa/testqa/Makefile from [2348dbb393] to [6ef9c834f0].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28
29
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
17

18
19
20
21
22
23

24
25
26
27









-








-
+





-




BINDIR    = $(PWD)/../../../bin
PATH     := $(BINDIR):$(PATH)
MEGATEST  = $(BINDIR)/megatest
DASHBOARD = $(BINDIR)/dashboard
all :
	$(MEGATEST) -remove-runs -target a/b :runname c -testpatt %/%
	$(MEGATEST) -runtests % -target a/b :runname c

bigbig :
	$(MEGATEST) -server - -daemonize ; sleep 3
	for tn in a b c d;do \
	   ($(MEGATEST) -runtests % -target a/b :runname $tn & ) ; \
	done

bigrun :
	$(MEGATEST) -runtests bigrun -target a/bigrun :runname a

bigrun2 :
	$(MEGATEST) -runtests bigrun2 -target a/bigrun2 :runname a -transport http
	$(MEGATEST) -runtests bigrun2 -target a/bigrun2 :runname a 

dashboard : 
	$(DASHBOARD) -rows 20 &

compile :
	$(MEGATEST) -stop-server 0
	(cd ../../..;make && make install)

clean :
	rm -rf ../simple*/*/* megatest.db db/*

Modified tests/fdktestqa/testqa/megatest.config from [30f54d18dd] to [bc9a54cc82].

1
2
3
4
5
6
7
8
9
10
11
1
2


3
4
5
6
7
8
9


-
-







[setup]
testcopycmd cp --remove-destination -rlv TEST_SRC_PATH/. TEST_TARG_PATH/. >> TEST_TARG_PATH/mt_launch.log 2>> TEST_TARG_PATH/mt_launch.log
runqueue 20
transport http
launchwait no

[jobtools]
launcher loadrunner

[include ../fdk.config]

Modified utils/loadrunner from [4b5138d43f] to [3fad28f85d].

21
22
23
24
25
26
27
28

29
21
22
23
24
25
26
27

28
29







-
+


if [[  $lperc -lt $max_load ]];then
  echo "Load acceptable: lperc=$lperc %, max_load=$max_load %, load=$load, numcpu=$numcpu, MAX_ALLOWED_LOAD=$MAX_ALLOWED_LOAD %"
  echo "Starting command: \"$@\""
  nbfake "$@"
else
  # echo "Load too high: lperc=$lperc, max_load=$max_load, waiting two minutes before trying to run command: \"$@\""
  echo "nbload $@" | at now + 2 minutes 2> /dev/null
  echo "loadrunner $@" | at now + 2 minutes 2> /dev/null
fi