Skip to content

Commit

Permalink
Minor improvements to the meas tools.
Browse files Browse the repository at this point in the history
OTP-9604

Merge branch 'bmk/megaco/20111003/improving_mstone1/OTP-9604' into bmk/megaco/r15_integration

Conflicts:
	lib/megaco/doc/src/notes.xml
  • Loading branch information
bmk committed Nov 4, 2011
2 parents d93329a + eaaae02 commit 55ae493
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 11 deletions.
3 changes: 3 additions & 0 deletions lib/megaco/.gitignore
@@ -0,0 +1,3 @@
examples/meas/Makefile
examples/meas/meas.sh.skel
examples/meas/mstone1.sh.skel
3 changes: 2 additions & 1 deletion lib/megaco/configure.in
Expand Up @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. -*-m4-*-
dnl dnl
dnl %CopyrightBegin% dnl %CopyrightBegin%
dnl dnl
dnl Copyright Ericsson AB 2001-2010. All Rights Reserved. dnl Copyright Ericsson AB 2001-2011. All Rights Reserved.
dnl dnl
dnl The contents of this file are subject to the Erlang Public License, dnl The contents of this file are subject to the Erlang Public License,
dnl Version 1.1, (the "License"); you may not use this file except in dnl Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -273,5 +273,6 @@ if test "$PERL" = no_perl; then
AC_MSG_ERROR([Perl is required to build the flex scanner!]) AC_MSG_ERROR([Perl is required to build the flex scanner!])
fi fi


AC_OUTPUT(examples/meas/Makefile:examples/meas/Makefile.in)
AC_OUTPUT(src/flex/$host/Makefile:src/flex/Makefile.in) AC_OUTPUT(src/flex/$host/Makefile:src/flex/Makefile.in)


5 changes: 5 additions & 0 deletions lib/megaco/doc/src/notes.xml
Expand Up @@ -49,6 +49,11 @@
--> -->


<list type="bulleted"> <list type="bulleted">
<item>
<p>Minor improvemnts to the emasurement tool mstone1. </p>
<p>Own Id: OTP-9604</p>
</item>

<item> <item>
<p>The profiling test tool has been rewritten. </p> <p>The profiling test tool has been rewritten. </p>
<p>H&aring;kan Mattsson</p> <p>H&aring;kan Mattsson</p>
Expand Down
@@ -1,7 +1,7 @@
# #
# %CopyrightBegin% # %CopyrightBegin%
# #
# Copyright Ericsson AB 2002-2009. All Rights Reserved. # Copyright Ericsson AB 2002-2011. All Rights Reserved.
# #
# The contents of this file are subject to the Erlang Public License, # The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in # Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -34,13 +34,20 @@ include ../../vsn.mk
VSN=$(MEGACO_VSN) VSN=$(MEGACO_VSN)




# ----------------------------------------------------
# Configured variables
# ----------------------------------------------------
PERL = @PERL@


# ---------------------------------------------------- # ----------------------------------------------------
# Release directory specification # Release directory specification
# ---------------------------------------------------- # ----------------------------------------------------
RELSYSDIR = $(RELEASE_PATH)/lib/megaco-$(VSN) RELSYSDIR = $(RELEASE_PATH)/lib/megaco-$(VSN)
EXAMPLE_RELSYSDIR = $(RELSYSDIR)/examples EXAMPLE_RELSYSDIR = $(RELSYSDIR)/examples
MEAS_RELSYSDIR = $(EXAMPLE_RELSYSDIR)/meas MEAS_RELSYSDIR = $(EXAMPLE_RELSYSDIR)/meas



# ---------------------------------------------------- # ----------------------------------------------------
# Target Specs # Target Specs
# ---------------------------------------------------- # ----------------------------------------------------
Expand All @@ -49,9 +56,13 @@ include modules.mk


ERL_FILES = $(MODULES:%=%.erl) ERL_FILES = $(MODULES:%=%.erl)


TARGET_FILES = \ SCRIPT_SKELETONS = $(SCRIPT_SKELETON_SRC:%.src=%)

ERL_TARGETS = \
$(ERL_FILES:%.erl=$(EBIN)/%.$(EMULATOR)) $(ERL_FILES:%.erl=$(EBIN)/%.$(EMULATOR))


TARGET_FILES = $(SCRIPT_SKELETONS) $(ERL_TARGETS)



# ---------------------------------------------------- # ----------------------------------------------------
# FLAGS # FLAGS
Expand Down Expand Up @@ -91,12 +102,27 @@ debug:


opt: $(TARGET_FILES) opt: $(TARGET_FILES)


script_skeletons: $(SCRIPT_SKELETONS)

info:
@echo "MODULES = $(MODULES)"
@echo "ERL_FILED = $(ERL_FILES)"
@echo ""
@echo "SCRIPT_SKELETON_SRC = $(SCRIPT_SKELETON_SRC)"
@echo "SCRIPT_SKELETONS = $(SCRIPT_SKELETONS)"
@echo ""
@echo "TARGET_FILES = $(TARGET_FILES)"
@echo ""

clean: clean:
rm -f $(TARGET_FILES) rm -f $(TARGET_FILES)
rm -f errs core *~ rm -f errs core *~


docs: docs:


conf:
cd ../..; $(MAKE) conf



# ---------------------------------------------------- # ----------------------------------------------------
# Release Target # Release Target
Expand All @@ -120,6 +146,14 @@ release_docs_spec:
# Include dependencies # Include dependencies
# ---------------------------------------------------- # ----------------------------------------------------


meas.sh.skel: meas.sh.skel.src
@echo "transforming $< to $@"
$(PERL) -p -e 's?%VSN%?$(VSN)? ' < $< > $@

mstone1.sh.skel: mstone1.sh.skel.src
@echo "transforming $< to $@"
$(PERL) -p -e 's?%VSN%?$(VSN)? ' < $< > $@

megaco_codec_transform.$(EMULATOR): megaco_codec_transform.erl megaco_codec_transform.$(EMULATOR): megaco_codec_transform.erl


megaco_codec_meas.$(EMULATOR): megaco_codec_meas.erl megaco_codec_meas.$(EMULATOR): megaco_codec_meas.erl
Expand Down
Expand Up @@ -2,7 +2,7 @@


# %CopyrightBegin% # %CopyrightBegin%
# #
# Copyright Ericsson AB 2007-2010. All Rights Reserved. # Copyright Ericsson AB 2007-2011. All Rights Reserved.
# #
# The contents of this file are subject to the Erlang Public License, # The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in # Version 1.1, (the "License"); you may not use this file except in
Expand All @@ -22,7 +22,7 @@
# #


ERL_HOME=<path to otp top dir> ERL_HOME=<path to otp top dir>
MEGACO_HOME=$ERL_HOME/lib/erlang/lib/<megaco dir> MEGACO_HOME=$ERL_HOME/lib/erlang/lib/megaco-%VSN%
MEAS_HOME=$MEGACO_HOME/examples/meas MEAS_HOME=$MEGACO_HOME/examples/meas
PATH=$ERL_HOME/bin:$PATH PATH=$ERL_HOME/bin:$PATH


Expand Down
8 changes: 4 additions & 4 deletions lib/megaco/examples/meas/modules.mk
Expand Up @@ -2,7 +2,7 @@


# %CopyrightBegin% # %CopyrightBegin%
# #
# Copyright Ericsson AB 2002-2009. All Rights Reserved. # Copyright Ericsson AB 2002-2011. All Rights Reserved.
# #
# The contents of this file are subject to the Erlang Public License, # The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in # Version 1.1, (the "License"); you may not use this file except in
Expand All @@ -17,9 +17,9 @@
# #
# %CopyrightEnd% # %CopyrightEnd%


SCRIPT_SKELETONS = \ SCRIPT_SKELETON_SRC = \
meas.sh.skel \ meas.sh.skel.src \
mstone1.sh.skel mstone1.sh.skel.src


MESSAGE_PACKAGES = \ MESSAGE_PACKAGES = \
time_test.msgs time_test.msgs
Expand Down
Expand Up @@ -3,7 +3,7 @@
# #
# %CopyrightBegin% # %CopyrightBegin%
# #
# Copyright Ericsson AB 2007-2009. All Rights Reserved. # Copyright Ericsson AB 2007-2011. All Rights Reserved.
# #
# The contents of this file are subject to the Erlang Public License, # The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in # Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -59,7 +59,7 @@ Options:
" "


ERL_HOME=<path to otp top dir> ERL_HOME=<path to otp top dir>
MEGACO_HOME=$ERL_HOME/lib/erlang/lib/<megaco dir> MEGACO_HOME=$ERL_HOME/lib/erlang/lib/megaco-%VSN%
MEAS_HOME=$MEGACO_HOME/examples/meas MEAS_HOME=$MEGACO_HOME/examples/meas
PATH=$ERL_HOME/bin:$PATH PATH=$ERL_HOME/bin:$PATH


Expand Down

0 comments on commit 55ae493

Please sign in to comment.