aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/priv
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common_test/priv')
-rw-r--r--lib/common_test/priv/Makefile24
-rw-r--r--lib/common_test/priv/Makefile.in131
l---------lib/common_test/priv/auxdir/config.guess1
l---------lib/common_test/priv/auxdir/config.sub1
l---------lib/common_test/priv/auxdir/install-sh1
-rw-r--r--lib/common_test/priv/bin/.gitignore0
-rwxr-xr-xlib/common_test/priv/run_test.in63
-rw-r--r--lib/common_test/priv/vts.tool2
8 files changed, 223 insertions, 0 deletions
diff --git a/lib/common_test/priv/Makefile b/lib/common_test/priv/Makefile
new file mode 100644
index 0000000000..f0baba07ba
--- /dev/null
+++ b/lib/common_test/priv/Makefile
@@ -0,0 +1,24 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# 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
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+#
+# Invoke with GNU make or clearmake -C gnu.
+#
+
+include $(ERL_TOP)/make/run_make.mk
diff --git a/lib/common_test/priv/Makefile.in b/lib/common_test/priv/Makefile.in
new file mode 100644
index 0000000000..f144847a29
--- /dev/null
+++ b/lib/common_test/priv/Makefile.in
@@ -0,0 +1,131 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2003-2009. All Rights Reserved.
+#
+# 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
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+.PHONY : debug opt release clean distclean depend
+
+TARGET = @TARGET@
+
+include $(ERL_TOP)/make/target.mk
+include $(ERL_TOP)/make/$(TARGET)/otp.mk
+
+include ../vsn.mk
+VSN = $(COMMON_TEST_VSN)
+
+# ----------------------------------------------------
+# Release directory specification
+# ----------------------------------------------------
+ifdef TESTROOT
+RELEASE_PATH=$(TESTROOT)
+else
+RELEASE_PATH=$(ERL_TOP)/release/$(TARGET)
+endif
+RELSYSDIR = $(RELEASE_PATH)/lib/common_test-$(VSN)
+
+ifeq ($(findstring linux,$(TARGET)),linux)
+XNIX = true
+else
+ifeq ($(findstring solaris,$(TARGET)),solaris)
+XNIX = true
+else
+XNIX = false
+endif
+endif
+
+ifneq ($(findstring win32,$(TARGET)),win32)
+
+# ====================================================
+# UNIX / LINUX
+# ====================================================
+
+#
+# Files
+#
+FILES = vts.tool run_test.in
+SCRIPTS = install.sh
+
+#
+# Rules
+#
+
+include ../../test_server/vsn.mk
+debug opt:
+ sed -e 's;@CT_VSN@;$(VSN);' \
+ -e 's;@TS_VSN@;$(TEST_SERVER_VSN);' \
+ ../install.sh.in > install.sh
+ chmod 775 install.sh
+
+docs:
+
+clean:
+ rm -f $(SCRIPTS)
+
+
+# ----------------------------------------------------
+# Release Target
+# ----------------------------------------------------
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+ifeq ($(XNIX),true)
+release_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)/priv/bin
+ $(INSTALL_SCRIPT) $(SCRIPTS) $(RELSYSDIR)
+ $(INSTALL_DATA) $(FILES) $(RELSYSDIR)/priv
+else
+release_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)/priv/bin
+ $(INSTALL_SCRIPT) $(SCRIPTS) $(RELSYSDIR)
+ $(INSTALL_DATA) $(FILES) $(RELSYSDIR)/priv
+endif
+
+release_docs_spec:
+
+else
+
+# ====================================================
+# WIN32
+# ====================================================
+
+#
+# Files
+#
+FILES = vts.tool
+
+#
+# Rules
+#
+
+debug opt:
+
+docs:
+
+clean:
+
+
+# ----------------------------------------------------
+# Release Target
+# ----------------------------------------------------
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+release_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)/priv/bin
+ $(INSTALL_DATA) $(FILES) $(RELSYSDIR)/priv
+
+release_docs_spec:
+
+endif
diff --git a/lib/common_test/priv/auxdir/config.guess b/lib/common_test/priv/auxdir/config.guess
new file mode 120000
index 0000000000..fefabd7dd0
--- /dev/null
+++ b/lib/common_test/priv/auxdir/config.guess
@@ -0,0 +1 @@
+../../../../erts/autoconf/config.guess \ No newline at end of file
diff --git a/lib/common_test/priv/auxdir/config.sub b/lib/common_test/priv/auxdir/config.sub
new file mode 120000
index 0000000000..90979e8924
--- /dev/null
+++ b/lib/common_test/priv/auxdir/config.sub
@@ -0,0 +1 @@
+../../../../erts/autoconf/config.sub \ No newline at end of file
diff --git a/lib/common_test/priv/auxdir/install-sh b/lib/common_test/priv/auxdir/install-sh
new file mode 120000
index 0000000000..9422c370df
--- /dev/null
+++ b/lib/common_test/priv/auxdir/install-sh
@@ -0,0 +1 @@
+../../../../erts/autoconf/install-sh \ No newline at end of file
diff --git a/lib/common_test/priv/bin/.gitignore b/lib/common_test/priv/bin/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/common_test/priv/bin/.gitignore
diff --git a/lib/common_test/priv/run_test.in b/lib/common_test/priv/run_test.in
new file mode 100755
index 0000000000..1508751e4f
--- /dev/null
+++ b/lib/common_test/priv/run_test.in
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+args=""
+
+while [ $1 ]; do
+ if [ $1 = "-config" ]; then
+ args="$args -ct_config";
+ elif [ $1 = "-decrypt_key" ]; then
+ args="$args -ct_decrypt_key";
+ elif [ $1 = "-decrypt_file" ]; then
+ args="$args -ct_decrypt_file";
+ elif [ $1 = "-vts" ]; then
+ vts=1;
+ args="$args $1";
+ elif [ $1 = "-browser" ]; then
+ browser=$2;
+ args="$args $1";
+ elif [ $1 = "-shell" ]; then
+ shell=1;
+ args="$args $1";
+ elif [ $1 = "-ctname" ]; then
+ ctname=$2;
+ args="$args";
+ elif [ $1 = "-ctmaster" ]; then
+ master=1;
+ args="$args";
+ else
+ args="$args $1"
+ fi
+ shift
+done
+
+if [ $vts ]; then
+ erl -sname ct \
+ -pa @CTPATH@ \
+ -pa @TSPATH@ \
+ -s webtool script_start vts $browser \
+ -s ct_run script_start \
+ $args;
+elif [ $shell ]; then
+ erl -sname ct \
+ -pa @CTPATH@ \
+ -pa @TSPATH@ \
+ -s ct_run script_start \
+ $args;
+elif [ $ctname ]; then
+ erl -sname $ctname \
+ -pa @CTPATH@ \
+ -pa @TSPATH@ \
+ $args;
+elif [ $master ]; then
+ erl -sname ct_master \
+ -pa @CTPATH@ \
+ -pa @TSPATH@ \
+ $args;
+else
+ erl -sname ct \
+ -pa @CTPATH@ \
+ -pa @TSPATH@ \
+ -s ct_run script_start \
+ -s erlang halt \
+ $args
+fi
diff --git a/lib/common_test/priv/vts.tool b/lib/common_test/priv/vts.tool
new file mode 100644
index 0000000000..d63d9505f5
--- /dev/null
+++ b/lib/common_test/priv/vts.tool
@@ -0,0 +1,2 @@
+{version,"1.2"}.
+[{config_func,{vts,config_data,[]}}].