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