summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2011-08-19 13:45:41 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2011-08-19 13:45:41 +0200
commit956c17a127d65428d8cece41844c07fa3833f585 (patch)
tree2bbcdf3915a5c0046691dd94a8805ffb35ce2e09
parentAdded @file feature. Masked FFTW 3D tests. (diff)
downloadauto-numerical-bench-956c17a127d65428d8cece41844c07fa3833f585.tar.gz
auto-numerical-bench-956c17a127d65428d8cece41844c07fa3833f585.tar.bz2
auto-numerical-bench-956c17a127d65428d8cece41844c07fa3833f585.zip
Updated documentation and allow more environment bash files.
-rw-r--r--doc/numbench.116
-rwxr-xr-xnumbench/main.py4
2 files changed, 19 insertions, 1 deletions
diff --git a/doc/numbench.1 b/doc/numbench.1
index f7c3905..e429c8b 100644
--- a/doc/numbench.1
+++ b/doc/numbench.1
@@ -88,6 +88,22 @@ atlas-gcc-4.6.1 sci-libs/atlas-3.9.46 CC=gcc-4.6.1 CFLAGS="-O3 -march=native"
.PP
Variables that affect the emerge process, such as USE, can be used
and are effective.
+Another possibility to set the environment used during the emerge process is
+writing a bash script that uses the export directives. These files have to be
+specified added to the line with a leading @ mark. More files can be specified;
+in this case the latter files override the variables in case of collisions;
+the environment variables that are specified on the configuration line override
+the variables set through files in case of collisions. The files can be
+specified with both a relative path or an absolute one. The following examples
+show this feature:
+
+.RS
+atlas-gcc sci-libs/atlas-3.9.46 @envforatlas.sh @envforgcc
+
+atlas-gcc sci-libs/atlas-3.9.46 @envforatlas.sh CC=gcc-4.6.1 CFLAGS="-O3"
+.RE
+
+.PP
More configuration options are available. As each package can
install many implementations of the same library (for instance, the
sci-libs/atlas package installs the serial version and the
diff --git a/numbench/main.py b/numbench/main.py
index 58e5e58..bab534f 100755
--- a/numbench/main.py
+++ b/numbench/main.py
@@ -86,7 +86,9 @@ def tests_from_input(input):
# if @file: read bash script and set env
elif var[0] == '@':
- fileenv = readEnvFile(pjoin(cfg.curdir, var[1:]))
+ fileenvNew = readEnvFile(pjoin(cfg.curdir, var[1:]))
+ fileenv = dict( fileenv.items() + fileenvNew.items() )
+ del fileenvNew
# Otherwise, assume key=value syntax
else: