Axel Naumann
cbd1dcf8da
test/Driver/CommandHistory.C: env -u
also works on macOS.
2023-12-05 15:44:05 +01:00
Jonas Hahnfeld
76e87e6686
Remove REQUIRES: not_system-windows
...
Replace it by the standard UNSUPPORTED: system-windows.
2023-08-14 18:44:02 +02:00
Jiang Yi
a1b1c875fd
startup script support
...
Before showing command promt or executing scripts from argv,
enumerate .C files in the directory ${CLING_HOME}/.cling.d/ in alphabetic
order then .x them.
Search order of ${CLING_HOME}:
1. ${CLING_HOME} envvar
2. ${XDG_CONFIG_HOME}/cling/
3. ${HOME}/.config/cling/
4. ${HOME}/
2023-06-16 16:29:08 +02:00
Jiang Yi
1d5536fd0b
Test cmd history support
2023-01-25 13:59:06 +01:00
Simeon Ehrig
be5ea3a651
Fixed CUDA mode for Clang/LLVM 9 upgrade
...
- fix bug, which was caused by executing a transaction in the device
interpreter
- fixed warning from the device compiler
- update test cases
2021-02-25 20:44:19 +01:00
Simeon Ehrig
e47bb75f9f
Allows to configure CUDA sm level for Cling CUDA tests
...
- the CUDA sm level can be set via CLING_TEST_CUDA_SM_LEVEL
environment variable (e.g. "35"), before running the tests
2021-02-18 09:29:04 +01:00
Simeon Ehrig
b2bfd6e19f
Extend the cling-test to deal with CUDA SDKs that are not in the default location
...
- To enable the CUDA test, lit detects the `libcudart.so` in
`LD_LIBRARY_PATH`. Now lit also set the CUDA SDK root of
`libcudart.so` as cling parameter (`--cuda-path`) in the tests.
- Pass through the environment variable `CUDA_VISIBLE_DEVICES`.
2021-02-10 15:18:14 +01:00
Frederich Munch
06afb308e4
Report ValueExtractionSynthesizer errors with DiagnosticsEngine.
2020-08-20 09:44:06 +02:00
Simeon Ehrig
ad8d5e1137
Changes for Pull Request #284
...
- add Author to CUDA test cases
- optimize DeviceKernelInliner
- improve some comments
- remove deprecated opt level variables
- change interface of IncrementalCUDADeviceCompiler::process() IncrementalCUDADeviceCompiler::declare()
2019-11-07 19:29:15 +01:00
Simeon Ehrig
3b656d1d3f
add automatic load of libcudart.so at start of cling -xcuda
2018-03-23 18:29:07 +01:00
Bertrand Bellenot
5947e13cb9
Don't run Gnu.C test on Windows...
2017-07-06 16:44:06 +02:00
Frederich Munch
aad084a75a
UserInterface: cling is discarding the last line if it does not have a newline.
2017-07-04 15:29:09 +02:00
Frederich Munch
4739761b89
Don’t clear GNUMode when user has specifically asked for it. There are uses that are valid even if the host compiled with _GLIBCXX_USE_FLOAT128.
2017-06-28 16:15:10 +02:00
Frederich Munch
8f29132120
Fix -fsyntax-only flag which changed in 0d15357
and to allow usage of gCling.
...
0d15357
unintentionally blocked inclusion of RuntimeUniverse.h when using -fsyntax-only.
2017-06-22 16:39:14 +02:00
Frederich Munch
ffa8f951ce
Combine similar tests into one file.
2017-06-21 08:29:11 +02:00
Vassil Vassilev
8f257e74d3
Create a virtual file entry for each input line.
...
This is the only way not to confuse the diagnostics engine of upgraded clang.
Also, this gives us a few advantages:
* We can compare more precisely the source locations of diagnostics;
* We can merge the code completion code path which works with file entries;
* We can rely better when specifying //expected-note-s in different files.
2017-06-08 10:29:13 +02:00
Frederich Munch
42971e42cd
Lit: Add %mkdir, %rm, and %rmdir substitutions.
2017-02-21 16:34:19 +01:00
Frederich Munch
311a557be1
Windows: Interpret -nostdinc++ as -nostdinc which clang does not use on Windows backend. Fixes ABI and NoStdInc tests.
2017-02-17 15:14:06 +01:00
Frederich Munch
eb40609ab2
Add -noruntime flag to force cling not load or use support for value-printing or null dereferencing. This makes it tons easier to debug DeclUnload and discover what isn't being unloaded.
2017-02-09 16:45:11 +01:00
Frederich Munch
630abbf855
Windows: Fix preprocessor output test.
2017-02-09 16:45:10 +01:00
Frederich Munch
94672dd0d0
Fix unloading functions declared external "C". Refactor VisitRedeclarable.
2017-02-02 08:30:01 +01:00
Frederich Munch
14437862ef
Handle -E flag to dump preprocessor definitions.
2017-02-01 13:14:11 +01:00
Frederich Munch
4b6ae92419
Split getcwd tests into two files as Windows cannot pass one of the tests.
2016-12-06 20:44:05 +01:00
Frederich Munch
0a995d8b3d
Revert "Simplify; make Windows compatible (cannot delete cwd)."
...
This reverts commit 2459221755
.
2016-12-06 20:44:05 +01:00
Bertrand Bellenot
2459221755
Simplify; make Windows compatible (cannot delete cwd).
2016-12-06 16:14:25 +01:00
Bertrand Bellenot
fdf057e19a
Cannot use tick as quote on Windows.'
2016-11-30 11:14:29 +01:00
Bertrand Bellenot
f8f73fd444
On Windows we need -nostdinc as C and C++ header locations are identical.
2016-11-30 10:14:14 +01:00
Frederich Munch
4cdbc0461e
Honor clangs -nostdinc++ and -nobuiltininc flags.
...
Rename AddHostCXXIncludes to AddHostIncludes and delineate between -nostdinc++
and -nobuiltininc. When cling is invoked with -nobuiltininc, do not #include any runtime
files on startup. Make ABI incompatability error consistent across platforms and add a test to verify behavior when this occurs.
More importantly this allow for easier debugging of Decl unloading as the amount of
declarations on startup is greatly reduced.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:17 +02:00
Frederich Munch
109812d223
Fix crash from possible null return from getcwd.
2016-08-12 14:29:07 +02:00
Frederich Munch
bcb75e1476
Don't create a virtual file with a valid file name.
...
This fix allows running a file in the current working directory.
2016-08-12 14:29:07 +02:00
Axel Naumann
62ea6ec80a
Do not rely on init_list intricacies.
2016-01-13 09:59:04 +01:00
Axel Naumann
a4a3ebbb41
Fix expectation to match (correct) reality.
2016-01-02 20:48:01 +01:00
Boris Perovic
c44940b223
New printValue() integration (printing unified through overloading of printValue() function and template resolution). Modified tests to conform to the new prints.
2015-08-17 18:45:03 +02:00
Axel Naumann
31a9d9d0b2
Make test more telling.
2015-04-04 20:51:20 +02:00
Axel Naumann
2b0371b779
Adapt expectation to reality.
2015-04-03 21:58:12 +02:00
Liza Sakellari
529b0aed53
Fixed parsing of '\'' at the prompt (ROOT-7159).
2015-03-31 16:47:10 +02:00
Liza Sakellari
4de2d7d77c
Fixed Parser error when calling a macro with arguments.
2015-03-31 16:47:09 +02:00
Liza Sakellari
19ce2d03b6
Fixed bug "Parser error when calling a macro with arguments".
2015-03-31 16:47:09 +02:00
Axel Naumann
e582b93a16
No #include <new> in C mode; add basic C mode test (ROOT-7090).
2015-02-21 22:43:36 +01:00
Vassil Vassilev
a415711407
Implement a shebang support in cling.
2014-08-14 14:56:43 +02:00
Vassil Vassilev
afaf997555
We cannot pass in a 'proper' source location, thus we cannot use -verify.
2014-08-14 14:56:43 +02:00
Vassil Vassilev
f14fbd2b78
Make sure no diags are emitted.
2014-08-14 14:56:43 +02:00
Vassil Vassilev
7ecb829baa
Move the test at its right place
2014-08-14 14:56:40 +02:00
Vassil Vassilev
a1640388a4
On .x try calling the specially named function only if it exists.
2014-08-14 14:56:39 +02:00