]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests: Add functional test folder
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 21 Jun 2019 15:29:41 +0000 (09:29 -0600)
committerDhaval Giani <dhaval.giani@oracle.com>
Tue, 17 Sep 2019 22:11:49 +0000 (15:11 -0700)
This commit adds a folder that will hold the functional tests
and their framework.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Dhaval Giani <dhaval.giani@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
configure.in
tests/Makefile.am
tests/ftests/.gitignore [new file with mode: 0644]
tests/ftests/Makefile.am [new file with mode: 0644]
tests/ftests/__init__.py [new file with mode: 0644]
tests/ftests/consts.py [new file with mode: 0644]

index 81949b128310419a2f74d790375aee263aacb893..fafd245d80f23b40646697492db52e8edf6493b7 100644 (file)
@@ -198,6 +198,7 @@ fi
 
 AC_CONFIG_FILES([Makefile
        tests/Makefile
+       tests/ftests/Makefile
        tests/gunit/Makefile
        tests/tools/testenv.sh
        tests/tools/Makefile
index 7f1a07195259eb7dcaa52081952051391e6ad5f1..6d748dc7b9176feaace524288e4287667af4933a 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = gunit tools
+SUBDIRS = ftests gunit tools
 
 INCLUDES = -I$(top_srcdir)/include
 LDADD = $(top_builddir)/src/.libs/libcgroup.la
diff --git a/tests/ftests/.gitignore b/tests/ftests/.gitignore
new file mode 100644 (file)
index 0000000..9a54287
--- /dev/null
@@ -0,0 +1,5 @@
+tmp.conf
+*.log
+*.pyc
+*.swp
+*.trs
diff --git a/tests/ftests/Makefile.am b/tests/ftests/Makefile.am
new file mode 100644 (file)
index 0000000..ede06b4
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# libcgroup functional tests Makefile.am
+#
+# Copyright (c) 2019 Oracle and/or its affiliates.  All rights reserved.
+# Author: Tom Hromatka <tom.hromatka@oracle.com>
+#
+
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of version 2.1 of the GNU Lesser General Public License as
+# published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <http://www.gnu.org/licenses>.
+#
+
+TESTS =
+
+clean-local: clean-local-check
+.PHONY: clean-local-check
+clean-local-check:
+       -rm -f *.pyc
diff --git a/tests/ftests/__init__.py b/tests/ftests/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/ftests/consts.py b/tests/ftests/consts.py
new file mode 100644 (file)
index 0000000..6c7db19
--- /dev/null
@@ -0,0 +1,20 @@
+#
+# Constants for the libcgroup functional tests
+#
+# Copyright (c) 2019 Oracle and/or its affiliates.  All rights reserved.
+# Author: Tom Hromatka <tom.hromatka@oracle.com>
+#
+
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of version 2.1 of the GNU Lesser General Public License as
+# published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <http://www.gnu.org/licenses>.
+#