|
|
d7180c |
From 28898821ebdacf361ee6b87a49702ff4e94d6110 Mon Sep 17 00:00:00 2001
|
|
|
d7180c |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
d7180c |
Date: Mon, 13 Jul 2015 15:36:20 +0200
|
|
|
d7180c |
Subject: [PATCH] Clearly state that tests cannot be run under root
|
|
|
d7180c |
|
|
|
d7180c |
Related to #1259309
|
|
|
d7180c |
|
|
|
d7180c |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
d7180c |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
d7180c |
|
|
|
d7180c |
Conflicts:
|
|
|
d7180c |
README
|
|
|
d7180c |
---
|
|
|
d7180c |
Makefile | 2 +-
|
|
|
d7180c |
README | 18 ++++++++++++++++++
|
|
|
d7180c |
2 files changed, 19 insertions(+), 1 deletion(-)
|
|
|
d7180c |
|
|
|
d7180c |
diff --git a/Makefile b/Makefile
|
|
|
d7180c |
index 2e20217..5c51128 100644
|
|
|
d7180c |
--- a/Makefile
|
|
|
d7180c |
+++ b/Makefile
|
|
|
d7180c |
@@ -60,4 +60,4 @@ distclean:
|
|
|
d7180c |
|
|
|
d7180c |
.PHONY: check
|
|
|
d7180c |
check: build
|
|
|
d7180c |
- cd $(OUT_DIR) && make test
|
|
|
d7180c |
+ if [ "_0" != "_$$(id -u)" ]; then cd $(OUT_DIR) && make test; else echo "Cannot run tests under root user."; exit 1; fi
|
|
|
d7180c |
diff --git a/README b/README
|
|
|
d7180c |
index 590db7e..abbf3aa 100644
|
|
|
d7180c |
--- a/README
|
|
|
d7180c |
+++ b/README
|
|
|
d7180c |
@@ -86,3 +86,21 @@ $ java -agentlib:abrt-java-connector=executable=threadclass $MyClass -platform.
|
|
|
d7180c |
|
|
|
d7180c |
- 'mainclass' is used when 'executable' option is not passed and 'executable'
|
|
|
d7180c |
file is filled with full path $MyClass
|
|
|
d7180c |
+
|
|
|
d7180c |
+Building from sources
|
|
|
d7180c |
+---------------------
|
|
|
d7180c |
+
|
|
|
d7180c |
+This project uses CMake build system but a Makefile for GNU Make, which defines
|
|
|
d7180c |
+all the targets you usually need to run, is also provided.
|
|
|
d7180c |
+
|
|
|
d7180c |
+$ make build
|
|
|
d7180c |
+$ make run
|
|
|
d7180c |
+$ make check
|
|
|
d7180c |
+$ make rpm
|
|
|
d7180c |
+$ make distclean
|
|
|
d7180c |
+
|
|
|
d7180c |
+All build results are stored in ./bin directory.
|
|
|
d7180c |
+
|
|
|
d7180c |
+The `check' make target will fail if you run it under root user. There are some
|
|
|
d7180c |
+test cases that try to generate 'File Access Denied' exceptions and the easiest
|
|
|
d7180c |
+way to achieve that is to try to access a root's file.
|
|
|
d7180c |
--
|
|
|
d7180c |
1.8.3.1
|
|
|
d7180c |
|