Simon Hausmann
c16f2f2185
Clean up test cases
...
Instead of all files collected in a flat directory, restructure them
into categories and thus sub-directories.
2020-09-29 17:00:48 +02:00
Olivier Goffart
2275cd638a
C++ Test: make sure to re-run cbindgen in case of changes
...
Also add -g to ease debugging
2020-09-15 12:18:36 +02:00
Olivier Goffart
3c46df46d9
Attempt to fix window build by properly escaping backslashes
2020-09-05 17:42:12 +02:00
Simon Hausmann
628426aded
Rename cpp.rs to cppdriver.rs
...
This makes completion better :-)
2020-09-03 12:58:52 +02:00
Olivier Goffart
65acdd78b0
Use xtask to generate the headers instead of build.rs of each lib
...
Fixes #14
2020-08-27 11:50:09 +02:00
Olivier Goffart
58cdaeb8dd
Update license header to mention that commertial option are available
2020-08-26 13:23:42 +02:00
Simon Hausmann
66dce1a1bc
Don't build the nodejs API when running tests
...
Assume that it is already build and pick up the library in the same directory where we pick
up the C++ libraries.
2020-08-25 14:01:57 +02:00
Simon Hausmann
2823f32692
Apply license headers to all non-binary/non-json sources
2020-08-17 17:55:20 +02:00
Simon Hausmann
da85889c74
Make sure to re-run tests if an external include path changed
2020-07-19 18:36:36 +02:00
Olivier Goffart
11ac0cfad0
Test for nodejs
2020-06-08 12:24:39 +02:00
Olivier Goffart
e18689af5c
Test the rist frontend
2020-06-05 19:29:40 +02:00
Olivier Goffart
d0332fafbf
Revert "Not-working Tests for the Rust frontend"
...
This reverts commit 87bce9c106688516ab66de3f81cc907bee0a8b9b.
Because it is not working
2020-06-05 19:04:07 +02:00
Olivier Goffart
9f6639631c
Not-working Tests for the Rust frontend
...
This is not working because spawning cargo for each tests is too slow,
and cannot even re-use the same target directory because it would block
on the cargo lock file. and rebuild all the dependences because of
different flags
2020-06-05 19:04:07 +02:00
Simon Hausmann
d574a088a6
Remove unnecessary CARGO environment variable forwarding
...
In contrast to the others, this one seems to be universally set :)
2020-06-05 18:01:40 +02:00
Simon Hausmann
3aa0c94f83
Run tests through the interpreter as well, at least for instantiation.
2020-06-05 16:02:59 +02:00
Simon Hausmann
d20eec1b4e
Pick up newly added test cases
...
Add all the directories of the tests to the watch list of cargo. Adding
a new file will change the mtime of the directory and trigger a rebuild
then.
2020-06-05 15:18:14 +02:00
Simon Hausmann
54b02d2b0d
Change the test driver to use the rust test framework
...
Collect all tests are build time in build.rs and generate Rust code that
uses #[test] annotated functions. This gives nice reporting and the
ability to run individual tests.
2020-06-05 14:47:05 +02:00
Simon Hausmann
31da762245
Complete compilation and running of .60 to mapped c++ tests
...
* Fix text-file-busy error when running the binary by replacing the use
of named temp file with simply using the input source file and the
extension replaced. A scope guard make sure to also delete the binary.
* Fix hard-coded library dependencies by sharing code with the cmake
xtask that needs the same list.
2020-06-05 13:30:13 +02:00
Simon Hausmann
a69594530f
First step towards compiling the generated C++ in the test driver
...
This extracts a compiler command line from the cc crate, runs the
compiler and tries to run the resulting binary. Unfortunately the latter
fails still.
2020-06-05 11:08:05 +02:00