summaryrefslogtreecommitdiff
path: root/scp2/source
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-11-25 19:30:08 +0100
committerPetr Mladek <pmladek@suse.cz>2011-12-01 21:16:47 +0100
commit8c478c911033243df90ba290b32732a1fd70130e (patch)
tree98f031b9428103aca8dff385681c0a633a41d382 /scp2/source
parent86adb5cacb4fe3e7fb869299447da5876f0da30d (diff)
create installation set for tests
+ it currently includes just the smoketest and is available only for Linux + the side effect is that it builds the smoketest before instsetoo_native + it runs it only during dev-install when the variable RUN_SMOKETEST == YES
Diffstat (limited to 'scp2/source')
-rw-r--r--scp2/source/smoketest/makefile.mk42
-rw-r--r--scp2/source/smoketest/module_smoketest.scp50
-rw-r--r--scp2/source/smoketest/module_smoketest.ulf35
-rw-r--r--scp2/source/smoketest/smoketest.scp204
4 files changed, 331 insertions, 0 deletions
diff --git a/scp2/source/smoketest/makefile.mk b/scp2/source/smoketest/makefile.mk
new file mode 100644
index 000000000000..27d0ee3d292c
--- /dev/null
+++ b/scp2/source/smoketest/makefile.mk
@@ -0,0 +1,42 @@
+#***********************************************************************
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# 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.
+#
+# Major Contributor(s):
+# [ Copyright (C) 2011 Petr Mladek <pmladek@suse.cz> (initial developer) ]
+#
+# All Rights Reserved.
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+#***********************************************************************
+
+PRJ=..$/..
+PRJNAME=scp2so
+TARGET=smoketest
+
+.INCLUDE: settings.mk
+
+SCP_PRODUCT_TYPE=osl
+
+PARFILES= \
+ smoketest.par
+
+
+.INCLUDE: target.mk
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scp2/source/smoketest/module_smoketest.scp b/scp2/source/smoketest/module_smoketest.scp
new file mode 100644
index 000000000000..480dd9c793af
--- /dev/null
+++ b/scp2/source/smoketest/module_smoketest.scp
@@ -0,0 +1,50 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * 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.
+ *
+ * Major Contributor(s):
+ * [ Copyright (C) 2011 Petr Mladek <pmladek@suse.cz> (initial developer) ]
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#include "macros.inc"
+
+Module gid_Module_Optional_Smoketest
+ PackageInfo = "packinfo_test.txt";
+ MOD_NAME_DESC ( MODULE_OPTIONAL_SMOKETEST );
+ Sortkey = "630";
+ ParentID = gid_Module_Optional;
+ Default = NO;
+ Files = (gid_Test_File_Txt_License,
+ gid_Test_File_Txt_Readme,
+ gid_Test_File_Misc_Smoketestdoc,
+ gid_Test_File_Misc_TypesRdb,
+ gid_Test_File_Bin_LOSmoketest,
+ gid_Test_File_Exe_Cppunittester,
+ gid_Test_File_Lib_Cppunit,
+ gid_Test_File_Lib_Smoketest,
+ gid_Test_File_Lib_Test,
+ gid_Test_File_Lib_Unotest,
+ gid_Test_File_Lib_Unoexceptionprotector);
+End
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scp2/source/smoketest/module_smoketest.ulf b/scp2/source/smoketest/module_smoketest.ulf
new file mode 100644
index 000000000000..a29a9fde1798
--- /dev/null
+++ b/scp2/source/smoketest/module_smoketest.ulf
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * 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.
+ *
+ * Major Contributor(s):
+ * [ Copyright (C) 2011 Petr Mladek <pmladek@suse.cz> (initial developer) ]
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+[STR_NAME_MODULE_OPTIONAL_SMOKETEST]
+en-US = "%PRODUCTNAME %PRODUCTVERSION Smoketest"
+
+[STR_DESC_MODULE_OPTIONAL_SMOKETEST]
+en-US = "The smoketest of %PRODUCTNAME %PRODUCTVERSION"
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scp2/source/smoketest/smoketest.scp b/scp2/source/smoketest/smoketest.scp
new file mode 100644
index 000000000000..dc4f6d38d9e7
--- /dev/null
+++ b/scp2/source/smoketest/smoketest.scp
@@ -0,0 +1,204 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * 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.
+ *
+ * Major Contributor(s):
+ * [ Copyright (C) 2011 Petr Mladek <pmladek@suse.cz> (initial developer) ]
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#include "macros.inc"
+
+Installation gid_Installation_Test
+ ProductName = "${PRODUCTNAME}";
+ ProductVersion = "${PRODUCTVERSION}";
+ ProductExtension = "${PRODUCTEXTENSION}";
+#if defined WNT
+ DefaultDestPath = "<winprogpath>\%PRODUCTNAME";
+#else
+ DefaultDestPath = "/opt/%PRODUCTNAME";
+#endif
+End
+
+Module gid_Module_Root_Smoketest
+ Name = "smoketest";
+ Description = "smoketest";
+ PackageInfo = "packinfo_test.txt";
+End
+
+#ifndef MACOSX
+Directory gid_Test_Dir_Brand_Root
+ ParentID = PREDEFINED_PROGDIR;
+ #ifdef WNT
+ HostName = "${PRODUCTNAME} ${BRANDPACKAGEVERSION}";
+ #else
+ HostName = ".";
+ #endif
+ Styles = (OFFICEDIRECTORY,ISINSTALLLOCATION,CREATE);
+End
+#endif
+
+Directory gid_Test_Brand_Dir_Program
+#if defined MACOSX
+ ParentID = gid_Test_Dir_Bundle_Contents;
+ DosName = "MacOS";
+#else
+ ParentID = gid_Test_Dir_Brand_Root;
+ DosName = "program";
+#endif
+End
+
+Directory gid_Test_Brand_Dir_Share
+#if defined MACOSX
+ ParentID = gid_Test_Dir_Bundle_Contents;
+#else
+ ParentID = gid_Test_Dir_Brand_Root;
+#endif
+ DosName = "share";
+End
+
+Directory gid_Test_Brand_Dir_Share_Test
+ ParentID = gid_Test_Brand_Dir_Share;
+ DosName = "test";
+End
+
+Directory gid_Test_Dir_Common_Ure
+ ParentID = gid_Test_Dir_Brand_Root;
+ HostName = "ure";
+ Styles = (UREDIRECTORY);
+End
+
+Directory gid_Test_Dir_Ure_Share
+ ParentID = gid_Test_Dir_Common_Ure;
+ DosName = "share";
+End
+
+Directory gid_Test_Dir_Ure_Misc
+ ParentID = gid_Test_Dir_Ure_Share;
+ DosName = "misc";
+End
+
+Directory gid_Test_Dir_Ure_Misc_Test
+ ParentID = gid_Test_Dir_Ure_Misc;
+ DosName = "test";
+End
+
+
+File gid_Test_File_Txt_License
+ TXT_FILE_BODY;
+ Dir = gid_Test_Brand_Dir_Share_Test;
+ #ifdef UNX
+ Name = "LICENSE";
+ #endif
+ #ifdef WNT
+ Name = "license.txt";
+ #endif
+ Styles = (PACKED, SCPZIP_REPLACE);
+End
+
+File gid_Test_File_Txt_Readme
+ TXT_FILE_BODY;
+ Dir = gid_Test_Brand_Dir_Share_Test;
+ #ifdef UNX
+ Name = "README_en-US";
+ #endif
+ #ifdef WNT
+ Name = "readme_en-US.txt";
+ #endif
+ Styles = (PACKED, SCPZIP_REPLACE);
+End
+
+File gid_Test_File_Misc_Smoketestdoc
+ TXT_FILE_BODY;
+ Dir = gid_Test_Brand_Dir_Share_Test;
+ Name = "smoketestdoc.sxw";
+ Styles = (PACKED, SCPZIP_REPLACE);
+End
+
+File gid_Test_File_Misc_TypesRdb
+ TXT_FILE_BODY;
+ Dir = gid_Test_Dir_Ure_Misc_Test;
+ Name = "types.rdb";
+ Styles = (PACKED, VERSION_INDEPENDENT_COMP_ID);
+End
+
+File gid_Test_File_Bin_LOSmoketest
+ BIN_FILE_BODY;
+ Dir = gid_Test_Brand_Dir_Program;
+ Name = "losmoketest";
+ Styles = (PACKED);
+End
+
+File gid_Test_File_Exe_Cppunittester
+ BIN_FILE_BODY;
+ Dir = gid_Test_Brand_Dir_Program;
+ Name = "cppunittester";
+ Styles = (PACKED);
+End
+
+File gid_Test_File_Lib_Cppunit
+ TXT_FILE_BODY;
+ Styles = (PACKED);
+ Dir = gid_Test_Brand_Dir_Program;
+ #ifdef UNX
+ Name = STRING(CONCAT3(libcppunit-1.12,UNXSUFFIX,.1));
+ #endif
+End
+
+File gid_Test_File_Lib_Smoketest
+ TXT_FILE_BODY;
+ Styles = (PACKED);
+ Dir = gid_Test_Brand_Dir_Program;
+ #ifdef UNX
+ Name = STRING(CONCAT2(libsmoketest,UNXSUFFIX));
+ #endif
+End
+
+File gid_Test_File_Lib_Test
+ TXT_FILE_BODY;
+ Styles = (PACKED);
+ Dir = gid_Test_Brand_Dir_Program;
+ #ifdef UNX
+ Name = STRING(CONCAT2(libtest,UNXSUFFIX));
+ #endif
+End
+
+File gid_Test_File_Lib_Unotest
+ TXT_FILE_BODY;
+ Styles = (PACKED);
+ Dir = gid_Test_Brand_Dir_Program;
+ #ifdef UNX
+ Name = STRING(CONCAT2(libunotest,UNXSUFFIX));
+ #endif
+End
+
+File gid_Test_File_Lib_Unoexceptionprotector
+ TXT_FILE_BODY;
+ Styles = (PACKED);
+ Dir = gid_Test_Brand_Dir_Program;
+ #ifdef UNX
+ Name = STRING(CONCAT2(unoexceptionprotector,UNXSUFFIX));
+ #endif
+End
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */