summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt12
-rw-r--r--test/Test.vala9
2 files changed, 21 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..2c11d3b
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,12 @@
+vala_precompile(TEST_C
+ Test.vala
+PACKAGES
+ gee-1.0
+ erl_interface
+CUSTOM_VAPIS
+ ${eva_BINARY_DIR}/src/eva.vapi
+)
+
+include_directories(BEFORE ${eva_BINARY_DIR}/src)
+add_executable(eva-test ${TEST_C})
+target_link_libraries(eva-test eva)
diff --git a/test/Test.vala b/test/Test.vala
new file mode 100644
index 0000000..ce5da6d
--- /dev/null
+++ b/test/Test.vala
@@ -0,0 +1,9 @@
+namespace Eva {
+ class Test {
+ public static int main(string[] args) {
+ Eva.Long term = new Eva.Long(42);
+
+ return 0;
+ }
+ }
+}